Questions tagged [pagination]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 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/...
0 votes
0 answers
12 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 ...
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. ...
0 votes
1 answer
39 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....
0 votes
0 answers
79 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 ...
  • 135
0 votes
0 answers
20 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 ...
0 votes
0 answers
29 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 ...
0 votes
1 answer
28 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(); ?> &...
  • 3
1 vote
0 answers
28 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 ...
1 vote
1 answer
34 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 $...
  • 1,094
0 votes
0 answers
15 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. ...
0 votes
0 answers
16 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) . '%_%', ...
1 vote
0 answers
49 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 ...
  • 11
0 votes
0 answers
29 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 ...
0 votes
1 answer
41 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! ...
  • 321
0 votes
0 answers
33 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 ...
0 votes
0 answers
18 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 ...
-1 votes
1 answer
26 views

Show number of posts AND number on current page (cannot make it work) [closed]

I have looked over the following but still cannot make this work; Show number of posts AND number on current page Show number of posts and number on current page (revisited) This is what I currently ...
0 votes
0 answers
15 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', ...
  • 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 ...
  • 57
0 votes
1 answer
20 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 ...
  • 101
1 vote
0 answers
15 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 ...
0 votes
1 answer
40 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 ...
0 votes
0 answers
11 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 ...
0 votes
2 answers
39 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 ...
  • 53
0 votes
0 answers
14 views

WPNavi pagination links not working on custom pages

I've been googling this for awhile and can't seem to find a solution that fixes an issue I'm having: I'm using WPNavi on a custom post type in order to display a related content section (i.e. to ...
0 votes
0 answers
41 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( ...
0 votes
0 answers
227 views

How to Set Page Pagination Using Ajax JQuery - Wordpress

I have pagination using ajax JQuery. And the web I'm using is Wordpress. The pagination is working, but what I want is, when user click the pagination, the page is set up. I think giving example, will ...
  • 5
0 votes
0 answers
36 views

Wrong rewrite rules

I have rewrite rules like this 'forum/(.+?)/?$' => 'forum=$matches[1]', 'forum' => 'pagename=forum', website.com/forum -> correct website.com/forum/page/2 -> 404 because it detect ...
0 votes
0 answers
23 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 ...
  • 1
0 votes
0 answers
64 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, ...
0 votes
0 answers
11 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 ...
0 votes
0 answers
11 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 ...
  • 165
0 votes
0 answers
27 views

Stop pagination when static homepage is set

I have a pretty big website and have set a page as homepage in the wordpress settings. Now if I go to website.com/page/10, that shows the content of homepage but the URL in browser remains the same ...
  • 177
0 votes
0 answers
16 views

WordPress Pagination products with AJAX

guys, I'm trying filtering products by attributes from my custom widget plugin when I search something and it has only 3 products it still shows pagination from 1-17 pages, and also if the products ...
0 votes
0 answers
38 views

How do I remove pagination from just some Categories?

I have site I'm building that has a bunch of categories, but one category and its subcategories are special. They have an advanced custom field for a Google Map location. I have the map with ...
0 votes
0 answers
81 views

remove rel=next on category page (if <link rel="next" URL is showing 404) it need to remove link from header tag

We are using WordPress -version 5.7.2 Theme: Newspaper -version: 11 For SEO: Yoast SEO -Version 16.7 Problem description: to display the category list we have pagination. if I reach the last page from ...
0 votes
1 answer
39 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?
0 votes
1 answer
67 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', ...
0 votes
1 answer
20 views

Pagination don’t list all entries on Index.php

Pagination works perfect on pages but not on the Index.php Problem: It doesn’t list all entries and the Count for Entries beyond settings >> reading interferes. Depending from what I setting the ...
0 votes
1 answer
23 views

Problem with custom loop navigation inside the blog page

I have a problem I am not able to solve. I have a custom theme with some custom post types and I need to display an archive for all CPT somewhere in my site. After some reading, I decided that the ...
0 votes
0 answers
15 views

WP_Query, Paginate by Custom Field

I'll keep this short. I'm new to PHP and having a difficult time understanding the best pagination practices for WP_Query. (I have gotten pagination working, but only by posts_per_page.) Naturally I'd ...
  • 1
0 votes
0 answers
52 views

Pagination don't work with active filters

I'm make a custom theme para Wordpress and all works fine except the pagination when the filters are active. The console return 400 error and the navigation show /wp-admin/admin-ajax.php?paged=2 The ...
0 votes
1 answer
72 views

Add pagination to custom single post template

I have a custom post type ('stories') that uses a custom template (single-stories.php). I'd like to add pagination to each single-stories template that will link to previous and next posts. I'm ...
  • 105
0 votes
0 answers
18 views

Page navi for template page

I have a template page "template-db-course-other.php" that displays a CTP listing. I used the Page Navi plugin which displays the pagination at the bottom of the page. Only when I click on ...
0 votes
1 answer
23 views

pagination for custom post type archive page

I have a custom post type (gallery). On the archive page, I'm limiting the display to 12 items, with pagination links below. This works as it should, but I'm getting error notices: Notice: Undefined ...
  • 3
0 votes
1 answer
39 views

WordPress default gallery pagination when in page (is_page)?

It seems I have found the way to make WordPress default gallery pagination to work and to have control over URL forming: Pagination with WordPress default gallery? But when gallery call is in post. ...
  • 11
0 votes
0 answers
11 views

How to Edit Ecommerce filters URL, h1, h2 , Title

I'm working in a Real Estate Website with filters for location, price. I'm trying to edit URL permalinks, H1, H2 to make more SEO Friendly. For example I would like to change https://www....
0 votes
0 answers
197 views

change wordpress pagination url after doing the request

I'm working with Wordpress pagination, I want to modify the returned URL when I click on a pagination link (number 2 for example in the pagination), at the moment I get: https://magicpallet.com/blog-2/...
  • 3
0 votes
1 answer
175 views

Pagination in single.php

I have a problem with the pagination on a single.php page. The idea is to have a list of my created posts (the excert, the title and a link to the post) on the post page (single.php) that shares the ...
  • 3

1
2 3 4 5
37