Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <section id="leftcont">
- <?php if (have_posts()) : ?>
- <?php query_posts("showposts=1"); ?>
- <?php while (have_posts()) : the_post(); ?>
- <header class="title">
- <div><h1><span><?php the_title() ?></span></h1></div>
- <h1 class="readmore"><a href="<?php the_permalink() ?>">Read More »</a></h1>
- <section class="author">Written by <?php the_author(); ?></section>
- <section class="date-comments">
- <span class="date"><?php the_time('F j, Y'); ?></span>
- <span class="comments"><?php comments_number('0 Comments','1 Comment','% Comments'); ?></span>
- </section>
- </header>
- <?php endwhile; ?>
- <?php
- $limit = 1;
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- query_posts('offset=1&showposts=' . $limit . '&paged=' . $paged);
- ?>
- <?php while(have_posts()) : the_post(); ?>
- <section class="home-entry">
- <div class="left">
- <p class="date"><?php the_time('F j, Y'); ?></p>
- <p class="comments"><?php comments_number('0 Comments','1 Comment','% Comments'); ?></p>
- <p class="cat">Categories: <?php the_category(', ');?></p>
- </div>
- <h2><a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><?php the_title() ?></a></h2>
- </section>
- <?php endwhile; ?>
- <section class="pagination">
- <?php wp_pagenavi(); ?>
- </section>
- <?php else: ?>
- <h1>Sorry, there are no posts at this time.</h1>
- <?php endif; ?>
- <?php wp_reset_query(); ?>
- </section>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement