Advertisement
Guest User

Wordpress theme structure

a guest
Mar 20th, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.13 KB | None | 0 0
  1. <?php if (have_posts()) : ?>
  2.                 <?php while (have_posts()) : the_post(); ?>
  3.  
  4.                     <div class = "singlecolumnpost">
  5.                         <div <?php post_class() ?>>
  6.                             <?php if (has_post_thumbnail()) : ?>
  7.                                 <div class = "post-thumb">
  8.                                     <?php
  9.                                     $next_post = get_next_post();
  10.                                     if (!empty($next_post)):
  11.                                         ?>
  12.                                         <a href="<?php echo get_permalink($next_post->ID); ?>"><?php the_post_thumbnail(); ?></a>
  13.                                     <?php endif; ?>">
  14.                                 </div>
  15.                             <?php endif; ?>
  16.                         </div>
  17.                     </div>
  18.  
  19.                     <div class = "twocolumnpost">
  20.                         <div <?php post_class() ?>>
  21.                             <?php if (has_post_thumbnail()) : ?>
  22.                                 <div class = "post-thumb" id = "leftthumb">
  23.                                     <?php
  24.                                     $next_post = get_next_post();
  25.                                     if (!empty($next_post)):
  26.                                         ?>
  27.                                         <a href="<?php echo get_permalink($next_post->ID); ?>"><?php the_post_thumbnail(); ?></a>
  28.                                     <?php endif; ?>">
  29.                                 </div>
  30.                             <?php endif; ?>
  31.                         </div>
  32.                         <div <?php post_class() ?>>
  33.                             <?php if (has_post_thumbnail()) : ?>
  34.                                 <div class = "post-thumb" id = "rightthumb">
  35.                                     <?php
  36.                                     $next_post = get_next_post();
  37.                                     if (!empty($next_post)):
  38.                                         ?>
  39.                                         <a href="<?php echo get_permalink($next_post->ID); ?>"><?php the_post_thumbnail(); ?></a>
  40.                                     <?php endif; ?>">
  41.                                 </div>
  42.                             <?php endif; ?>
  43.                         </div>
  44.                     </div>
  45.  
  46.                     <div class = "singlecolumnpost">
  47.                         <div <?php post_class() ?>>
  48.                             <?php if (has_post_thumbnail()) : ?>
  49.                                 <div class = "post-thumb">
  50.                                     <?php
  51.                                     $next_post = get_next_post();
  52.                                     if (!empty($next_post)):
  53.                                         ?>
  54.                                         <a href="<?php echo get_permalink($next_post->ID); ?>"><?php the_post_thumbnail(); ?></a>
  55.                                     <?php endif; ?>">
  56.                                 </div>
  57.                             <?php endif; ?>
  58.                         </div>
  59.                     </div>
  60.  
  61.                 <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement