Linked Questions

2 votes
2 answers
14k views

Pagination doesn't work in custom page template [duplicate]

Possible Duplicate: Pagination not working with custom loop Apparently this is very popular issue. There are already bunch of people offering answers for this. But somehow after hours of ...
dev-jim's user avatar
  • 1,938
0 votes
1 answer
10k views

How to display a paginated list of posts from one category on a page? [duplicate]

I'm trying to use the code from this page: Display Blog Posts on any Page (with navigation) http://digwp.com/2013/01/display-blog-posts-on-page-with-navigation/ My goal is to make pages that display ...
portlandRyan's user avatar
0 votes
2 answers
4k views

Blog Page pagination not working, loads Page 1 each time [duplicate]

I don't know what to do here but pagination is driving me crazy! As you can see, "Older" points to blog/page/2 but when clicked, the site stays on blog/. I'm using wp-pagenavi for pagination. The ...
Ash's user avatar
  • 1
0 votes
2 answers
3k views

Pagination for custom post type not working [duplicate]

Possible Duplicate: Pagination not working with custom loop So I have a post type called portfolio, but I can't get it to paginate. I'd also like it to paginate on single pages so each item has a ...
andy's user avatar
  • 2,299
0 votes
1 answer
2k views

Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]

I coded a WordPress theme. I added a Photo Gallery with custom post type. But if paged>=2, it gives 404 error. If you open my web site link and click Tümünü Göster (Show All) button, you can test ...
onur's user avatar
  • 1
0 votes
1 answer
1k views

pagination does not work with query_posts. Help! [duplicate]

I made ​​a separate page template (added sidebar), this page contains all the posts. Pagination works! But, if this page set as the home page, pagination is not working! Please help find solutions ...
Евгений Березовский's user avatar
0 votes
1 answer
1k views

Problem: ( kriesi ) pagination doesn't work in homepage [duplicate]

When I set this template as homepage, pagination doesn't work. I see the buttons, but when I click the button for page 2, nothing happens, doesn't go on page 2, it still remain in page 1. What is ...
Blanka's user avatar
  • 35
0 votes
1 answer
822 views

Fix Pagination Directory on a page set as Front Page/Main Page [duplicate]

I have a page named "calientes" with a complex loop that's working perfectly. This page is located at domain.com/calientes/. Now I need to use this page as the home page, so I went to "Settings -> ...
Oscar's user avatar
  • 41
0 votes
1 answer
743 views

Pagination in custom query not working [duplicate]

hi im trying to output pagination without any success. below is my code in a page-products.php template <?php $products_query = new WP_Query(array( 'post_type' => 'product', '...
George Ananda Eman's user avatar
0 votes
1 answer
533 views

Displaying posts limit: can't get pagination to display [duplicate]

Possible Duplicate: Pagination not working with custom loop I'm creating a custom page for logged in current users to view their posts. I would like to limit the number of displayed post to 5, ...
Abby Ravera's user avatar
0 votes
2 answers
161 views

Why won't my paged wp_query work? [duplicate]

Possible Duplicate: Pagination not working with custom loop Any ideas why this paged wp_query doesn't seem to want to work? I've tried replacing the pt_pagination function with the default next/...
Dean Elliott's user avatar
  • 1,175
0 votes
0 answers
104 views

pagination /page/2 redirects to home page (domain.com) [duplicate]

Either using wp-pagenavi or the standard wp pagination (posts_nav_link()) a click to mydomain.com/page/2 will result in a 301 redirect back to the home page (url = domain.com ) This is not a ...
Doug Cassidy's user avatar
0 votes
0 answers
90 views

Using pagination with specific custom post type [duplicate]

Alright.. I've been looking alot on the internet in search of a solution for this.. so far i found nothing that could explain me how to solve it.. When i click on Page suivant from the navigation ...
pouki's user avatar
  • 11
-1 votes
1 answer
59 views

Wordpress getting problem with pagination [duplicate]

I am trying to display pagination from archive.php with my custom post type news but when I click to Next page I am getting 404 page My Custom Post Type Code: function codex_custom_init() { $...
Rajnikanth's user avatar
0 votes
0 answers
38 views

Pagination paginate_links() Not Working [duplicate]

Here's my code <?php query_posts(array('category_name'=>'nutrition','posts_per_page'=>'3','paged' => get_query_var('paged'))); while (...
markyeoj's user avatar
  • 507
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
0 votes
0 answers
2k views

Classic Custom Post Types and WP-PageNavi

Has anyone made this work? I am searching for a solution for 2 days now, and it won`t work. I have... $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $updates = new WP_Query(array( '...
Iulian Bozeanu's user avatar
0 votes
0 answers
1k views

Pagination in custom loop [duplicate]

I thought I know how to add pagination to a custom loop and I've seen these questions and tutorials: Pagination not working with custom loop http://weblogtoolscollection.com/archives/2008/04/19/...
Paul's user avatar
  • 2,140
0 votes
1 answer
1k views

Custom post type navigation - 404 on page 2

I have a custom post type portfolio and now I'm trying to enable navigation for the template where 10 portfolio items are shown. I'm using the following code to query the posts: if ( get_query_var('...
user2019515's user avatar
0 votes
2 answers
620 views

Pagination With Custom WP Query not functioning

I have the following custom query and im attempting to paginate the links of previous archive posts using the example from the wordpress codex http://codex.wordpress.org/Function_Reference/...
Kirsty Marks's user avatar
0 votes
1 answer
777 views

WP Paginate not working properly

Im creating a WP for a custom type post in a page template: <? global $paged; global $notquery; $temp = $notquery; $notquery = ...
Lucas Veiga's user avatar
0 votes
1 answer
531 views

Search results with custom loop don't update when paged

I have the following code in my search results page to split up posts per category. When I go to the 2nd page of pagination, the results are exactly the same as the first. I'm assuming $paged has to ...
Chad's user avatar
  • 193
0 votes
1 answer
314 views

Pagination linking to first page

I have created a query which work correctly and displays the pagination correctly. However when clicking the links /products/category/application-range/page/2 the page will load and go back to /...
Brob's user avatar
  • 271
0 votes
3 answers
142 views

Trouble Making WP_Query paged

I'm using the query below in the index.php file as the main query, whenever I try to go to the 2nd page I get a 404 error, I tried using posts_per_page but to no avail. <?php $args = array( '...
Chozen's user avatar
  • 163
0 votes
1 answer
47 views

Query Not working as expected

So I wrote a rather - unattractive function - a while ago and I was re-factoring some code and I realized my query function doesn't work ... I recently made a post about how my tansient posts were ...
TheWebs's user avatar
  • 1,085
0 votes
0 answers
51 views

Pagination inside the blog page not working

I have a widget which creates a grid with pagination. If I am using the pagination then it works fine when used on the page to display grid. But when I am using that in inside a blog post. The ...
user avatar