Questions tagged [pagination]

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

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

WP Category Archive /page/2+ pagination issue 404

Encountered an issue when navigating to archive pages within a category after page 1 of the results via pagination. This is the standard WP categories and not a custom query. Working: /category/...
ejay's user avatar
  • 1
0 votes
1 answer
16 views

Pagination with WP_query giving same items in each page

I have around 250+ blog posts and currently in my custom theme I've implemented the functionality of showing the blogs with pagination option. But in all pages it is showing the same posts. <?php $...
buzz's user avatar
  • 101
1 vote
0 answers
99 views

Wordpress Custom Post Type Archive, filter by category and get pagination working

I have created 9 different Custom Post Types via ACF and an assortment of custom field blocks for 8 of them. Those 8 are used to create different content, based on requirements for each post type. The ...
Mitch S's user avatar
  • 27
0 votes
0 answers
18 views

Bulk 301 redirect for Taxonomies with pagination

I'm looking for the best way to bulk redirect for modified taxonomy URLs. After category slug has been changed, I need to perform a redirect for all paginated pages: /category-old/ redirects to /...
Alexius The Coder's user avatar
0 votes
0 answers
18 views

Create an archive page by combining two post type

I wanna create an archive page for both normal posts and a custom post type(gallery). I created an index.php file and put my code in there but its pagination ain't work correctly. all pages look the ...
Poorya Ghorbani's user avatar
0 votes
0 answers
29 views

Add pagination to a page with sections

