Questions tagged [pagination]

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

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

Pagination not working past page 3 on archive page of category

I have a custom post type of "show" and within that custom post type I have set up a taxonomy / category called "venue" which has two options "venue-one" and "venue-two" (slugs). On the two archive ...
2
votes
0answers
44 views

Multiple WP_Query loops with Pagination Not Working

Please can anyone help me out here? I'm really stucked with this code. I want to create a multi post loop on my home page with each loop having its own pagination. The first loop is for recent post, ...
0
votes
3answers
2k views

Taxonomy rewrite pagination 404

I have rewritten my taxonomy url to the name of my posts type 'filter'. Because I have done this, my pagination does not work anymore on the url: http://www.website.com/filter/term-name/ So if I ...
1
vote
1answer
34 views

How to use pagination on costum post type

i made a costum post type use plugin Costum post type UI and i tried to display i on homepage / index code <?php args1 = array( 'post_type' => 'app', 'posts_per_page' => 3 );$the_query1 = ...
15
votes
4answers
39k views

Changing pagination list class

paginate_links() function returns unordered list with class named "page-numbers". How can I change this class? EDIT Currently, I am using the band-aid method below. $return = paginate_links( $arg );...
0
votes
0answers
42 views

PageNavi redirects to 404 when used as archive page

I'm using a page as archive for a custom post type called event. register_post_type('event', array( 'labels' => array( 'name' => 'Événements', 'singular_name' => '...
0
votes
1answer
232 views

Using the_posts_pagination with offset adds extra empty page

I'm working on a quite complex query, it has a different post count on the first page and on paginated pages, to achieve that I'm using offset and this seem to mess up the_posts_pagination. Here's ...
0
votes
2answers
2k views

Pagination (page/2/) displaying 404 on archive pages

I have a custom WP_Query inside of an archive. I know this is not ideal, but when I try switching it out for a pre_get_posts option, then my page just enters an infinite loop, so I'd rather stick with ...
0
votes
0answers
22 views

Excluding posts without affecting the number of posts per page

I'm in a situation where I have to exclude certain posts dynamically using a complex set of conditions*. I'm currently using the_posts filter to remove posts that don't meet the condition. add_filter(...
0
votes
0answers
64 views

How to add Pagination on post_type attachment?

I have a WordPress page that displays all attachments attached to a post instead of the post itself and I want to add paginations to it. The problem is that the pagination only appears if I change ...
0
votes
0answers
27 views

More pages avaible than max number in pagiantion

I found out that my pagination display for example max 2 pages but I can freely go to (max) 5, changing the number in the url address. It' avaible until I change the value to 6 or more, then I got 404....
0
votes
0answers
30 views

Content included from pagination

I appreciate if someone can help me to explain why my post content shows below the pagination even though I echo the title only. I call this code via shortcode. INPUT: // the query to set the ...
0
votes
0answers
27 views

Same content on Wordpress - Pagination with custom query

I am making own template for WP and I have problem with pagination. The content is always the same on every page. I read many pages about this problem and I implement the solution, but it doesn't ...
0
votes
0answers
45 views

How to modify the code to include “rel=next” and “rel=prev” tags?

