Questions tagged [pagination]

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

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

How to Add Pagination to Page?

I follow the instructions in https://www.wpbeginner.com/wp-tutorials/how-to-split-wordpress-posts-into-multiple-pages/ to add <!––nextpage––> tag to my page in classic editor, see below: ...
0
votes
0answers
6 views

Enable comments pagination only amp page

I'm using automattic's amp plugin and would like to know if is there any way to enable pagination in comments only on amp pages. Scenario: In our business we don’t want the pagination of comments on ...
0
votes
0answers
16 views

Manipulated offset and pagination, can't display last post anymore

As you can see from the code below, i'd like to show the last post with a design and the other posts with a different design on the first page. For the rest of the archive pages the last post won't be ...
0
votes
1answer
21 views

Pagination contents not changing in Front page WordPress

This question has asked many time before and none has answers my question. I went through most of the answers before post this. I have a pagination query in home page. Pagination is showing and I can ...
0
votes
0answers
18 views

Wordpress Pagination not working on category sites

I'm totally frustrated and troubled by a stupid pagination error on my wordpress site. I'm currently building a portfolio page for my graphic work. I'm not into web dev that much but I managed to fix ...
0
votes
0answers
29 views

Unable to get pagination working using combined WP_Query

So I've been battling this for like a week now and it's impossible to find a solution, so I am reaching out to see if anyone could assist me. I want to paginate through my total 13 posts and just ...
0
votes
0answers
28 views

Load more posts using AJAX based on posts inside WP_Query

So this is something that I have been battling with for some time now and I can't figure out how to "Load More" posts using AJAX with a combined query. Is it possible to AJAX Load more with ...
0
votes
0answers
14 views

WP_query not loading posts with pagination if posts_per_page number is larger than posts that are published

For some reason WP_query will return no posts if I set the posts_per_page to a number larger than the number of posts that are currently published of that custom post type. One would assume that ...
0
votes
0answers
15 views

Unable to get pagination to work with combined WP Queries

So I have been battling with this for two days now and I can't figure out how to fix the pagination with the combined wp_queries. ORIGINAL CODE: This works perfectly, this has 4 posts shown and 7 ...
1
vote
0answers
17 views

Add icons in paginate_links()

