Questions tagged [pagination]

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

Filter by
Sorted by
Tagged with
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
41 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
1answer
108 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
1answer
381 views

Converting multiple loops into one single loop with pagination

I am using Isotope jquery plugin to filter/sort posts in Wordpress but to correctly filter the posts into the right order I have needed to output each category one after the other. To do this I've ...
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
32 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
32 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
125 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) ...
3
votes
4answers
7k views

Change class=“page-numbers” in pagination

I'm using the following code (from here) to paginate links: function custom_pagination() { global $wp_query; $big = 999999999; // need an unlikely integer $pages = paginate_links( array( ...
2
votes
2answers
426 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
104 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
19 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
32 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
31 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
35 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
38 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 ...
5
votes
6answers
18k views

How to add CSS Class to previous_post_link or get previous/next post link URL

How can I add a CSS Class to the previous_post_link output or just get the URL and create the HTML markup myself
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
110 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
2answers
435 views

remove $_GET-parameter from WP_List_Table::tablenav

I'm using URL parameters as actions links within a custom WP_List_Table for users like so: http://domain.com/wp-admin/users.php?page=account-expiration-status&do_action_xyz&email=email%...
0
votes
0answers
312 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
2answers
1k views

Pagination go to first page if i'm on last post

I have a custom post type and used get_next_post() and get_previous_post() to create a simple pagination. However i need to create a pagination loop (if that is the correct term). If i'm on the first ...
1
vote
1answer
32 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
25 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
19 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
29 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 ...
1
vote
2answers
111 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
38 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
2k 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 ...
1
vote
2answers
144 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
3answers
5k views

remove default pagination on woocommerce shop page

how can I remove default pagination on woocommerce shop page ? and then use my custom pagination (or use pagination plugin) on woocommerce shop page thank you
0
votes
1answer
59 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
186 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
20 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
169 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
40 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
57 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
39 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 ...
0
votes
0answers
18 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 ...
0
votes
1answer
41 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
48 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
1answer
243 views

Alternative layout the loop

i'm trying to make an alternative loop as found here on stackexchange, it has been a great help to what i've achieved so far, but i'm stuck now. The goal is to make the newspage look like this The ...