Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="four columns">
- <?php query_posts('showposts=1&cat=4'); ?>
- <?php $posts = get_posts('numberposts=1&offset=2'); foreach ($posts as $post) : start_wp(); ?>
- <?php static $count1 = 0; if ($count1 == "1") { break; } else { ?>
- <h4 class="entry-title">
- <?php the_title(); ?>
- </h4>
- <?php the_content(); ?>
- <?php $count1++; } ?>
- <?php endforeach; ?>
- </div>
- <div class="four columns">
- <?php query_posts('showposts=1&cat=5'); ?>
- <?php $posts = get_posts('numberposts=1&offset=1'); foreach ($posts as $post) : start_wp(); ?>
- <?php static $count2 = 0; if ($count2 == "1") { break; } else { ?>
- <h4 class="entry-title">
- <?php the_title(); ?>
- </h4>
- <?php the_content(); ?>
- <?php $count2++; } ?>
- <?php endforeach; ?>
- </div>
- <div class="four columns">
- <?php query_posts('showposts=1&cat=6'); ?>
- <?php $posts = get_posts('numberposts=1&offset=0'); foreach ($posts as $post) : start_wp(); ?>
- <?php static $count3 = 0; if ($count3 == "1") { break; } else { ?>
- <h4 class="entry-title">
- <?php the_title(); ?>
- </h4>
- <?php the_content(); ?>
- <?php $count3++; } ?>
- <?php endforeach; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement