Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="content">
- <?php if ( have_posts() ) : ?>
- <div id="loop01">
- <?php /* FIRST LOOP: display posts 1 thru 3 */ ?>
- <?php query_posts('showposts=1'); ?>
- <?php $posts = get_posts('numberposts=1&offset=0'); foreach ($posts as $post) : start_wp(); ?>
- <?php static $count1 = 0; if ($count1 == "1") { break; } else { ?>
- <div id="post-destaque">
- <a href="<?php the_permalink(); ?>" /><?php the_title(); ?></a>
- </div>
- <?php $count1++; } ?>
- <?php endforeach; ?>
- </div>
- <div id="mais">
- <div class="navegacao">
- <?php posts_nav_link('∞','«','»'); ?>
- </div>
- </div>
- <div id="loop02">
- <?php /* // SECOND LOOP: display posts 4 thru 6 */ ?>
- <?php query_posts('showposts=3'); ?>
- <?php $posts = get_posts('numberposts=3&offset=1'); foreach ($posts as $post) : start_wp(); ?>
- <?php static $count2 = 0; if ($count2 == "3") { break; } else { ?>
- <div id="post">
- <a href="<?php the_permalink(); ?>" /><?php the_title(); ?></a>
- </div>
- <?php $count2++; } ?>
- <?php endforeach; ?>
- </div>
- <div id="loop03">
- <?php /* // THIRD LOOP: display posts 7 thru 9 */ ?>
- <?php query_posts('showposts=3'); ?>
- <?php $posts = get_posts('numberposts=3&offset=4'); foreach ($posts as $post) : start_wp(); ?>
- <?php static $count3 = 0; if ($count3 == "3") { break; } else { ?>
- <div id="post">
- <a href="<?php the_permalink(); ?>" /><?php the_title(); ?></a>
- </div>
- <?php $count3++; } ?>
- <?php endforeach; ?>
- </div>
- </div>
- <?php else : ?>
- <?php get_template_part( 'erro' ); ?>
- <?php endif; ?><br />
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement