Questions tagged [pagination]

Breaking up content into smaller-sized pages to be viewed individually

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Pagination on author.php page with custom var

I have a WP_Query on the author.php page that queries a users favorite posts stored in custom metadata. $author = get_user_by( 'slug', get_query_var( 'author_name' ) ); $author_id = $author->ID; $...
0
votes
1answer
18 views

How to add numbers pagination to this blog page?

I want to add number pagination to my blog page. I have tried to add pagination code but it does not appear. here is the code and I just want to add numbers pagination to it. it is blog page <?php ...
0
votes
0answers
9 views

pagination in table in wordpress

<?php function wp_schools_list() { global $wpdb;$wp_rewrite; $table_name=$wpdb->prefix.'dbp_tb_branch'; $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1; ...
1
vote
1answer
123 views

Custom rewrite causes 404 on pagination

I have custom rewrite rules in place so that the posts page URL can be /blog/ and all posts have the URL structure /blog/post-title-here/, this works great, however I am getting a 404 error on the /...
0
votes
1answer
511 views

Add Custom Pagination Permalink

I'm trying to create a page with multiple loops on it and as such also need multiple pagination. This is proving to be a touch difficult, I've managed to get the links to show correctly by using the ...
-1
votes
2answers
21k views

Pagination Using ajax

I want to use Pagination using ajax for custom post taxonomy. Many of codes are tried by me but at the last I was failed. So,how can i use pagination using ajax without plugin? When i am clicking on ...
1
vote
1answer
36 views

How to get an array of years from all of the search results, and use it to filter by year the paginated loop?

I hope this is not too dumb: even though I'm learning at an acceptable rate, my WP knowledge still has some important gaps. What do I have: My search.php template gets its results from the normal ...
0
votes
0answers
12 views

Pagination for custom categories template

I'm a newbie with wordpress theme creation. I want to create a custom category.php file, I've implemented the loop and it will display the last 8 posts. I have some fake posts to test if all works ...
0
votes
1answer
28 views

Show number of pagination pages even when total under two

I have implemented pagination to my wp site and pagination works correctly, but when I limit to display lets say 10 posts and I have 9 then it won't show pagination. Is it possible to show in that ...
0
votes
0answers
15 views

PAIN. Comments Pagination

Sorry for flame, but i wasted 7-12 hours trying to understand how comments pagination works.... Never thought that simple step will take that much with WordPress :'(((( i output comments in my theme ...
0
votes
0answers
11 views

How to paginate comments with wp_list_comments

How to paginate comments using 'per_page' and 'page' arguments, some how like 'paged' argument for WP_QUERY works. I want to list comments passing arguments somehow this way: $curr = max( 1, ...
0
votes
1answer
36 views

Pagination Not Working for Custom Taxonomy with Custom Query - 404 Error

I am having trouble getting pagination working for custom taxonomy archive with the custom query. The pagination on the taxonomy archive ends up with a 404 page. I have to run a query multiple times ...
0
votes
2answers
2k views

Adding pagination to a custom archive template

I'm trying to add pagination to my archive template. If I use the same code as on my main blog template it doesn't filter results based on the tag in the URL, instead it simply shows all posts. ...
0
votes
0answers
21 views

Go back to the exact post page number

I use pagination in my index.php and I have many posts per page. Every post have a button to go back to home. The problem is that when I visit a post in a page 5 for example, the button always send me ...
0
votes
1answer
633 views

Pagination not working on my archive page for a custom post type

First off I have a custom post type called events, and I wrote a custom query in in my archive-events.php file. Everything is working great except for the pagination. To trouble shoot I stripped ...
0
votes
3answers
547 views

Showing the correct number of posts_per_page when avoiding the use of post__not_in

WordPress VIP and other development guides I've seen recommend avoiding the use of post__not_in for performance reasons when using WordPress at scale. Their suggestion is to filter out the posts in ...
0
votes
1answer
563 views

get_next_posts_link() stops displaying at page 4

Please start by taking a look at this quick video: http://www.screenr.com/8vSH The problem: get_next_posts_link() disappears on page 4. That is, the "go to older posts" link disappears once I am in &...
1
vote
0answers
21 views

How to create pagination for custom taxonomy in Wordpress

my code it's this, and i can't create the pagination for that, its working good the pages 1, 2, 3 and etc.. but its just that the pagination links are not showing in the template. I created a template ...
0
votes
1answer
1k views

Problem with custom WP_Query and underlying pagination/posts_per_page

In my category template (category.php) I have the following code: <?php // Setup custom loop -- we need to exclude featured posts from listing so they aren't repeated $paged = get_query_var('paged'...
0
votes
0answers
14 views

WordPress Pagination Issue, displaying first page only

I have searched and can't find a solution that is working. I have this exact code on another site and it works. Not sure why it's not working here. All it's doing is ever showing the first page of ...
1
vote
2answers
539 views

Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working

Maybe there's a better way to do this. Let me explain what I have right now: I have a custom post type (Products), and a custom taxonomy (Manufacturers). What I have outputting so far: Manufacturer ...
1
vote
0answers
114 views

Blog post per page setting conflicting with custom WP_Query?

I am creating a theme, and have run into a problem with how a custom WP_Query seems to interact with the Blog pages show at most settings found under Settings -> Reading in the WordPress backend. I ...
1
vote
2answers
924 views

get_next_posts_link not working without parameter max_num_pages

I have a custom search page (searchpage.php) using pagination, and I am tring to add lines like below dynamically to my header.php inside <head></head> tag for better pagination SEO. <...
0
votes
1answer
606 views

Changing post per page causing 404 for pagination. Need a redirect htaccess rule

i changed my wp theme and i changed the "post per page" wp setting on "reading"now because i want to display more posts on the archives pages. i m using pagination on the archives so a lot of pages ...
1
vote
2answers
897 views

Start post pagination at 0 instead of 1

Is it possible to start post pagination count at zero instead of 1? I want the URLs to be like this: ../page (Foreword) ../page/1 (Chapter 1) ../page/2 (Chapter 2) But by default the URL is not ...
0
votes
1answer
2k views

Count posts for pagination

I'm doing the pagination for a web. < Previous (pagenumber) Next > is easy, already done. But now I need to add a selector to go to a page directly (ex: to page 7), to do so, I need to know how ...
0
votes
1answer
2k views

pagination in woocommerce order history page

Please help me to add pagination in my order history page. Pagination should work like WooCommerce products page. Here is my code: <?php $customer_orders = get_posts( apply_filters( '...
0
votes
2answers
1k views

Pagination: Last Page Missing

I've about 12 records and that means I should have 4 pages. My best attempt so far at getting pagination to work is this, and I'd really appreciate if someone could tell me where exactly am I going ...
0
votes
0answers
31 views

posts_per_page problem

I'm new here. So if I ask my question in wrong way, let me correct please. Anyway, here is my problem. I have a post category which has 22 sample posts. I created a shortcode with wp_query which has ...
0
votes
0answers
21 views

Next Previous link in Custom Post types only within same Taxonomy

I use a Genesis theme and Pods templates for custom post types. I have 4 CPTs for different types of Artwork. Within a given CPT I have a pods field to indicate whether the artwork is available or ...
0
votes
1answer
856 views

How to get all images in Media Gallery with pagination?

I want to get all images in the image gallery with pagination so that I can use infinite-scroll with it. The infinite scroll works but it's taking the posts' number of post, not the images. That ...
0
votes
1answer
862 views

Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken

I'm working on a theme and I am having trouble with loops/pagination breaks when using an offest. I looked online and tried to use only 1 loop (per this post) but I'm having trouble making it work. I ...
0
votes
1answer
813 views

How to fix blank pagination links?

I am working on a Wordpress blog that has what appears to be custom pagination for the posts. As you can see here the correct amount of links are being rendered at the bottom of the page, however ...
4
votes
2answers
4k views

Display all posts from all categories with pagination

Alright, this might be a tricky one to explain but I'll do my best. At the front page I want to display all the posts from all the categories. However I want them to be divided. Take this for an ...
4
votes
1answer
664 views

Implementing a general Table of Content across single paginated post pages

I am working on a blog and most of my posts are so long they require pagination. See one of my posts. This post has a lot of pages. The only problem is that I can't find a way to show a table of ...
0
votes
0answers
17 views

pretty urls for categories instead of query string along with pretty pagination

I am trying to add a pretty urls instead of query string like customers/reviews/xyz here reviews is a custom post type and xyz is category customers/reviews gives all reviews and customers/reviews/...
0
votes
1answer
724 views

Posts loop with pagination on a single post page

Today, I need your help. On my pages I have a sidebar with : <div class="sidebarActu"> <ul> <?php $i = 1; while ( have_posts() )...
0
votes
1answer
739 views

Pagination is not working on custom query inside a custom home page template

I know this is a duplicate question. But to comment on existing question, I dont have enough points. So here we go.... Pagination is not working on custom query inside a custom home page template. ...
0
votes
2answers
7k views

What is the best way to implement ajax based pagination on custom query based templates?

We can use multiple plugins like wp-pagenavi or wp-paginate for implementing pagination for wordpress sites and making it ajax based using the following code: jQuery(document).ready(function(){ /...
0
votes
0answers
13 views

Taxonomy pagination permalink structure not working

I have registered a custom taxonomy "bookgroup" for custom post "book". To get permalink like "www.example.com/book-group/fiction/" working, I have used code as below. $bookgroup_structure = '/book-...
0
votes
1answer
1k views

Creating a Back button on detail post page to go back to blog page with same query strings and page id

So, I would like to have a back button on the single post page that can be dynamic to the point to where it knows where it is in the query and bring me back to the blog page on the right page number ...
0
votes
1answer
926 views

Apply filters when loading post via ajax

Have been trying to solve this for couple of hours already. Here's the case: I'm making a plugin that separates the posts into pages using the <!--nextpage--> tag. It works fine but I want to ...
0
votes
1answer
636 views

Rewrite Rule & Regex - Extract 'cat-name' and 'page-number' from http://domain.com/custom-post-type/category/cat-name/page/page-number

I have an URL formatted so: http://domain.com/custom-post-type/category/cat-name/page/page-number I need to extract: cat-name and page-number So that in my functions.php, I can create the custom ...
0
votes
1answer
20 views

Problem paginating a subquery on a post

I have created a post template that looks for other posts with the same tags. I want to paginate this list of posts. The pagination links look correct but when I click on them the pagination is lost. ...
0
votes
1answer
79 views

Pagination not work on page but work on category

i am using kriesi Pagination, it is working perfectly fine category page but it when i do similar query on page then it is not working. any idea why ? function kriesi_pagination($pages = '', $range = ...
0
votes
0answers
37 views

how do i add prev/next button instead of number pagination?

I have a blog with multipage posts, I see the pagination is in numbers like 1 2 3 … is it possible to add the prev/next buttons to navigate instead of number pagination? Thanks.
0
votes
1answer
4k views

How to add pagination to custom page

I am using the loop in my custom page template as you can see in my code. Only 2 posts must be shown and for the rest I should be able to have pagination. <?php $paged = (get_query_var('paged')...
0
votes
0answers
25 views

Wordpress Single Post Pagination Numbered and Navigational

I already have a Pagination on my Post [Single Post Pagination using <!--nextpage--> ] and it looks something like this... Now, I want to change it to... I have gone through few documentations ...
1
vote
0answers
13 views

Archive page pagination links redirecting to home page instead of going next page

I am displaying 2 posts in archive page with pagination. But my next page pagination link is redirecting to the home page instead of going to next page with containing next 2 posts. The URL is ...
0
votes
1answer
671 views

How to group posts by months and add pagination?

I want to group by posts by months. Like this: January 2014 Post name Post name December 2013 Post name November 2013 Post name Post name Post name Post name I need to have 10 months per page, ...

1
2 3 4 5
34