Advertisement
Guest User

looppikoodi

a guest
May 23rd, 2014
176
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage WP-Skeleton
  5. */
  6. ?>
  7.  
  8.  
  9. <div class="content">
  10. <div class="maineight columns">
  11. <div class="main">
  12.  
  13.  
  14.  
  15. <?php $c = 0; while ( have_posts() ) : the_post(); ?> <!-- the Loop -->
  16.  
  17. <!--The Meta, Author, Date, Categories and Comments-->
  18. <div class="meta">
  19. <div class="metaleft"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php echo get_the_date(); ?></a></div><div class="metalahde"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_meta(); ?></a></div>
  20.  
  21. </div>
  22.  
  23. <div class="kuvajateksti"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail();
  24. echo get_post(get_post_thumbnail_id())->post_excerpt; ?></a></div>
  25.  
  26. <article id="post-<?php the_ID(); ?>">
  27. <div class="title">
  28. <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title('<h1>', '</h1>'); ?></a> <!--Post titles-->
  29. </div>
  30.  
  31. <?php the_content("Lue lis&auml;&auml; > " ); ?> <!--The Content-->
  32.  
  33.  
  34. </article>
  35.  
  36.  
  37. <?php $c ++;
  38. get_template_part('post', 'homepage');
  39. if ($c > 2 ) {
  40. $c = 0;?>
  41. <iframe width="100%" height="314" marginheight="0px"
  42. scrolling="no" border="0" src="http://www.e-dsign.net/julkaisija/uutisbanneri"></iframe>
  43. <?php
  44. }
  45. endwhile; ?><!-- End the Loop -->
  46.  
  47. <?php /* Display navigation to next/previous pages when applicable */ ?>
  48.  
  49. <?php if ( $wp_query->max_num_pages > 1 ) : ?>
  50.  
  51. <nav id="nav-below">
  52.  
  53. <div class="nav-previous"><?php next_posts_link(); ?></div>
  54. <div class="nav-next"><?php previous_posts_link(); ?></div>
  55. </nav><!-- #nav-below -->
  56.  
  57. <?php endif; ?>
  58.  
  59. <?php /* Only load comments on single post/pages*/ ?>
  60. <?php if(is_page() || is_single()) : comments_template( '', true ); endif; ?>
  61.  
  62.  
  63. <div class="jako_napit"><a href="#"><img src="http://www.e-dsign.net/julkaisija/wp-content/themes/julkaisija/images/addthis_napit.png" width="96" height="16" border="0"></a></div>
  64.  
  65. </div> <!-- End Main -->
  66. </div> <!-- End two-thirds column -->
  67. </div><!-- End Content -->
Advertisement
RAW Paste Data Copied
Advertisement