I have a Wordpress site with some posts splitted in pages. I added post pagination via this code: Single.php: <?php wp_link_pages(array( 'before' => '<div class="page-links"><span ...
0
votes
0answers
21 views

I am unable to Split my Long Post using <!--nextpage--> Code

Whenever I enter the command <!--nextpage--> in html, it just breaks my post and does not show next or 1,2,3 pages to go for next broken page. I have already tried to add this code <?php ...
0
votes
1answer
226 views

Pagination on custom post type on front-page.php

I've seen several (and have tried at least 15+ methods here on StackExchange) ways of how to do the custom post type loop, none work in my case. I have tried methods using paged and without, using ...
0
votes
2answers
497 views

Pagination issue in archive.php

I can´t get works fine the pagination in archives for wordpress when i want limite the posts by page , if i let pagination by default as 10 from backend i haven´t problems but if i use this no works ...
0
votes
0answers
24 views

Create custom design for posts loop with pagination

I need to create a simple posts loop to be shown on the homepage (Meaning - I am in "page" and not "blog" or "archive" This is what I need: Display maximum of 5 posts there will be arrows on both ...
5
votes
2answers
6k views

How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/

I have a custom post type of players, and archive-players.php lists them all at an address such as www.site.com/players. I'm then using a url like www.site.com/players?type=pro to list another page ...
0
votes
0answers
28 views

Custom archive paged head title

My website is in hebrew and when im in a paged archive the title is "archive title" page 2 of 4. How can i add the title only in archives that are in a page 2 or higher? I am using Yoast SEO. And its ...
0
votes
0answers
198 views

Woocommerce 'order_by' random with 1 hour seed refresh

I need my woocommerce products to display randomly. My products are actually people and the random element is so different people get seen on the first page so no-one is favoured. So, I have ...
1
vote
2answers
195 views

Paginate Pages by only showing 3 pages at most

I'm trying to use Wordpress paginate function to only show 3 pages at most(client wants it this way) so that when you go up a page it shows the current page you're on and the previous and next page: ...
0
votes
1answer
34 views

get_next_posts_page_link adds Inexistent directories

Using get_next_posts_page_link function to get url of paginated post's next page url, but it's adding directories to it that simply do not exist. Here is the code where I use it and probably missing ...
0
votes
1answer
39 views

How to add post page pagination to template part?

How can I get this page to display the post page pagination? I'm using a custom blog template with a get_template_part. https://www.nowitconnects.com/blog/ <?php /** * Template part for ...
0
votes
0answers
112 views

How to paginate across foreach loop?

I want to paginate a lengthy page, but it is not about paginating a post loop. My site has thousands of posts of type "article". And taxonomies including "company" and "format" - an "article" can be ...
0
votes
0answers
35 views

Adding pagination to Ajax Query

I have a search page. It works like this. (1) User searches using form in the homepage (2) User is taken to search results page (3) If user modifies the search term( there is form with in the search ...
15
votes
3answers
22k views

How to determine if theres a next page

I am new to wordpress development, just trying to convert my HTML into a WordPress theme, I started with Chris Coyer's blank theme. <div class="navigation"> <div class="next-posts"> ...
1
vote
3answers
792 views

WP_Query ajax loader detect end of posts

I built the ajax loader as follows. How can I detect when it reaches the end of all posts? So that I can make the "More" button to disappear, or not clickable anymore. In page template: WP_Query ...
0
votes
2answers
71 views

How can I change the output display of my pagination?

How can I change the output display of my pagination? I have been trying for the past few hours to format the output of my pagination links (1,2,3, etc.) to resemble the below: I have been unable to ...
0
votes
1answer
16 views

Why is my loop not populating the page with my custom taxonomy terms from my custom post type?

Why is my loop not populating the page with my custom taxonomy terms from my custom post type? Currently it is displaying an empty box instead of pulling in the custom taxonomy terms from my custom ...
0
votes
0answers
15 views

Pagination on Search Query not formatted correctly

I have in my pagination code below I have seemed to figured out how to omit the /page/1/ from the first link of my pagination like this 'base' => get_pagenum_link(1) . '%_%', on news posts and ...
0
votes
1answer
35 views

Generating rel=“prev” and rel=“next” using filters

In wp-includes\link-template.php the function which defines the pagination is: /** * Retrieves the previous posts page link. * * @since 2.7.0 * * @global int $paged * * @param string $label ...
0
votes
1answer
140 views

Following/Followers Users list Using Ajax Pagination inside Author Profile

I will try to be clear, I'm using "Users Following System" plugin. And I added a list of the following/followers users into the author.php profile, now I'm trying to use Ajax pagination. For sure ...
0
votes
3answers
1k views

How to show 1-5 of X Total Results

I know I'm doing something that's been done 1000's of times before in WordPress, but struggling to get the terms to find it on the Interwebs. I've got a custom category template page and have a while ...
12
votes
2answers
27k views

Change Posts per page count

In the wordpress settings => Reading => Blog pages show at most [input field] posts I have it set to 3 posts at the moment. On my index, date archives, tag archives, category archives, search ...
2
votes
1answer
68 views

Wordpress Pagination not working, any ideas?

So I've been looking into why the pagination isn't working, but I just can't find anything. When it goes to page 2, it just shows the same as the first page. Any other ideas? <?php global $...
0
votes
0answers
143 views

How can I get my pagination loop to display the correct number of total pages?

Currently my pagination is showing 7 posts on the first page and 6 on each page after. This is what I want. The current readout looks like this: . The total count of my pages changes as soon as I ...
0
votes
1answer
78 views

Pagination for Custom WP_Query not displaying page 2 results

I know this question has been asked many times, and I've been trying every answer I came across all day from 11am-9pm and I am STUCK. Here is my search page http://tribute-software.com/development/?s=...
1
vote
2answers
1k views

Disable pagination only for specific category

I'm trying, without success, to disable pagination only in a specific category (where I'm showing all the posts of that category listed by years). Someone can help me? Thanks.
0
votes
1answer
6k views

pagination broken - clicking next displays “page not found”

I'm a newb at Wordpress, but my HTML/CSS is ok. My site is: http://www.modernfuture.net/wordpress been working on it this for quite some time & I'm done with the headaches, need to get some ...
0
votes
0answers
41 views

Search, pagination, the last pages leads to 404 page

sorry Im new to Wordpress. I have a search list and able to browse among hits: "http://example.com/search/SEARCHEDKEYWORD/page/11/" I have 15 pages, and the last 3 pages leads to 404 page. So, http://...
-1
votes
1answer
31 views

See the process of creating a taxonomy and tell me where I made a mistake

Now I will acquaint you with the process of creating a taxonomy and the appearance of an error in the pagination of posts for a certain category of created custom taxanomy. Step 1: Register custom ...
0
votes
2answers
9k views

Pagination 404s on custom query

The basic issue is that every paginated page for my blog is going to a 404 page. /page/2/, /page/3/, etc. It used to be working fine, but is not now. I think maybe the change to 3.9 did it. Here are ...
-2
votes
1answer
126 views

Pagination for custom post type on multisite not working

I have added code to paginate posts, but it seems like it's broken or not working on not reset or simply depends on multisite installation. Take a look. Many thanks: <?php /*template to display ...
0
votes
0answers
24 views

paginate_links pagination with new variable pg

I would like to add new parameter "pg" as page number with help of paginate_links(). My website: https://www.dealfinder.lk/search/?deal=happy-hour&pg=2 Here is my function : echo ...
1
vote
1answer
29 views

How do I detect which page I'm on within a paginated post?

I'm using wp_link_pages() to paginate a post. I want to show something below the post content only on the first page of the post. Naturally I thought I'd use get_query_var('paged') to get the page ...
18
votes
2answers
51k views

Pagination when using wp_query?

<!-- query --> <?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $query = new WP_Query( array( 'category_name' => 'investor-news', '...
1
vote
2answers
2k views

Pagination for Pages and Posts

I want to use Pagination throughout a new theme but am having trouble getting it to work correctly. I am using some code within my functions.php file and then calling that function. It works on the '...
0
votes
2answers
71 views

Adding pagination to my theme [closed]

I would like to add a pagination to my wordpress theme. However, for me it is not so easy because my theme is built from the plugin "AT Posts Column", which displays the latest posts on the main page. ...
4
votes
2answers
8k views

Modify previous and next text from pagination links

I set the pagination parameters in functions.php and echoed where I want the links to appear, so far so good. The problem is that the previous and next texts are not modifying. I put a random text to ...