Reputation: 1640
With wordpress I am trying to figure out how to get the current page number and use it with the query_posts
function i have tried passing in page=1
but that doesnt seem to work
query_posts( "cat=4&posts_per_page=1" ); // how do i pass in the page number???
Upvotes: 0
Views: 684
Reputation: 257
query_posts( array( 'cat' => 8, 'posts_per_page' => 25, 'paged' => get_query_var('page') ) );
Upvotes: 1