Linked Questions

0 votes
0 answers
24 views

Pagination won't go to page 2 [duplicate]

I've created a page which uses posts 2 posts and pagination The pagination will not go to page 2, every time I click the link it reloads the page, however hovering over the page two link shows the ...
Brob's user avatar
  • 271
0 votes
0 answers
19 views

WordPress and pagination [duplicate]

Let me paste code first: <?php $category = get_the_category(); $category_id = get_cat_id( single_cat_title("",false) ); $args = array( 'posts_per_page' => 5, 'post_type' => ...
IFightCode's user avatar
0 votes
0 answers
17 views

WordPress site with custom theme, can't get pagination to update posts on page 2+ [duplicate]

I have inherited a WordPress site which has a custom theme which I have in the main been able to modify to suit the clients needs. I am having trouble, however, with the pagination of the 'category-...
Craig Paterson's user avatar
6 votes
2 answers
50k views

wp_pagenavi() with custom wp_query()?

<?php /* Template Name: Projects */ ?> <?php get_header();?> <section id="content"> <section id="main"> <?php $loop = new WP_Query(...
J82's user avatar
  • 225
0 votes
2 answers
7k views

Pagination for a category

Hi I have page displaying 20 featured images and info of a specific category, I wish to able to have pagination so I can have multiple pages for the category. How do I do this? I cant seem to get it ...
MrThunder's user avatar
  • 123
0 votes
1 answer
4k views

How to use pre_get_posts?

I am having a problem with the custom category template pagination and i search and read that using pre_get_posts fix the pagination problem. I read the pre_get_posts information in the WordPress ...
Charitos's user avatar
0 votes
3 answers
5k views

Pagination Not Working (pages duplicating content)

My pagination pages echo out the same content on every page. Page one is queried to show two posts, which it shows up correctly. Page two shows the exact same two posts as page one does. Here is my ...
Stephen's user avatar
  • 181
1 vote
1 answer
2k views

WordPress custom post type category pagination 404 Error

This problem is giving me a headache and I was wondering if anyone knew how to fix it. I have a custom post type called Review. Here is how it is defined: function codex_custom_init() { $args =...
21zna9's user avatar
  • 371
1 vote
3 answers
3k views

Pagination Doesn't Work

I created myfile.php with the following content: global $paged; if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); } else if ( get_query_var( 'page' ) ) { $paged = ...
Paul's user avatar
  • 2,140
0 votes
0 answers
3k views

Pagination with WP_Query not working

I have a custom page template on my site, with a WP_Query pulling in a list of posts. I'd like to implement pagination but just can't seem to get it right. Here's the code I'm using blelow, which ...
Kev's user avatar
  • 187
0 votes
2 answers
2k views

Pagination with custom loop

my question may look like Pagination not working with custom loop, but there is a different. I use the custom loop for display flash game. I want to make a pagination on page games by category. ...
glazsasha's user avatar
  • 101
0 votes
1 answer
2k views

Pagination not working with custom post type

From this answer, I now have an adjusted WP_Query statement (I added the $paged variable): $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $loop = new WP_Query( array( 'post_type' =&...
Steve's user avatar
  • 1,677
0 votes
1 answer
1k views

How do I get my loop.php to properly paginate?

I am using the Starkers theme as a foundation to build my theme and I am having difficulty getting my loop.php to paginate posts properly. When I click the "Next" or "Previous" post pagination button, ...
user avatar
1 vote
0 answers
2k views

Pagination with custom query, custom search form, single and pages, ajax and no plugins

I've read a lot of posts here about pagination with custom queries and tried the suggested answers (like this one). It seems however that my situation is a little more complex, and in the existing ...
eskimo's user avatar
  • 446
-2 votes
1 answer
1k views

Pagination on custom post type not working

I'm having a hard time getting pagination to work with my custom post type query. The standard "previous_posts_link()" and "next_posts_link();" aren't working. And through a bit of testing, I've ...
DaveP's user avatar
  • 349

15 30 50 per page