Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pagination]

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

0
votes
0answers
8 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
15 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
8 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
18 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 ...
0
votes
0answers
25 views

wordpress sql query pagination

for example, I want to Page the remaining comments after calling 50 comments. the page where I call the function <ul class="list-group"> <h2 class="h3">gündem <div class="...
0
votes
2answers
76 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
26 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
33 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
12 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
11 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
22 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
37 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
17 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
100 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
11 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
47 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
18 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
31 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
14 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
14 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
24 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
29 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
25 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
42 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 ...
0
votes
0answers
21 views

Excluding posts without affecting the number of posts per page

I'm in a situation where I have to exclude certain posts dynamically using a complex set of conditions*. I'm currently using the_posts filter to remove posts that don't meet the condition. add_filter(...
0
votes
0answers
26 views

How to add Pagination on post_type attachment?

I have a WordPress page that displays all attachments attached to a post instead of the post itself and I want to add paginations to it. The problem is that the pagination only appears if I change ...
0
votes
0answers
22 views

More pages avaible than max number in pagiantion

I found out that my pagination display for example max 2 pages but I can freely go to (max) 5, changing the number in the url address. It' avaible until I change the value to 6 or more, then I got 404....
0
votes
0answers
25 views

Content included from pagination

I appreciate if someone can help me to explain why my post content shows below the pagination even though I echo the title only. I call this code via shortcode. INPUT: // the query to set the ...
0
votes
0answers
20 views

Same content on Wordpress - Pagination with custom query

I am making own template for WP and I have problem with pagination. The content is always the same on every page. I read many pages about this problem and I implement the solution, but it doesn't ...
0
votes
0answers
32 views

How to modify the code to include “rel=next” and “rel=prev” tags?

I have a Wordpress site with some posts splitted in pages. I added post pagination via this code: Single.php: <?php wp_link_pages(array( 'before' => '<div class="page-links"><span ...
0
votes
0answers
16 views

I am unable to Split my Long Post using <!--nextpage--> Code

Whenever I enter the command <!--nextpage--> in html, it just breaks my post and does not show next or 1,2,3 pages to go for next broken page. I have already tried to add this code <?php ...
0
votes
1answer
61 views

Pagination on custom post type on front-page.php

I've seen several (and have tried at least 15+ methods here on StackExchange) ways of how to do the custom post type loop, none work in my case. I have tried methods using paged and without, using ...
0
votes
0answers
20 views

Create custom design for posts loop with pagination

I need to create a simple posts loop to be shown on the homepage (Meaning - I am in "page" and not "blog" or "archive" This is what I need: Display maximum of 5 posts there will be arrows on both ...
0
votes
0answers
21 views

Custom archive paged head title

My website is in hebrew and when im in a paged archive the title is "archive title" page 2 of 4. How can i add the title only in archives that are in a page 2 or higher? I am using Yoast SEO. And its ...
0
votes
0answers
57 views

Woocommerce 'order_by' random with 1 hour seed refresh

I need my woocommerce products to display randomly. My products are actually people and the random element is so different people get seen on the first page so no-one is favoured. So, I have ...
1
vote
2answers
55 views

Paginate Pages by only showing 3 pages at most

I'm trying to use Wordpress paginate function to only show 3 pages at most(client wants it this way) so that when you go up a page it shows the current page you're on and the previous and next page: ...
0
votes
1answer
27 views

get_next_posts_page_link adds Inexistent directories

Using get_next_posts_page_link function to get url of paginated post's next page url, but it's adding directories to it that simply do not exist. Here is the code where I use it and probably missing ...
0
votes
1answer
35 views

How to add post page pagination to template part?

How can I get this page to display the post page pagination? I'm using a custom blog template with a get_template_part. https://www.nowitconnects.com/blog/ <?php /** * Template part for ...
0
votes
0answers
41 views

How to paginate across foreach loop?

I want to paginate a lengthy page, but it is not about paginating a post loop. My site has thousands of posts of type "article". And taxonomies including "company" and "format" - an "article" can be ...
0
votes
0answers
23 views

Adding pagination to Ajax Query

I have a search page. It works like this. (1) User searches using form in the homepage (2) User is taken to search results page (3) If user modifies the search term( there is form with in the search ...
0
votes
2answers
45 views

How can I change the output display of my pagination?

How can I change the output display of my pagination? I have been trying for the past few hours to format the output of my pagination links (1,2,3, etc.) to resemble the below: I have been unable to ...
0
votes
1answer
15 views

Why is my loop not populating the page with my custom taxonomy terms from my custom post type?

Why is my loop not populating the page with my custom taxonomy terms from my custom post type? Currently it is displaying an empty box instead of pulling in the custom taxonomy terms from my custom ...
0
votes
0answers
14 views

Pagination on Search Query not formatted correctly

I have in my pagination code below I have seemed to figured out how to omit the /page/1/ from the first link of my pagination like this 'base' => get_pagenum_link(1) . '%_%', on news posts and ...
0
votes
1answer
25 views

Generating rel=“prev” and rel=“next” using filters

In wp-includes\link-template.php the function which defines the pagination is: /** * Retrieves the previous posts page link. * * @since 2.7.0 * * @global int $paged * * @param string $label ...
2
votes
1answer
63 views

Wordpress Pagination not working, any ideas?

So I've been looking into why the pagination isn't working, but I just can't find anything. When it goes to page 2, it just shows the same as the first page. Any other ideas? <?php global $...
0
votes
0answers
38 views

How can I get my pagination loop to display the correct number of total pages?

Currently my pagination is showing 7 posts on the first page and 6 on each page after. This is what I want. The current readout looks like this: . The total count of my pages changes as soon as I ...
0
votes
0answers
25 views

pagination for meta_post

I have some problem, I want to show my meta_post 2 per page (1 post have more than 1 meta_post), but my code still show all meta_post $metas = get_post_meta( $ids, 'value_gallery', false ); foreach (...
0
votes
1answer
75 views

Pagination for Custom WP_Query not displaying page 2 results

I know this question has been asked many times, and I've been trying every answer I came across all day from 11am-9pm and I am STUCK. Here is my search page http://tribute-software.com/development/?s=...
0
votes
1answer
111 views

Following/Followers Users list Using Ajax Pagination inside Author Profile

I will try to be clear, I'm using "Users Following System" plugin. And I added a list of the following/followers users into the author.php profile, now I'm trying to use Ajax pagination. For sure ...