Questions tagged [pagination]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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
13 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 ...
0
votes
0answers
14 views

Genesis custom post type pagination leads to 404 [closed]

So I have the below code that pulls in the latest post which is 1 post and then I've added pagination. There numbers are at the bottom, but as soon as I click on 'Next page', it redirects me to an ...
1
vote
1answer
12 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
13 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
14 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
13 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
8 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
13 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
26 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
19 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
24 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
46 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
15 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
6 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
29 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
29 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
35 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
14 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
35 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
25 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?
0
votes
1answer
16 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
24 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
13 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
12 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
39 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
14 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
22 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
13 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
vote
0answers
39 views

Restoring default article pagination on archives – Removing custom limits

I am working on a website that is a customised WordPress installation running WP 5.2.4. There are a number of categories, as follows: main_category (id 71) other_cat_1 other_cat_2 etc. The post ...
0
votes
0answers
14 views

Next and Prev Post for sub or child category at single-page?

I have category-country.php page and also I have single-country.php where i need to place a next and prev post with in same country that I have different project at country category having USA, China, ...
1
vote
1answer
62 views

Page not found when clicking on pagination tab

I have a category page and I am getting some issues on pagination. When I click on NEXT PAGE then I am getting Oops! That page can’t be found. and the URL is showing http://example.com/category/...
0
votes
0answers
23 views

How do I remove the pagination terms after a single URL?

Here is a single URL 10stuffs(dot)com/technews. and it also displays the result when we add pagination terms like 10stuffs(dot)com/technews/page/2. I just want to keep the URL like this 10stuffs(dot)...
0
votes
2answers
78 views

Distribute Gallery Images Every nth in Loop

I have added an acf image gallery for archive terms and I would like to take those images and insert one image from the gallery every 3 posts in the term archive. This is what I have so far but I am ...
0
votes
0answers
9 views

Pagination-url on frontpage, but no pagination visible or available

I have some projects, one of them is https://mhe.dk, where a customer has events, made with a custom post-type. If you visit the program-page (https://mhe.dk/program), you have some pagination that ...
-1
votes
1answer
37 views

Pagination is not working using WP_Query

I have coded for custom post type pagination but it doesn't work. Here is some code for it. <?php global $wpdb; $userid = get_current_user_id(); $userData = get_user_meta($userid , 'referat', true)...
0
votes
0answers
26 views

how to add pagination to a popular post custom page?

I want to add pagination to my custom page in a popular post, this is my coding. <div class="contentpost"> <div id="rls" class="lr"> <?php $popularpost = new WP_Query(...
-1
votes
1answer
68 views

Next and Previous Pagination button not displaying in WordPress

I have more than 15 posts and I am displaying only 6 per page load and remaining will display after the click on the pagination but the issue is I am not getting my pagination. I am using below code ...
-1
votes
1answer
20 views

change pagination url

Currently I’m having URL for pagination pages as: http://www.example.com/category_name/page/2 But I need to change this URL structure as: http://www.example.com/category_name/?page=2 etc. any ...
0
votes
0answers
14 views

kriesi WordPress pagination not working its goes to 404 page

I have Taxonomy with name states and term in that taxonomy California http://crowdupdating.jelingu.com/states/california/page/2/ this is how my pagination link looks the pagination code is in ...
0
votes
0answers
24 views

WP Rest API, reset pagination when fetching posts from a new category

I am using ajax and the Wp Rest API to fetch posts from different categories. When I click on a category link, the posts from that category are loaded into the page. What pagination options do I have ...
0
votes
1answer
47 views

Remove 'page-numbers' class from prev and next tags

I'm converting a template to WordPress theme and i need to change some css classes. The WordPress function paginate_links generates this markup: <ul> <li><a class="prev ...
0
votes
1answer
22 views

Unable to create pagination for Category.php

I'm trying to make a pagination for my category.php. My posts are custom post type. I get a 404 not found error when I'm trying to get to the second page. I realised that this is happening only for ...
2
votes
0answers
65 views

Wordpress API returns empty page when page is less than X-WP-TotalPages

I am querying in the Wordpress API for all pages of media attachments. I am going page by page. I have about 5800 pages and when I hit pages 50-53 they return a blank or more of a [] but it is a ...
0
votes
1answer
36 views

Pagination hitting 404 page on /page/4

This is a bit of a headscratcher. So, I am using the WP Download Manager Pro plugin that creates a custom post type wpdmpro. I have pages for each category, and using the loop, I loop through each ...
0
votes
0answers
31 views

pagination woocommerce i can´t do it

hello i trying to do pagination with php and woocommerce and wordpress this is my nav pagination <div class="nav-links"> <a class="next page-numbers" href='<?php //...
0
votes
0answers
12 views

Custom Taxonomy pagination only working with get_previous_post OR get_next_post, but not both

I am using a custom post type with a custom taxonomy. I am trying to show prev/next pagination on the single, but I want it to limit it to CPT posts that are in the same custom taxonomy. Here's ...
1
vote
0answers
31 views

get_terms pagination

Anyone know how to paginate this get_terms function in wordpress, I tried some options but nothing worked, perhaps its because of the label? <div class="comp-modal-content"> </ul> <...

1 2 3 4 5 33