Questions tagged [pagination]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
5 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
10 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
28 views

Pagination not working in wordPress plugin but working in direct php [closed]

I am building a plugin to fetch and show a lot of data from an external mssql DB, but the pagination part is not working because WordPress won't let me set or update SESSION data using I have ...
0
votes
0answers
14 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
15 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
12 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
18 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
15 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
123 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
18 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 ...
0
votes
1answer
58 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
41 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
14 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
17 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
32 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
20 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
16 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
18 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
10 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
21 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
23 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
20 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
38 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
25 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
29 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
18 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
144 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
17 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
31 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
20 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
13 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
25 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 ...
0
votes
1answer
27 views

Add pagination to WP_Query

I have tried to add pagination in the below code but dont know how to integrate with it. Kindly help to get the paginations on the posts. <?php $child_query = new WP_Query(...
1
vote
1answer
15 views

404 on paginated blog pages

We are running WP 5.6 and Beaver Builder 2.4.1.3(Pro). It is a multisite installation and we are having issues on the main site. Our home page for the blog loads just fine: https://www.awana.org/blog ...
0
votes
0answers
27 views

Post pagination in WordPress redirects to first page

I have a website with posts having a lot of images. I made a sort of pagination. Example: http://example.com/article-name/ gives you the first image http://example.com/article-name/2/ gives you a ...
1
vote
1answer
24 views

next_posts_link URL does not include name of custom post type

Inside my index.php, I have a new WP_Query() for a custom post type that I have named "todo". I am trying to implement pagination for this query, so it only displays three posts, then ...
1
vote
0answers
25 views

I want to remove numbers from the_posts_pagination function

I am not good in editing theme codes especially with wordpress but I tried to on my own to edit the pagination in my theme archive.php which include numbers (1,2...10) and next/prev links. <?php ...
0
votes
0answers
14 views

Custom Posts are not displaying correctly

I created three custom post types which are our-work, resource and news-and-events. In Our Work, I can click page two from the pagination section to view more custom posts. But in resource the page ...
1
vote
0answers
14 views

Changed pagination URLS to use p= instead of paged=

I am trying to rewrite my pagination URLs to use p instead of paged so they go from... example.com/myposts?paged=2 to example.com/myposts?p=2 How is the best way to do this? Do I need to use the ...
1
vote
1answer
29 views

Why is page/2/ not working?

This is my search page code can anyone help me figure out what is the problem I m having no content in my page 2 ...
0
votes
0answers
13 views

wp_query Pagination is not displaying

I have a basic wp_query that I am trying to apply pagination to like this... $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'post_type' => '...
1
vote
1answer
69 views

Set noindex page-comment from Pages 2, 3 and More?

I use All in one seo pack plugin. I see that Google indexed page comments (that are a pages generated from paginated comments). The example url are the followings: URL canonical - mydomain.com/url-...
0
votes
0answers
19 views

Why can i add /page/674874 (or any number) to a URL and it still pulls up that page?

I have noticed that on any WordPress site you can add /page/7863/ (or any number) to any page url and it still shows that page and not a 404. Why is that? (Asking because my SEO company sends reports ...
1
vote
0answers
31 views

How can I use var php with javascript to build custom page? [closed]

is variable increment in $post_per_page = 10 if click on button next I can increase $Post_per_page = by_call <button type="button" value="increment++" >Increment </button&...
0
votes
1answer
11 views

GoBlog Free Pagination Issue

First time poster, my name is Johnny. :) I've built an archive page for my website that I'm very proud of (using Elementor), but I don't want the homepage of this theme to paginate. I want the ...
0
votes
0answers
20 views

How to get pagination to work despite naming conflict?

I have been stomped for the past two days trying to understand wordpress' permalink structure. Right now, I have a a custom post type called venue and I have a custom taxonomy venue-type (e.x. hotels, ...
0
votes
0answers
34 views

Changing posts per page on home page breaks pagination on home only

I'm pretty much a beginner here and have a bug in my website. I have a grid layout of 4 x 4 with a static post as my first one on the home page. It displays on the homepage only using <?php if(...

1
2 3 4 5
35