Advertisement
dangermoose

3 columns

Apr 13th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.81 KB | None | 0 0
  1. <div class="four columns">
  2.             <?php query_posts('showposts=1&cat=4'); ?>
  3.                         <?php $posts = get_posts('numberposts=1&offset=2'); foreach ($posts as $post) : start_wp(); ?>
  4.                         <?php static $count1 = 0; if ($count1 == "1") { break; } else { ?>
  5.                         <h4 class="entry-title">
  6.                           <?php the_title(); ?>
  7.                         </h4>
  8.                         <?php the_content(); ?>
  9.                         <?php $count1++; } ?>
  10.                         <?php endforeach; ?>
  11.                       </div>
  12.                       <div class="four columns">
  13.                         <?php query_posts('showposts=1&cat=5'); ?>
  14.                         <?php $posts = get_posts('numberposts=1&offset=1'); foreach ($posts as $post) : start_wp(); ?>
  15.                         <?php static $count2 = 0; if ($count2 == "1") { break; } else { ?>
  16.                         <h4 class="entry-title">
  17.                           <?php the_title(); ?>
  18.                         </h4>
  19.                         <?php the_content(); ?>
  20.                         <?php $count2++; } ?>
  21.                         <?php endforeach; ?>
  22.                       </div>
  23.                       <div class="four columns">
  24.                         <?php query_posts('showposts=1&cat=6'); ?>
  25.                         <?php $posts = get_posts('numberposts=1&offset=0'); foreach ($posts as $post) : start_wp(); ?>
  26.                         <?php static $count3 = 0; if ($count3 == "1") { break; } else { ?>
  27.                         <h4 class="entry-title">
  28.                           <?php the_title(); ?>
  29.                         </h4>
  30.                         <?php the_content(); ?>
  31.                         <?php $count3++; } ?>
  32.                         <?php endforeach; ?>
  33.                       </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement