Questions tagged [pagination]

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

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

pagination problem with changing $_GET

I have a select option and some inputs that are getting into the $_GET, then based on $_GET, the $args of wp_query(args) will be changed, everything is fine and pagination works good. but when i ...
0
votes
0answers
22 views

pagination problem with select option

I have a select option menu and a wp_query. when a user choose an option, it shows related posts. everything is great but pagination. pagination is working good, it shows pages and when you click page ...
0
votes
0answers
40 views

Permalink for custom post type pages not working

Having some trouble with pagination and custom post types. I have 3 custom post types active currently: 'webinar', 'resource', and 'faq'. For each of these custom post types, I'm using the archive-{...
0
votes
0answers
23 views

Wordpress doesn't respect Page slug in custom post type url pagination. Keeps getting removed

I have a custom post type, Company, with respective company child pages. Whenever I attempt to go to a page url eg. http://example.com/company/example_company/page/2, the /page/2/ gets striped from ...
0
votes
1answer
28 views

wp_link_pages shortcode for 'nextpagelink'

I want 'nextpagelink' shortcode [nextpage_shortcode] that I can place inside content. I've seen threads where they say that you can't place anything related to the wp_link_pages inside content due to ...
1
vote
1answer
26 views

Post Pagination Customization (wp_link_pages) Editing Navigation

I want to create a post pagination where there is only ONE 'nextpagelink' button per page. However, I want the text inside the the first 'nextpagelink' to say "WELCOME". And I want the text inside ...
-1
votes
1answer
20 views

Category pagination not working in category.php please help me

<div class="col-sm-8 main-content"> <div class="row"> <div class="col-sm-12"> <?php $cat_id = get_queried_object_id(); ...
0
votes
1answer
29 views

Query Post interferes with Pagination

Here is my situation, if you look at the following page: http://staging.cancerwellness.com/mind-body/cancerversary/, you will see that the pagination is not working. After researching the problem, I ...
1
vote
1answer
86 views

Dropdown menu on custom page with product to choose number of products per page

I have almost zero knowledge with Wordpress and Wocoommerce cores and api's so, please bear with me. I have showing ~140 products on custom page (e.g. not the default shop page for woocommerce) ...
0
votes
1answer
74 views

How to create pagination for users list using custom array?

After searching I didn't found any solution, So I'm wondering how can I create pagination for users list like that? I'm highly appreciated your help, Thanks. <?php global $wp_query; $...
2
votes
2answers
282 views

When to check for max_num_pages using Wordpress REST API?

I'm implementing infinite loading using the WP API, so I pull in the new posts via an API request. Because the default API response is fine with me and I only really need to filter the posts returned, ...
0
votes
1answer
14 views

Custom category.php paging shows the same posts

I've created a custom category.php for my client. The issue is, that if I click to next/prev pagination links, it shows the same posts. Any idea what can be wrong? category.php <?php /* ...
0
votes
1answer
82 views

Modifying the_posts_pagination from within functions.php instead of template files

I know that using a function like the following (in functions.php) allows me to customize pagination options: function custom_theme_pagination(){ global $wp_query; echo paginate_links(); } ....
0
votes
0answers
18 views

Pagination Page Not Found error

I inherited this site and I'm getting a 'Page Not Found' error when I click on page 2 of my author's page: https://drhoffman.com/author/drhoffman/ Here is my code for author.php, any ideas? Thanks! ...
0
votes
0answers
31 views

How to display custom post type pagination buttons when processing AJAX request

Good morning everyone, I am trying to filter posts using ajax by custom fields and custom taxonomy values from a custom post type. Ajax request works fine, It retrieves all needed data to display, but ...
0
votes
0answers
30 views

Pagination - Previous link is not show and Next link sticks at page 2

The code below is not able to show the pagination correctly Previous link is not able to show Page 1 is not a link Next Button always sticks with page 2 Thanks <?php if ( have_posts() ): ...
0
votes
1answer
32 views

The paging is very slow under a large number of articles

