<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'cat' => 5,
'posts_per_page' => 4,
'paged' => $paged
);
query_posts( $args );
while ( have_posts() ) : the_post();
//Post Content
endwhile;
// Paging
next_posts_link('← Older Entries');
previous_posts_link('Newer Entries →');
?>
to get the code working for me, I first have to change the first row with
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
to
<?php
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
(the term paged changed to page) and this seems to be legit referring to this last comment on Pagination Parameter saying:
You should set get_query_var( ‘page’ ); if you want your query to work with pagination. Since WordPress 3.0.2, you do get_query_var( ‘page’ ) instead of get_query_var( ‘paged’ ). The pagination parameter ‘paged’ for WP_Query() remains the same.
haven’t seen anyone highlighting this when discussion the same problem, are many people using elder versions of WP or what?