I have on my website, on a specific page (library), several vertically arranged sections. The problem is that there are too many (they look like posts, but they aren't). (I create and edit these ...
EDG_DGK's user avatar
0 votes
0 answers
17 views

Pagination works only on index.php and not archive pages

I have a pagination function which i intend using for all pagination on my wordpress blog, but the function doesn't work on archive.php, category-music.php and other archive pages, while it works ...
Sarah Douglas's user avatar
0 votes
0 answers
86 views

Why WordPress custom php code for pagination cannot go to next page

Link before I click search: https://nama-sistem.com/carian/ Link after I click search (by name, month, year, theme): https://nama-sistem.com/carian/?nama=abx&month=july&years=2022&theme=...
beginner's user avatar
0 votes
0 answers
19 views

Wordpress custom post type listing not showing the correct number of items & pagination

I'm using Custom Post Type UI plugin by WebDevStudios to create custom post type. However, in the admin view custom post type listing, its not showing the correct number of items & also not ...
AdamR's user avatar
  • 1
0 votes
0 answers
30 views

How to always show Prev/Next links, inside pagination pattern?

WordPress full site editing. How to always display the “prev page” & “next page”, in the pagination? Currently, the prev-page/next-page, hides when there's no prev/next posts in the query loop. Is ...
neoswf's user avatar
  • 125
0 votes
0 answers
155 views

Load more posts button and pagination at the same time

I need to have a button - load more posts - and pagination at the same time - first the button and pagination below it. I think the better way to do it is via admin-ajax.php. I can do one or the other ...
Brgerg30879's user avatar
0 votes
1 answer
15 views

How to display paginated posts from all categories?

I found this code that helps to paginate the posts of one specific category, how can I change it to have a posts paginate function for all categories? (WordPress) global $wp_query; $result = new ...
Andrea Sacconi's user avatar
0 votes
0 answers
38 views

Pagination count and Pagination link not working in my buddypress template

I am trying to create a letter archive for the users on their buddypress profile page. The letters are displayed in the profile page tab, but the pagination is not working. $contest_args = array( '...
Rohit kc's user avatar
0 votes
1 answer
115 views

My pagination creates a redirect

Can you help me this time to fix this problem my code is: public function numeric_pagination() { global $wp_query , $wp_rewrite;; if ( $wp_query->max_num_pages < 2 ) { ...
Ali Kiani's user avatar
0 votes
0 answers
160 views

How to display pagination for WooCommerce products

I have written this code to display WooCommerce products <div class="products-container container mb-4"> <div class="products-filter-section mt-3"> <?php ...
younes's user avatar
  • 1
0 votes
0 answers
59 views

Pagination with Query String instead of Path

Is it possible to use ?page=2 instead of /page/2 for pagination? When I try and navigate to a url containing ?page=2 the query string is removed from the url before the page loads and although I ...
Cam Parry's user avatar
0 votes
0 answers
18 views

Zeroise custom pagination to have leading 0

I'm trying to have leading 0's in front of my custom pagination and I've seen that I need to use the zeroise function to achieve this. I've tried a few different ways to implement but it just doesn't ...
probablybest's user avatar
0 votes
1 answer
24 views

Search pagination rewrite to fix 404

I'm wondering if anyone can help me out here? Basically, I think I need to use add_rewrite_rule() to get pagination working in my search results, as I've gone beyond the default query due to a bunch ...
Jase Warner's user avatar
0 votes
1 answer
31 views

wordpress category rewrite rule with pagination

with the help of someone here I was able to filter two or more categories via this rewrite rule '^combine/([^/]*)/?([^/]*)/([^/]*)/?','index.php?category_name=$matches[1]+$matches[2]+$matches[3]', '...
inrob's user avatar
  • 103
0 votes
0 answers
19 views

Change "/" (slash) before page number in pagination path to "-" (hyphen)

Is it possible to change the "/" (slash) before the page number in the pagination link to "-" (hyphen)? Example: "mysite.com/category-name/page/2/" to "mysite.com/...
Lynk Neo's user avatar
0 votes
0 answers
20 views

Custom post type pagination conflict result in 404

we have post type reviews with the slug customers and archive page as customers/customer-stories we have created page customers and want to show on this page posts from different post type. it does ...
Naberd Zendi's user avatar
0 votes
0 answers
6 views

How to make infinite scroll by dividing the content?

We created an online store and we want to avoid the user the problem of having to turn the page. I understand that this is not the best way to ask a question, but we don't really have a clear example. ...
unity-student's user avatar
0 votes
0 answers
443 views

Change Pagination Default to "/2/" Query String "?page=2"

Help me Friends, How to change url on all pagination wordpress in home, taxonomy and post nextpage from /2/ to ?page=2 In home or frontpage : https://www.domain.com/?page=2 In Taxonomy : https://www....
Cilacap Info TV's user avatar
0 votes
0 answers
180 views

Pagination only showed when no category is set in wp_query

tldr: On my production site only, when I set category_name to any category my pagination does not show up. Once I remove category_name from my wp_query the pagination shows up (for all posts on my ...
james's user avatar
  • 135
0 votes
0 answers
24 views

WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?

I think WordPress is adding pagination for all pages like www.example.com/page/1234. In my case, it is adding for all pages not only for the blog page. How to remove the pagination for pages in ...
Murali Krishna P's user avatar
0 votes
0 answers
47 views

taxonomy-{term}.php terms pagination returning 404 after a certain page

So my taxonomy-movies.php terms pagination returns 404 after a certain page, I've been sitting on this for like 3 days and still can't get answers from related question... So to give you guys some ...
agent abstract's user avatar
0 votes
1 answer
76 views

Why do I get a 404 error on my custom post type archive pagination?

When I try to set up pagination on my custom post type archive page I get a 404 if I click on the next page. The first page works fine. Any idea what I'm doing wrong? <?php get_header(); ?> &...
Lisa's user avatar
  • 3
1 vote
0 answers
32 views

Two pagination in one page without being synchronous

How can I have two pagination without them being synchronous? so let's say I have <div class="block-a"> and <div class="block-b">, when I try to proceed to Block A's ...
darth-dev-vader's user avatar
1 vote
1 answer
103 views

Limit paginated result set to a maximum number of posts

I would like to create a paginated result using a maximum number of posts. I have been trying to achieve this using \WP_Query class e.g: function getQuery(int $page, int $posts_per_page = 2, int $...
Cyclonecode's user avatar
  • 1,144
0 votes
1 answer
43 views

Search results stuck on page 1

The problem statement For some reason when the user does a search the results page (search.php) only show the first page results. The pagination (next and previous links) also believes its on page 1. ...
Michael Gearon's user avatar
0 votes
0 answers
69 views

How to change `page` slug in pagination? on a specific pagination result (not globally)

I want to change my pagination page slug to pages for this specific pagination, not globally, here's my pagination code $pagination = paginate_links(array( 'base' => get_pagenum_link(1) . '%_%', ...
agent abstract's user avatar
1 vote
0 answers
75 views

How to build custom pagination with center pages

How to build custom pagination in WordPress, which display center pages. For example if there is 100 pagination pages, pagination should look like this - for active page 1: 1 2 3 49 50 51 98 99 ...
dmj5's user avatar
  • 11
0 votes
0 answers
146 views

Two pagination in one page without AJAX

So in this scenario, I'm trying to have a two pagination in one page, I have succedded doing that, in this specific page, I'm trying to display my custom post type and post at the same time in ...
agent abstract's user avatar
0 votes
1 answer
59 views

Why does WordPress keep directing or forcing my pagination?

Why does WordPress keep directing or forcing my pagination? I want my news pagination to work like this: /news/?paged=2 But WordPress keeps forcing it to: /news/page/2/ And then I get a 404 page! ...
Run's user avatar
  • 321
0 votes
0 answers
61 views

/page/2/ redirect to 404

I make a filter form in the category page and get parameters with get_query_var, my problem is in the Pagination when the user filters a parameter and wants to go to page 2, it redirects it to 404 ...
Heisenberg's user avatar
0 votes
0 answers
33 views

Access to a data from a response AJAX called in a template file php

I use an ajax called to get all posts of a custom post type and other criteria. I would like to get the response of my ajax called and use it in a template php file. So my question is : how can I pass ...
davidb45's user avatar
0 votes
0 answers
18 views

CPT Archive Pagination - Page not found

I have the following code to register my CPT, related taxonomy and rewrite rules. $store_name = 'store' add_action('init', function () use ($store_name) { register_post_type( 'my_sample_cpt', ...
Anand's user avatar
  • 1
-1 votes
1 answer
20 views

Insert image between X number of posts but on specific paginated pages?

I'm inserting an image in-between every 5th post using the code below but obviously it shows up on every paginated page. Is there a "pagination" function available to show the image every ...
Nate M.'s user avatar
  • 57
0 votes
1 answer
24 views

Insert multiple custom components after x-number of posts

While there are many posted solutions on how to insert custom components between posts, I haven't been able to find one that addresses pagination. Currently, on my Wordpress archive template, each ...
scottrod's user avatar
  • 101
1 vote
0 answers
24 views

WordPress is adding pagination for all pages not only for blog page, How to remove pagination for all pages except blog/posts page?

You know WordPress is adding pagination for all pages not only for posts page/blog page. For example www.mysite.com, I'm getting URLs like www.mysite.com/page/15, etc. Here, www.mysite.com has a ...
Murali Krishna P's user avatar
0 votes
1 answer
52 views

Pagination not working only on Archive-Name.php using new WP_Query

I created an archive-sticky.php where I added the code below to show all sticky posts in one single page with pagination as there will be 100s of sticky posts in the coming days. Now, this code ...
Elaine Byene's user avatar
0 votes
0 answers
20 views

Separate page for pagination possible?

This is how my index.php looks like for my custom theme (I'm not sure if Line 4-5 is necessary). When I put pagination in the home or post, I would like to be able to take the user to a separate ...
Elaine Byene's user avatar
0 votes
2 answers
43 views

Blog Posts not sorted and pagination not adjusted after filtering some category

Hello im really stuck and messing around now so i thought i give a try and ask the community. Im working on a Blog Post page where im showing some posts. The user have the selection to search for ...
Jaba's user avatar
  • 53
0 votes
0 answers
88 views

add_rewrite_rule pagination 404 error on page 4 and above

I am working on a site using Wordpress 6.0.2. Astra is the theme and I am using Elementor Pro. I have lots of custom post types and taxomonies. I am using add_rewrite_rule like this: add_rewrite_rule( ...
Steve Hoare's user avatar
0 votes
0 answers
32 views

Pagination not working on custom post type archive

The pagination is not working. In settings > reading I have set '3' posts for blog pages show at most. On my custom post type archive page, I have 9 posts showing and I have this code. Not sure ...
Carina's user avatar
  • 1
0 votes
0 answers
102 views

the_post_navigation in single page with multiple taxonomies

I am creating a custom content that can belong to several categories: status, age and specie. For now there are only the following terms for these taxonomies: species: dogs, cats age: adult, young, ...
josepfs's user avatar
0 votes
0 answers
25 views

Sub menu for a (single) page

I am looking for a way that let's me subdivide a page with a pagination-like menu. However, I want to name the menu-items (no numbers...) and don't want the entire page to refresh when clicking on a ...
Simon Fromme's user avatar
0 votes
0 answers
84 views

Pagination links not working for custom taxonomy

I have a Custom Post Type (project) and a Custom Taxonomy (project_category). I have created a Page (Projects), which uses a custom template, in which I run a WP_Query to fetch projects and display ...
superfive33's user avatar
0 votes
1 answer
58 views

How to automatically load more data when users reaches at the bottom of the page of the wordpress site?

When users scrolls and reaches at the bottom of the page I want to automatically load more data related to it. How to do it in wordpress?
Shahariar Ashik's user avatar
0 votes
1 answer
220 views

Previous / Next Links For Custom Post Type Sorted By Meta_Value

I created a template page for a custom post type called auctions-upcoming.php... <?php /** * Template Name: Upcoming Auctions */ get_header(); $args = array( 'post_type' => 'auction', ...
Kevin Burnett's user avatar

1
2 3 4 5
37