Questions tagged [pagination]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 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
23 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
5 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 ...
  • 135
0 votes
0 answers
22 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
15 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
19 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
20 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
29 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
19 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
14 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
20 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
13 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
24 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
34 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
11 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
20 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
33 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
9 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
59 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
72 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
0 votes
1 answer
22 views

How do you choose to display specific posts/pages by parent url

I have adjacent posts set up correctly but it's displaying all of the posts/pages. I need it to show specific ones. The easiest way would be by parent URL if that's possible as I need to do this ...
1 vote
2 answers
135 views

Add additional first page, last page links to the_posts_pagination()

Is there a way to add additional first and last page links to the pagination object if it is rendere with the the_posts_pagination() method? At this point I have the following the_posts_pagination( ...
  • 824
1 vote
0 answers
25 views

Pagination stopped working after assigning custom page template to new page (different slug)

I am having a problem with pagination on one of my CPT after assigning the custom page template to a different page with a different slug. It all worked perfectly on the test page I developed it with. ...
0 votes
1 answer
22 views

Reciving Error 404 blog/page/2/

I can't seem to understand the issue here with my pagination? when visiting /blog/page/2 page goes to 404 page. Help me guys? <div class="row"> <?php ...
0 votes
0 answers
31 views

Pagination at category doesnt work with same name of page

i have a problem with my pagination but only at category page. I'am not developer, and i try fix it from few days. My pagination working if i make different name of pages for main BLOG, and category ...
0 votes
0 answers
21 views

excluding posts by an ACF field in pagination

So I have this $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'post', 'posts_per_page' => 12, 'category' => 1165, 'meta_query' =&...
  • 1
0 votes
0 answers
52 views

How to work Woocommerce pagination inside shortcode?

I have a shortcode that shows the orders history placed by user. It works, however I have pagination with WP_Query which is not working. When I click on any page number the same page is reloaded, the ...
  • 101
0 votes
1 answer
31 views

using is_paged for hiding image on posts

In my posts I'm using <!--nextpage--> in order to paginate specific blog posts, which works fine. But my issue is that the featured image shows in the post header for each page. I've tried using ...
  • 113
0 votes
1 answer
22 views

Only show featured image on first page of paginated posts

I'm experimenting with paginated posts on my site using the SmartMag theme, and I've customized my post content template quite a bit. However, I still have one issue I'd like to fix: On paginated ...
  • 113
0 votes
0 answers
12 views

How to Show Next-Previous Link Only

I can not figure out how to keep Next and Previous links only and remove page number links. I also tried using this: previous_post_link(); next_post_link(); But it's not working. While using the ...
0 votes
1 answer
47 views

get_query_var('paged') return 0 in custom category page

I want to make a pagination for my category page (category is related to custom post type) But I can't get current page because it returns 0. $term = get_queried_object(); $paged = (get_query_var('...
0 votes
0 answers
51 views

custom taxonomy pagination 404 error

I know this question has been asked a lot, and I have been searching for solutions and trying what I found but I am still having issues. When I click on page 2 I get the 404 error For example, I have ...
0 votes
1 answer
48 views

Custom archive page for custom taxonomy and pagination issue

so this is something I am trying to figure out for quite some time about my custom archive page for a custom taxonomy 'workplace'. There is many workplaces, and what i want is to display the products (...
  • 16
0 votes
0 answers
46 views

Why is my pagination /page/2 taking me to index.php?

Why does my pagination take me to sites front page instead of page 2. The url seems to be correct mydomain.com/category/categroyname/page/2 but it doesnt display posts for 2 page. I tried to reset my ...
  • 101
0 votes
0 answers
124 views

Function the_posts_pagination() not compatible with WP_Query arguments

I trying to make a list with posts from specific category. It's supposed to work as the loop in category.php file. Unfortunately i have problem with pagination links which are completely not ...
  • 145
0 votes
0 answers
19 views

How do I hide a Gutenberg block when paginating

I've created a homepage, using Gutenberg blocks which paginates my posts beautifully. I have a text block for SEO purposes that I only want to show on the first page (the homepage) and want to hide on ...
  • 101
0 votes
0 answers
232 views

Rest API Paginate until all posts are imported

So I wanted to see if someone might be able to help me with this, so below I will explain what I've done: I am using wp_remote_get to grab the posts from another website with the arguments page and ...
  • 21
1 vote
1 answer
131 views

How to add numeric slug for child page in WordPress 5.9?

I am trying to configure WordPress 5.9 to allow numeric slugs for child pages. Drawing from the 2015 answer to a similar question I took the up-to-date code of wp_unique_post_slug, removed || ...
0 votes
1 answer
71 views

get_query_var('paged') for WP_Comment_Query always return 1 when using paginate_comments_links()

I'm having a problem getting 'paged' query_var for my comments section in CPT post. I'm using this code to query comments: // Comments per page $comments_per_page = get_option('comments_per_page'); //...
0 votes
0 answers
50 views

Sticky posts limit query and pagination for a custom post type

I would like to display 9 posts per page. But, when I have a sticky post, I would like it to be integrated in the 9 posts in the query. And, then, for the second page, I continue to have the next 9 ...
  • 1
0 votes
0 answers
64 views

Wordpress paginate_links function: How do i ensure the page number is not less than 1 and not greater than last

I have a $wpdb query that selects all rows from MySQL table written in a custom php file. The query returns 2122 results. I have set the the code to output 20 rows per page which means i have a total ...
0 votes
0 answers
64 views

Pagination in custom post type archive.php not working

// Get Limited Posts per page $args = array( 'post_type' => 'portfolio', 'posts_per_page' => 3, ); $posts = new WP_Query($args); function.php // Create Pagination function ...
0 votes
1 answer
51 views

Pagination on template page for custom query redirecting to index.php

I'm building my first theme and have a template page "page-blog" with a custom wp_query. I've tried adding pagination to the query but so far the pagination redirects to the index page. As ...
0 votes
1 answer
59 views

Blog Posts - Scroll to view more

I have a page with all my blog posts in it and I have it set to show all my posts on one page. (See screenshot) Now am I looking for away to only show 10 posts at a time and on scroll show more. I see ...
0 votes
1 answer
80 views

Wordpress Pagination - 301 Redirect Issue

I have this wordpress problem with pagination and redirects. Let's take this scenario - I have a blog on my website and it has a lot of articles, therefore the blog expands to /page-35/. Let's say ...
1 vote
0 answers
25 views

Unreadable pagination

I act according to the Output of posts There is a file blog.php <?php /* Template Name: Myblogpage */ ?> <?php get_header('third'); ?> <!-- Content ==========================...
0 votes
1 answer
42 views

Getting blog pagination to work on page set as front page

From what I understand, if the page is the front page (using front-page.php) you would use get_query_var('page') and for other pages you would use get_query_var('paged'). I have a condition for this ...
  • 105
0 votes
1 answer
136 views

porto theme pagination on woocommerce not working

here i use code shortcode of woo commerce and whenever i reload page pagination showed up then hide i used this code [products limit="12" columns="5" paginate="true" ...
0 votes
1 answer
72 views

Custom ordering of CPT items not matching with the ordering of its pagination

I have a CPT and I am changing its ordering by a numeric value of a custom field. My custom field name is "ordering". The ordering of my CPT is changed like this: $posts = get_posts(array( ...
  • 119

1
2 3 4 5
36