Give something like this a whirl:
<?php
// Get header
get_header(); ?>
<?php // Begin loop
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array (
'posts_per_page' => 1,
'paged' => $paged
);
query_posts($args);
if (have_posts()) : while (have_posts()) : the_post();
?>
<article>
<h1><?php the_title(); ?></h1>
<p class="time"><?php the_time('l, F jS, Y'); ?></p>
<?php the_content(); ?>
</article>
<?php endwhile; ?>
<nav>
<ul>
<li><?php previous_posts_link('< previous page', 0); ?></li>
</li><?php next_posts_link('next page >', 0); ?></li>
</ul>
</nav>
<?php else: endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Related Posts:
- How to fix pagination for custom loops?
- Pagination not working on home page
- WordPress category & taxonomy loop with pagination
- How do I prevent one of two multiple loops from repeating on a second page?
- Two custom loops, pagination, offset
- Previous and Next Post link doesn’t work
- Pagination adding extra posts only on page 2
- multiple loops with pagination on the same page
- Enable infinite scroll on single.php [closed]
- How to paginate this custom loop? [duplicate]
- Make a custom loop inside single.php with pagination
- Why do I get `Call to a member function have_posts() on a non-object `? [closed]
- Pagination gives extra page with no results
- Get Pagination (WP-PageNavi) not to work
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- Complex query and posts pagination
- Why only one post (and no pagination) on this variation of the loop?
- Calling & display certain product category loop and pagination on the homepage
- Make blog page show 10 on first page, 9 on every other page
- Pagination for multiple loops
- How to fix pagination for custom loops?
- How can I paginate this?
- Genesis multiple category custom loop 404s after first page
- How to fix pagination for custom loops?
- Pagination – works on local but not live dev!
- How do I paginate a get_posts() request inside another page loop (Paginating childpages)
- Pagination on Single Post
- How to get my loop to paginate?
- Distribute Gallery Images Every nth in Loop
- How to exclude or filter password protected posts when using next_post_link() previous_post_link
- How to append a query string to pagination?
- How do I get my loop.php to properly paginate?
- First archive page with a few posts
- Pagination broken after using 2 loops to show content
- Pagination on custom post type on front-page.php
- I have broke my pagination, same posts on all pages (index.php)
- Frontpage pagination by week
- How can this multiple loop have pagination as described?
- Display more than 10 posts on author.php file
- static page with multiple loops breaks post pagination
- Pagination for two loops
- Skip 5 latest post while paging?
- Why does my WP_Query pagination on a custom page.php only loads the homepage?
- How to insert content before pagination in loop?
- Pagination on a underscore custom theme
- WordPress multiple loops with default pagination
- How to fix pagination for custom loops?
- Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken
- Custom loop not working in singular.php, working in other pages
- Alternative layout the loop
- How to fix pagination for custom loops?
- How to fix pagination for custom loops?
- How to fix pagination for custom loops?
- Why is my pagination showing up?
- Displaying posts limit: can’t get pagination to display [duplicate]
- Paged homepage – requirements?
- Home page loop with pagination problem
- WooCommerce custom loop pagination on front page
- posts_nav_link() not working on index.php
- Custom Page Template and Category Exclusion
- repeating posts on 2nd page to posts
- Limitless amount of posts in custom archive page
- Same posts within a paginated page
- Multiple loop with pagination in same page
- Insert multiple custom components after x-number of posts
- how to upload image using wp_handle_upload
- Avoiding using a loop to access a single post
- Adding ‘current_post_item’ class to current post in the loop
- WordPress Alphabetical Glossary close div in loop
- How to make multiple Column in archive Page?
- Sort Popular Posts by Views for the Last Week
- Filtering posts by multiple taxonomies
- Adding shortcode closing tag after a loop
- Removing the_content() from the page
- Change front-page layout after x amount of posts ( while in the same loop)
- Filter the loop by categories using checkbox form
- query_posts() vs get_posts() multiple loops [duplicate]
- How do I make a variable available inside partials?
- Unable to change the “Read more” text inside the_excerpt
- Display Post Author Link above the loop
- Conditional: IF current user has NOT commented on current post (not including post author)
- Change post order by meta key, per post basis
- Loop Problem: Displays same set of post for all categories
- How do i find and restore a sidebar that i accidentally deleted? [closed]
- Posts not showing
- Use BuddyPress data in loop (mkdir)
- How to get post category and author name for cusmot API?
- WordPress posts in the loop not stacking side by side
- Create an archive page(loop) for edd products (music files) with an audio player?
- WordPress Pages in an Array
- the_content() keeps repeating itself
- Show different Google Map markers for different post_meta values
- My loop of random posts drags in comments of said random post
- Why my title change the last post title in my loop?
- wp_query pagination links producing 404
- display only parent replies count in index.php
- using the loop on a page
- Pagination problem with multiple loops on the same page
- Fix html inside a for loop [closed]
- Display all posts in a page code for template