How can I optimize sql? SELECT wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN ...
1
vote
1answer
37 views

Problem with parameters in url and pagination

I created a custom template page and I show users list in it. I have a pagination for this users list and when I add a user to this list, I show a message at the top. This messaged is created from a ...
1
vote
1answer
23 views

Custom template Page 2 not working

When I click Next page, page-2 showing 404 error page. Page one is OKAY. I have created this custom post type with CPT UI plugin and building the theme from scratch. <?php /** * Template name:...
0
votes
1answer
76 views

WordPress alphabetical A-Z custom post type post result display

How to display WordPress custom post type result alphabetical letters or pagination? for a example i have a post type called "homeless". under homeless there are 50 states (categories). there are 259 ...
0
votes
1answer
28 views

My custom pagination not displaying

I'm testing a custom pagination feature but my pagination is not showing, is there something I forgot to do? here's my arguments and query inserted in my template: <?php ...
0
votes
0answers
13 views

Paginate by individual page links, not /page/1, /page/2, etc

I'm moving a group of 20 or so pages from another CMS into WP. These are pages not posts. Each page is a chapter in a book and each page has bottom nav links much like a blog index page. In our case ...
0
votes
1answer
40 views

Change the number of excerpts displayed in search results layout

WP 5.1 TwentySeventeen (child) theme. _posts_per_page = 1 For search results I want to display 5 excerpts. Using this answer and this page I was able to do that but displayed excerpts are not from ...
0
votes
0answers
17 views

Last Page or First Page Pagination

How can I make a first page and last page link? $pagination = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?...
0
votes
0answers
242 views

Custom Pagination Layout for Elementor widget

My homepage consists of various Elementor widgets showing blog posts. Each of this widget is a custom WordPress query. I was able to make pagination work for each of this widget, but it loads the same ...
1
vote
1answer
30 views

How to get “nexepagelink” and “previoiuspagelink” in wp_link_pages?

I'm trying to get pagination in my pages, so I use this default option: <?php wp_link_pages( array( 'before' => '<div>', 'after' => '</div>', '...
0
votes
0answers
18 views

Pagination woocommerce

i am using Woocommerce plugin. So, i created a page in Divi theme and i connected my own template to that page for displaying all products. All works fine, but i want to add the pagination at the ...
0
votes
0answers
17 views

How to paginate through digital downloads woocommerce PHP

So I know that Wordpress has a lot of pagination functions but they only seem to work with posts. On the users my-account page of woocommerce there is a section for "Available Downloads". I sell ...
0
votes
0answers
23 views

Top and bottom pagination not working in mobile browser

I have custom pagination for slider post i.e slideshow of images and post together and it works on desktops and doesnt work when im accessing the site on my mobile phone.I tried to figure out the ...
0
votes
1answer
33 views

Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”

I’m trying to get BTF integrated with the Ajax Load More plugin and am having trouble on the filter results that are using two differen t taxonomies. Basically I just need to know how to query/call ...
1
vote
2answers
1k views

How to “Load More” posts via AJAX?

On the taxonomy-{name}.php template for my "Organisation" taxonomy, I am currently showing a limited number of posts, grouped for each term of taxonomy "Format". Where the number of available posts ...
0
votes
1answer
51 views

I want the “next” and “previous” buttons to appear in my custom navigation function

I'm looking for a way to display the two buttons "previous" and "next" of the navigation of my page, but with the code below, I can only show one. I do not understand what's wrong in the code (below): ...
0
votes
1answer
145 views

I want to customize the_posts_navigation function by replacing prev and next with images

Hie, I am currently trying to customize the function 'the_posts_navigation' of Wordpress because I would like to let appear only "previous" and "next" (which I want to replace by icons of arrow in ...
0
votes
1answer
18 views

Problem with Paging 404

On my Wordpress site, house is a page with short code written in it to paginate a get terms loop. Currently below urls works perfectly to return 2nd page of the loop /house/?paged=2 /index.php?...
0
votes
1answer
81 views

Hide Load more Ajax button if there is no more users to load or less than the number?

How to hide the Load more Ajax button if there is no more users to load or less than the number <script type="text/javascript"> var ajaxurl = "<?php echo admin_url( 'admin-ajax.php' ); ?>"...
0
votes
1answer
31 views

Make pagination work as a carousel (custom query)

I'm using a custom query on my static front page in order to show my posts, but I would like my pagination to work kinda like a carousel (instead of loading an entire new url). So, basically I want ...
0
votes
0answers
55 views

Permalink structure custom-taxonomy-slug/cpt-slug breaks ability to have subpages and pagination (404 error)

I took over a WordPress project from another programmer, who wrote code to create the permalink structure "custom-taxonomy-slug/cpt-slug", the custom taxonomy is "city", the cpt is "restaurant", so ...
0
votes
1answer
38 views

Add pagination to for each taxonomy terms

I am tring to add a line of code that paginate the taxonomies to serveral pages this lin is a function i created called wpbeginner_numeric_posts_nav(); but every time i add the function after ...
1
vote
2answers
125 views

How to load custom post archives sub-pages with ajax?

I'd like to keep the pagination links for /page/2/, /page/373/, etc but instead of changing the URL on the browser i want everything to load on the archive main page. Ideally all those paginated URLs ...
0
votes
0answers
17 views

Front End Ajax Pagination for users list inside author profile page

I really tired of being no one here answering me! I'm newbie with WP, And i'm trying to create an followers/following users list for our users inside their profile page with Ajax Pagination. The ...
1
vote
2answers
91 views

Create A Loop With A Variable Number of Posts For Each Bootstrap Row?

I'm attempting to create a single WP loop, using a custom query, to display a custom-post-type - using Bootstrap 4 markup. The complicating part for me is, I'd like the number of posts for each row ...
0
votes
1answer
32 views

How to Show Next, Previous, and Page Numbers with wp_link_pages

I want to modify the output of wp_link_pages. Basically what I need is to show Previous and Next buttons and current page/total number of pages. I created the Previous and Next button. Now in between ...
0
votes
1answer
44 views

Custom Query Pagination not working on static front page

I'm trying to add pagination to my site but it isn't working. Here's the code: <div id="gridcontainer" class="carousel"> <?php $currentPage = get_query_var('page'); $counter = ...
0
votes
0answers
18 views

Users list with Ajax Pagination inside each author profile for their follower and following users

I'm trying to create an followers/following users list for each user in their profile page with Ajax Pagination. Someone here was helped me to make the Ajax pagination working, but i'm facing a big ...
0
votes
0answers
30 views

Top Authors list by highest post views with Ajax pagination

I'm trying to create an users list to sort all users by the highest post views for each user, I added $output = array_slice($topuser, 0, 10); to get 10 users when i click load more in the next page, ...
2
votes
0answers
40 views

Multiple WP_Query loops with Pagination Not Working

Please can anyone help me out here? I'm really stucked with this code. I want to create a multi post loop on my home page with each loop having its own pagination. The first loop is for recent post, ...
0
votes
0answers
73 views

Pagination not working past page 3 on archive page of category

I have a custom post type of "show" and within that custom post type I have set up a taxonomy / category called "venue" which has two options "venue-one" and "venue-two" (slugs). On the two archive ...
1
vote
1answer
34 views

How to use pagination on costum post type

i made a costum post type use plugin Costum post type UI and i tried to display i on homepage / index code <?php args1 = array( 'post_type' => 'app', 'posts_per_page' => 3 );$the_query1 = ...
0
votes
0answers
42 views

PageNavi redirects to 404 when used as archive page

I'm using a page as archive for a custom post type called event. register_post_type('event', array( 'labels' => array( 'name' => 'Événements', 'singular_name' => '...
0
votes
1answer
201 views

Using the_posts_pagination with offset adds extra empty page

I'm working on a quite complex query, it has a different post count on the first page and on paginated pages, to achieve that I'm using offset and this seem to mess up the_posts_pagination. Here's ...