Questions tagged [pagination]

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

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

Pagination inside wp-ajax not working and return 404

I have issue when using wp ajax. my WP Wuery 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
26 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
14 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
10 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
12 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
21 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
12 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
votes
0answers
9 views

Wordpress Yootheme Pagination on Custom Template Page

I registered a Custom Post Type named Projects. I echoed all the articles in a page with a custom template: <?php /* Template Name: Progetti Template */ get_header(); if ($theme->get('...
1
vote
1answer
58 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
22 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
32 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
24 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
63 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
14 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
11 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
18 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
44 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
21 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
57 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
27 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
7 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 ...
0
votes
0answers
20 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> <...
0
votes
1answer
34 views

Numbered Pagination Showing The Same Posts After Altering WP_Query

I think the title sums the problem up, but I'll explain more with the code below. As you can see, I'm trying to start the loop from the second latest post for some theme reasons which forced me to ...
0
votes
1answer
23 views

How do i make the_posts_pagination look like my template?

Firstly i tried making a custom pagination but i could not work out the .. part and removing the last numbers so i decided to use the default pagination of Wordpress. But currently i am stuck on what ...
0
votes
0answers
19 views

How to make a Dotted pagination in wordpress?

I am currently using this function for pagination. if( !function_exists('pagination')) { function pagination($pages = '', $range = 4) { $showitems = ($range * 2)+1; ...
1
vote
0answers
21 views

How do i improve my custom pagination?

So this is my current pagination Currently i am working with total of 6 pages so it shows 1 2 3 .. 5 6 (in the image below) 5 and 6 being the second last and last But when i reach the number 5 it ...
0
votes
2answers
46 views

Combining WordPress pagination functions for archives and search results

I am currently modernising an old WordPress theme (a standalone theme, not a child of any official themes). Trying to build pagination I am finding some issues creating one function that works for ...
0
votes
1answer
36 views

Pagination not working for archive

The query works for the default blog and pages but not for custom post archives. Did I miss something? $paged_bottom = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; $...
0
votes
1answer
27 views

How to add Ajax to this Pagination i made?

This is my functions file add_action( 'wp_ajax_homekong_pagination', 'homekong_pagination' ); add_action( 'wp_ajax_nopriv_homekong_pagination', 'homekong_pagination' ); function homekong_pagination($...
1
vote
1answer
42 views

Wordpress single page template, custom post type, pagination orderby title - alphabetical order

I've scoured for QUITE a while, am looking for method to paginate on a single page template, orderby title (client likes first name sorting of team members) I assume this would include a way to ...
1
vote
0answers
19 views

Comment pagination not working

I am trying to have pagination for comments with a widget. The comments are getting loaded properly but the pagination does not work. I have set the pagination in the WordPress set to 3 as well. ...
0
votes
0answers
30 views

Rewrite paging in Wordpress

I am in trouble looking forward to help. I want to change "https://website.com/page/2" to "https://website.com?page=2" in Wordpress. Thank you so much!
1
vote
0answers
66 views

The default code for “posts_nav_link” on category.php isn't working

I am trying to make my own simple WP theme from scratch and I have run in to some difficulties. Maybe someone can help. I have a category named "News", whose slug is "news". The permalink structure ...
0
votes
0answers
15 views

pagination on wordpress and not showing all results

I have this page that shows posts from a range of years selected of a form on a previous page. the first results display the 10 posts as set in args(post_by_page => 10); if there are more posts I ...
1
vote
1answer
38 views

Add Pagination on Custom Post Type Archive

I've moved custom posts on what would normally be an archive template over to a dedicated page template. I've been following this article: https://jasonyingling.me/use-page-custom-post-type-archive-...
0
votes
0answers
11 views

Add pagination - syntax error when copy/pasting

I want to add pagination to this page: https://documentarynow.org/genre/documentary/ Can anyone explain why neither of these codes works? The theme developer added this code, which made the page ...
0
votes
1answer
81 views

Limit Timber pagination number items

Transparency: Wordpress newbie here. 👋🏻 I am working on a Wordpress Timber/Twig project and I've added some pagination based on the documentation here: https://timber.github.io/docs/guides/...
1
vote
1answer
128 views

wp_title() returns 'page not found' on page 2

I'm currently making a custom Wordpress template, and I'm using paginate_link to make page links at the bottom. index.php <?php get_header(); ?> <div class="container"> <div ...
2
votes
1answer
36 views

wordpress Next/Previous post in same category not working

I use the following code to get the Next /Previous link in the same category In localhost, it worked good but in my Cpanel host doesn't good working Following code: First, get current id post and ...
0
votes
1answer
28 views

Wordpress posts loop pagination - first page return 125 posts instead of 10 and the rest return 10

I'm trying to show 10 posts per page with pagination on WordPress and the first page return 125 posts instead of 10 and the rest of the pages return 10 posts as requested, please assist :) $paged = (...
0
votes
1answer
15 views

What template file is used for homepage pagination?

This is most likely a duplicate and I'm just struggling for the right way to search it but what file is used to display actual pages of posts, not the post type of page but like /blog/page/2/ for the ...
0
votes
0answers
20 views

empty pages on pagination with meta query

I am using meta query to filter posts by various meta tags, showing 9 posts/page, but on pagination there are as many pages as were all the posts displayed without filtering, only that empty pages are ...
0
votes
0answers
43 views

Pagination inside the blog page not working

I have a widget which creates a grid with pagination. If I am using the pagination then it works fine when used on the page to display grid. But when I am using that in inside a blog post. The ...
0
votes
1answer
51 views

Can I use paginate_links() to add a pagination list, yet prevent it from inserting links?

My page displays a list of WordPress users. For pagination, I have used the function paginate_links. This inserts a list onto my page e.g. page 2 page 3 page 4 (screenshot). And each list item is a ...
0
votes
1answer
42 views

How to create a WordPress gallery with pagination

How would I create a gallery like this - https://www.sumcoco.com/2019/02/08/30-dutch-braid-tutorial-for-2019-latest-season/27/ The pagination also changes the url for each image... I know the above ...
0
votes
1answer
54 views

Add Pagination in custom Blog page template

I am using custom page for blogs(page-allblogs.php). I have not written all the code in this page because i wanted write clean codes. So this page has following codes: <?php get_header();?> &...