Questions tagged [pagination]

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

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

Remove WP Core canonical for category pagination

It seems that WP is adding a canonical to the root of my pagination, and no indexing all other pages on Category pages. For example, /locations/residential/?_page=2 is no-index, and gives /locations/...
0
votes
0answers
25 views

Custom pagination permalink structure Product page

I'm using WooCommerce. And WC has an ugly link structure /product/category-name/product-name. I removed /product/ from the url. But now I'm facing an issue. On the product page reviews are shown, when ...
0
votes
0answers
19 views

How to get post from all custom post_type multisite to the main site with pagination ordered by date?

Currently this is my WordPress Multisite: Main site -Sub Site -Sub Site -Sub Site -Sub Site and this is the example code for getting all post from multisite : foreach( $blog_ids as $id ) { ...
1
vote
1answer
28 views

Pagination not working in custom page, only working in post page

global $wp_query; $result = $wp_query; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $original_query = $wp_query; $wp_query = null; $args=array( 'post_type'=> 'post', '...
0
votes
1answer
182 views

get understrap pagination to work with custom query

I am using the excellent understrap Wordpress boiler plate theme. It has a pagination function that works if you put inside a standard loop like so: <?php if ( have_posts() ) : ?> <?php ...
0
votes
0answers
21 views

Remove pagination pages of Wordpress Blog from Google Search Index

I have tried adding rel="prev" and rel="next" to the pagination. But the pagination pages pages still appear on Google Search Index. I want to remove them but Yoast SEO doesn't have the functionality ...
2
votes
0answers
33 views

How to output different posts per page?

I want to display one blog article less than on the following pages. The following code works but the the paginaton on the first page displays 1, 2, 3, 4 and on the next pages i get the correct ...
0
votes
1answer
110 views

Pagination Not Working on `WP_Query` Archive Page

I have an archive page that pulls two different custom post types into an archive using WP_Query(). Because there is a home page to the site which shows 9 of the custom post type posts, I offset the ...
1
vote
0answers
28 views

Get the number of posts shown in the current page

I am currently trying to implement a load more function described in this stackoverflow post, and in order to do so it is necessary to know how many post have been loaded already. Thus, I am trying to ...
0
votes
1answer
38 views

how can I do numeric pagination?

How can I do numeric pagination? <?php $args4 = array('post_type' => 'post', 'showposts' => 99, 'cat' => 23); $loop4 = new WP_Query($args4); while ($loop4->...
0
votes
0answers
15 views

Numeric Pagination on custom post page [duplicate]

I have a custom post page like this: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array("post_type" => "post", "post_type" => "viaggi", "orderby" => "...
0
votes
0answers
9 views

Updated WordPress and Pagination on page stopped working properly

The PageNavi plug-in is only showing squares. The links in the squares work and bring me to next page. But why can’t I see numbers? I’ve tried multiple different plugins and none work.
-1
votes
1answer
30 views

Pagination in category.php not functioning

Original Url: https://www.something.com/category/ftm-atf/ When I add pagination in, the following url is generated which results in a 404: Paginated Url: https://www.something.com/category/ftm-atf/...
0
votes
1answer
56 views

Remove custom taxonamy slug with pagination

I have added the custom taxonamy for my faq site. I want to remove the default custom taxonamy showing in url for archive page. I have tried some codes, but it's break my pagination. function ...
0
votes
0answers
193 views

Pagination is not working properly in Product Category/Tag pages

I have a store with several products. Pagination works fine on the main shop page. But when I open a separate product category or product tag pages, in some of them pagination not working as expected....
0
votes
1answer
74 views

ajax load more instead of pagination

<?php if ( ! defined( 'ABSPATH' ) ) { exit; } global $wp_rewrite; $wp_query->query_vars['paged'] > 1 ? $current = $wp_query->query_vars['paged'] : $current = 1; $pagination = array( ...
0
votes
1answer
36 views

pagination problem listing custom post types of taxonomy in wordpress

I am trying to list a set of products which match a taxonomy terms. The list of the products is fine, but I can't figure out the pagination of my custom posts. I have been looking for information in ...
0
votes
0answers
67 views

paginate_links redirects to wrong url structure

I'm paginating a custom post type on a custom page. The content of the page is determined by a custom query, like this: mysite.com/my-account/?sect=orders When I change sect= to something else the ...
0
votes
0answers
19 views

Wordpress Pagination for Custom Post Type returns Same Post on every Page

The Pagination for my custom post type returns the same posts on every page. Like when hovered over the pagination like the link shows domain.com/android/page/2 but when clicked it returns to domain....
0
votes
1answer
125 views

How to hide empty pagination button when no previous page

I've styled my pagination buttons to have a green background. When there is no previous page (or next page) the pagination link disappears for good reason but it leaves a green empty button with no ...
0
votes
0answers
19 views

Get next and previous posts links

I have a custom taxonomy, custom post add_action( 'init', 'cptui_register_my_cpts' ); function cptui_register_my_cpts() { $labels = array( "name" => __( 'Events', '' ), "singular_name" =&...
0
votes
1answer
63 views

the_posts_pagination() function returns missing page numbering on some blog pages

I have a very strange issue that I am struggling to debug without amending the core function. On page 1 of the blog archive it shows page numbers: 1, 2, 4 (page 3 is missing). On page 2 and 3 the ...
1
vote
1answer
14 views

How to paginate information obtained from a query to a custom table?

I am building a small application which consults a registration group of a bd in wordpress, the code is as follows. function opt_menu_cactaceas() { global $wpdb; $tabla_aspirantes = $wpdb->...
0
votes
0answers
15 views

How to add category pagination under single post?

I don't want to split the post, my purpose to add the category pagination under each post is simply click on 1,2,3,4,5.... pagination and go to the exact page of the same category. Let me explain ...
0
votes
0answers
30 views

How to run WooCommerce pagination from within functions.php

I am building a very elaborate pagination script, the only piece I am missing is having the ability to run the in-built pagination from within the functions.php file. While within the functions.php ...
0
votes
0answers
15 views

Pagination Not Working With Custom Post Type Category

I can't get pagination to work with this custom post type category archive. The custom post type is called 'blog'. <h2 class="category-h2">Blogs Category: <?php single_cat_title(); ?></...
0
votes
0answers
13 views

How to redirect /blog/page/2 to blog/page2 in wordpress blog page

In the blog page i want to redirect the url /blog/page/2 to blog/page=2 or blog/page2 in wordpress.
0
votes
0answers
19 views

Custom post types on page with filter and pagination

How to apply pagination to the filtered results when filter adds the string '?filtr=1' after the domain name ? The filter works the following way... On my website (http://arche.cypis.net.pl/) after ...
0
votes
0answers
29 views

Why next_posts(); function does not work inside header.php?

Why does next_posts(); function does not work inside header.php whereas it ^does work^ inside temlate-homepage.php ? My code below: <?php // Query ALL posts ordered by random $args = array( '...
0
votes
0answers
27 views

Pagination unique to a widget

I am having troubles with pagination. It's widget. Every widget does have unique id . Say i have two widgets with pagination. If I cick page 2 of widget 2 then it will work but it will change the ...
0
votes
1answer
30 views

category/category_name pagination 404 error

<div class="row"> <?php $currCat = get_category(get_query_var('cat')); $cat_name = $currCat->name; $cat_id = get_cat_ID( $cat_name ); $paged = (get_query_var('paged')) ...
0
votes
1answer
53 views

Problem with pagination link (error 404)

I have a problem with wordpress patination. The limit of posts (custom type post "properties") per page is 9. When I pusblish 11 properties the pagination links works properly. 9 properties in the ...
0
votes
0answers
39 views

Wordpress/Yoast: How to solve the problem with pagination page?

before I switched to YOAST, I was using All in One SEO but I got some huge problems with it. There were incompatiblliys which made it impossible to further use this plugin. Anyways, I’m facing a ...
0
votes
0answers
10 views

404 error page after hiding product-category slug

after i used this code: add_filter('request', function( $vars ) { global $wpdb; if(isset($vars['error'])){ $lastVar = basename($_SERVER['REQUEST_URI']); $vars['attachment'] = $...
0
votes
1answer
71 views

Trying to get pagination working on WP_Query() post grid

So I've been developing my own theme as a learning experience, and I'm at a loss regarding how to get pagination working. I've tried several things before getting to this point and asking, I just seem ...
0
votes
0answers
32 views

Pagination Stops

I noticed pagination stops working after page 10 of blog posts. When on page 10, and clicking the right arrow/next button button you are taken back to page 2 instead of page 11. I have read several ...
0
votes
3answers
38 views

WP Query for all posts

I have page-property.php in the loop folder with this code. And I see only 8 posts (Custom Post type), but I want to see all of them with pagination, what's wrong? <?php $view = 'archive'; ...
0
votes
1answer
17 views

where is wordpress search pagination

Where is wordpress search pagination? I used this in my search page: <?php echo paginate_links(); ?> It returns pagination, but I want to add bootstrap pagination to this, but I can't find it....
0
votes
0answers
142 views

Pagination 301 redirecting page 1

I am using the paginate_links function in a custom theme to generate the pagination links which is working fine however the page 1 link which is /blog/page/1 gets a 301 redirect to /blog/. This is ...
0
votes
0answers
25 views

Split post template in two pages

I need to split my single post template in two pages using pagination . It's very simple in post editor by <!--nextpage--> But i want to do it in single.php file So the page content in first ...
0
votes
1answer
45 views

WordPress Pagination with ajax - Dots

I am using paginate_links() along with pagination. It works whenever a number is clicked but if I click 3 dots stays there so no 4 pages can't be selected. Is there any workaround?
1
vote
1answer
35 views

how to handle multiple ajax wordpress queries?

I am having a problem with two ajax action. I have a post grid it has a frontend sorting "ASC" and "DESC". So if I click on "DESC" it changes the WordPress query arg "order by" to "DESC". It works. ...
0
votes
0answers
49 views

Pagination indication “/page/2/” are removed from url and auto redirect without /page/2/ : 301 redirection

I tried to do pagination in my custom template page. So I did a custom query, and put for having pagination. The problem is when i tried to enter to http://mywebsite.com/slug-custom-page/page/2/ ...
0
votes
0answers
17 views

WordPress custom post type pagination 404 Error

I am trying to paginate in WordPress custom post type. Pagination seems ok in the front end but getting 404 error when clicking on Page: 2, 3, 4 My code in function.php page: function ...
0
votes
0answers
18 views

Pagination inside wp-ajax not working and return 404

I have an issue when using wp ajax. my WP Query for Custom Post type not working with paginate links I have change base URL but /page/2 return 404 I use Custom post type and custom taxonomy for my ...
1
vote
1answer
45 views

Wordpress pagination not working using WP_Query

Ok I know there are a lot posts on this already but I'm not able to find what is wrong with my code. Because pagination is still not working. The weird thing is the same code and template works fine ...
0
votes
0answers
16 views

add next and prev post arrows

I want to create a simple one page storytelling wordpress website. I've created a category to hold all the posts that will be the main content for the stories and I want to display them on the ...
1
vote
0answers
23 views

How to show all pages in blog navigation?

I'm trying to show all pages (ex. 6) in pagination navigation in my blog. I've got following code in my functions.php: function numeric_posts_nav() { if( is_singular() ) return; ...
1
vote
0answers
28 views

Pagination with no 'page' slug

I have pagination on my archieve page - it looks like mysite.com/category/product/page/2. How can I disable/remove 'page' slug? I want it to look like mysite.com/category/product/2. Thanks in ...
0
votes
0answers
14 views

Pagination clones posts to next page

I have this archive page where I'm displaying some cards. I've run into a problem where cards would duplicate to next page. https://gyazo.com/1cd8689cba6d352f9c7fad28255b78ab The thing is that ...

1
2
3 4 5
34