I have added the following in my woocommerce pagination <?php echo paginate_links( apply_filters( 'woocommerce_pagination_args', array( 'base' => $base,...
1
vote
0answers
24 views

ACF Relationship Previous Next links of CPT

I have a CPT for artworks with custom taxonomy for artists. Then I have another CPT for artists. The artist pages are basically the the page title (artist name) and a relationship field where you add ...
1
vote
2answers
129 views

Pagination of a WP_Query Loop in a child-page page template

See edit at bottom. I have a wp_query loop in a page template for a custom post type ("success_stories"). The loop itself works fine but I cannot seem to get pagination working. I've tried ...
0
votes
1answer
39 views

How to remove url from omission dots in WordPress pagination?

I am creating a custom pagination with my WordPress. Everything is fine, despite the omission dots are linked to too. So it creates an anchor with http:/localhost/wordpress/page/.... How can I get to ...
1
vote
0answers
32 views

Custom post type paging return home page

I am having problem with Custom post type paging. Clicking on 2nd page of paging through back to home page. Permalinks flush/refreshed and i am using simple code to show custom post. following is my ...
0
votes
2answers
36 views

Use of rewind_posts() cause pagination to break

I'm developing a site using Understrap's starter theme. I wanted to use a split design on home.php where the latest post is displayed on top of the others "full width" while the rest are ...
0
votes
0answers
23 views

Pagination in woocommerce - Limiting page-numbers

The below code is displaying pagination as follows - 1 2 3...6 7 8 9 > Whereas I just want to display - 1 2...8 9 > Basically I just don't want the pagination to be more than a line if I have ...
0
votes
0answers
13 views

How to change custom paginated URLs using PHP code

See our website has pagination URls like below https://www.xxxxxxxx.com/xxxxxxxx/yyyy/zzz/?xx_xxx_page=2 https://www.xxxxxxxx.com/xxxxxxxx/yyyy/zzz/?xx_xxx_page=3 https://www.xxxxxxxx.com/xxxxxxxx/...
0
votes
0answers
12 views

template with multiple post loops for multiple widgets [duplicate]

I have two different widgets on one of my pages. They both display posts, but from different categories. One widget has pagination. Now when I switch to another page, the 2nd widget doesn't display ...
0
votes
0answers
18 views

Comments pagination: reverse JUST the links texts (1-2-3 to 3-2-1), not comments order

Hi fellow Code Poets ) I wanted the pagination links numbers to be in the order opposite to the pages they lead to. The link leading to the last page had to read 1, and vice versa, etc. I've written ...
0
votes
0answers
30 views

Help with Elementor Pagination CPT archive 404 problem

The pagination links in CPT archive created with Elementor Pro get a 404. I've spend a full day searching and trying everything I found on Google with search "CPT Elementor archive pagination 404&...
0
votes
0answers
13 views

Create pagination inside a WP plugin where I am fetching data from an external server?

how do I Create pagination inside a WP plugin where I am fetching data from an external server? I have a connection to an external mssql server and fetching thousand rows of data, I need to show these ...
0
votes
1answer
23 views

Blog posts pagination not working

I have been debugging this but I cannot seem to find what's wrong. An extra eye would help! I am trying to add pagination on my blog posts. Here is the code On home.php <?php $total_pages = $...
0
votes
1answer
21 views

Keeping session instance of random display results over pagination breaks

I'm working on a site that has blog posts with performers' info under a single category that can be filtered using a custom taxonomy (both parent and child terms). To keep it as fair as possible, the ...
0
votes
1answer
138 views

Custom wp_link_pages for paginated posts | Next page randomly

Does anyone know if it's possible to change wp_link_pages, I want to change the order of the pages Example : i have an Post consisting of 5 pages i want when you click on "Next page", it ...
0
votes
1answer
21 views

Wordpress post pagination continuous [duplicate]

I have these shortcodes which I am using as links in my front end to get the next post and previous post. When I get to the last post it just keeps reloading the last post again. How can I get it to ...
1
vote
1answer
86 views

WP Pagination on Posts Search Results Page resulting from AJAX WP Query

I have a simple WP post query, which is supposed to load 8 posts per page, with a post navigation displayed below, like so: $query_args = [ "post_type" => "post", "...
0
votes
2answers
49 views

Disable and redirect pagination of Home

My home is a static page, but Wordpress create enumeration "home/page/2/.../3/" and the only solution found that disable pages generation, also redirecting, is the instruction below, but I ...
0
votes
1answer
15 views

Pagination not working on archive.php

I am using the WP Job Manager plugin and was able to point where the markup of http://www.mywebsite.com/job-listings/ is used. It's set on a file called archive.php of my main theme. <div id="...
0
votes
0answers
20 views

Disable pagination for categories

Edit: found the reply here I want to disable pagination for categories/tags or change it to an arbitrary limit, say 50. I have tried adding this snippet Disable pagination only for specific category ...
0
votes
0answers
62 views

How to add "Previous" in pagination on the home page

I use the Twentytwentyone theme just to display one post by page with pagination. On the home page, the text "Previous" doesn't display. On the last page, it's the "Next" text. In ...
0
votes
0answers
18 views

Pagination not working in custom post type but perfectly in posts

<div class="pagination my-3"> <?php global $wp_query; $big = 999999999; // need an unlikely integer echo paginate_links(array( 'base' => str_replace($...
0
votes
1answer
24 views

WordPress static home page pagination not working

I am trying to add the pagination on the home page, But it is not working. Can anyone help me to fix the issue? <ul class="xl-products grid- masonry"> <?php if(...
0
votes
0answers
17 views

WordPress Pagination Urls + Japanese Keyword Hack

My site has been hacked about 2 years ago. I got rid of that Japanese Keyword Hack and the site is clean. However, Google tries to crawl old pages with these random characters, and more specifically ...
0
votes
0answers
11 views

Pagination on taxonomy template not working after rewriting slugs

My pagination is not working on my taxonomy(sub-category) page. It keeps on loading my archive template. This happened after I applied function codes that re-write's url and producing all parent and ...
0
votes
1answer
32 views

pre_get_posts pagination not working

I've been trying to fix my pagination on for category pages but am at a loss. This is my pre_get_posts function for category pages. add_action( 'pre_get_posts', function ( $q ) { if ( !is_admin() /...
0
votes
0answers
14 views

Rewrite rules showing blog pagination 404 error

I added below script in my website to setup custom language slug like th, se etc. After adding this below script my pages are working like. www.mywebsite.com/ www.mywebsite.com/se/ www.mywebsite.com/...
0
votes
0answers
28 views

How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?

The Setup I have divided my blog into 3 categories with their respective slugs. There are 3 pages corresponding to these 3 categories with their respective custom page templates. On each page, I ...
2
votes
1answer
25 views

Redirect "any page/page/number/" to "any page"

I've read so many similar topics but none of them matches my own request. I'd like to redirect in ht.access any page with pagination to the root-main-original page. example.com/garden/page/2 ...
0
votes
1answer
25 views

custom posts archive pagination links /page/2/ ends up in 404

I have a custom post named blog, I am using a page with url - slug blog, with custom template for displaying the blog arhive. This is the query I am using in the template file: global $wp_query; ...
3
votes
2answers
45 views

How to get post pagination like this

I'm using this function right now wp_link_pages( array('before' => '<div class="page-links">','after' => '</div>',) ); The post pagination is showing like this: 1 2 3 4 ...
1
vote
0answers
37 views

Limit the number of acf content when displaying in post loop [closed]

I display post images by this way in the loop . <?php $images = get_field('POST-IMAGES'); $size = 'medium'; // (thumbnail, medium, large, full or custom size) if( $images ): ?> <ul> ...
0
votes
0answers
69 views

AJAX Load More Posts not working in my custom WordPress theme. Help!

I have been working on my custom theme since last week. I am trying to code kind of an eCommerce solution. Well, I registered custom-post-type called 'product' and was coding archive-product.php. I ...
0
votes
0answers
12 views

How to make AJAX Load More Posts on Scroll for custom theme and custom-post-type?

I am currently working on a project where I am coding a custom theme with custom-post-type called products. Now, I am coding archive-product.php and stuck at making an AJAX load more posts on scroll ...
1
vote
0answers
23 views

How do I move/order posts with a tag to the end?

Let's talk about the situation first. I have a query for finalists, some of which has a tag 'Special Mention'. I need to move all posts with the tag to the end of loop. e.g. I have 13 posts, 3 of ...
1
vote
0answers
145 views

Pagination Broken on Static Pages but Works on Blog Articles

Our live site has a staging site. All plugins have been updated to the most recent version on the live site. The plugins have not been updated on the staging site. The website does not have a plugin ...
0
votes
1answer
19 views

Whole site's pagination not working after rewriting product permalink

I have to rewrite the product's permalink by changing it from the default /product/product-name into /%product-cat%/product-name. %product-cat% is a custom category. But after I rewrite it, the ...
1
vote
0answers
53 views

pagination with 'no_found_rows' => true,

I have 100000 records in my database and so many meta query performed on it so it takes lot of time to perform the operation, have checked few articles and using them it suggest disable no_rows_found ...
0
votes
1answer
21 views

Wordpress pagination URL

How to get a similar kind of pagination URL in Wordpress? In both the URL you can see 'Faculty' which you cannot achieve in default Wordpress I guess. Listing page: https://engineering.jhu.edu/...
0
votes
1answer
14 views

Pagination not working in custom post type. Help

I am currently working on an eCommerce project where I am coding a non-WooCommerce dependent theme for eCommerce. The current problem with me is, I am coding archive-product.php which is a custom post ...
1
vote
0answers
27 views

Change search results order for Admin -> Appearance -> Menus -> Pages -> View all

I have over 200+ pages (about 100 for each of my two languages). How I can change the order of results? I need the same as on the page with Page list. On the Page list e.g. you have a parent page and ...

1
2 3 4 5
35