Questions tagged [paginate-links]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

Show number of pagination pages even when total under two

I have implemented pagination to my wp site and pagination works correctly, but when I limit to display lets say 10 posts and I have 9 then it won't show pagination. Is it possible to show in that ...
0
votes
0answers
15 views

I want to change URLs structure of a classified ads site

I want to change URLs structures of my Classified Ads website and want to set as categories based links https://www.dashingworld.com/ad_category/mobiles-and-tablets/ TO For Main and SUb Categories ...
0
votes
0answers
18 views

Paginate links on custom post type using laravel blade

I'm trying to make a news section for my page, and i have no idea how to use paginate_links() to create the prev/next buttons. I tried googling and searching around, but either i didn't understand or ...
0
votes
1answer
16 views

Can't Add Pagination

I can't add a pagination to divide my posts between pages and navigate between pages. Currently all 20 posts I have loads at once. I want to add a pagination to the bottom of my Page and view posts ...
0
votes
0answers
20 views

Two Pagination in One page with shortcode

I create a shortcode to show posts by category with attributes. I want to show 2 separate categories with a separate shortcode in one page but the pagination connected. If I change pagination in the ...
0
votes
1answer
92 views

Pagination Not Working on `WP_Query` Archive Page

I have an archive page that pulls two different custom post types into an archive using WP_Query(). Because there is a home page to the site which shows 9 of the custom post type posts, I offset the ...
0
votes
0answers
19 views

Wordpress Pagination for Custom Post Type returns Same Post on every Page

The Pagination for my custom post type returns the same posts on every page. Like when hovered over the pagination like the link shows domain.com/android/page/2 but when clicked it returns to domain....
0
votes
0answers
19 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
44 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
0answers
60 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; ...
0
votes
2answers
73 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
45 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; $...
1
vote
1answer
345 views

Can paginate_links() be customized for a specific category or tag?

I am creating category and tag page templates for my client so they can post news articles to the news category page and specific news pages separated by tag with a pagination nav at the bottom of ...
0
votes
1answer
143 views

paginate_links method doesn't show second page of my custom wp_query

I'm trying to create a custom search page using wp_query. I'm using post method to get search values. At first, the search was doing fine, but when i got a search results of more than 4 posts (i set 4 ...
0
votes
1answer
50 views

Sidebar pagination posts not shown when sidebar is in single.php

A quick question. So I have created a loop in a new file called sidebar-extra.php which I include via the header.php into my single.php file. Problem: when I go to a post (single.php), I can't see ...
0
votes
1answer
89 views

How to focus to a specific div when page reloads by pagination?

I´d like to focus on a div (#main.first), after clicking in wordpress pagination in my homepage. I need that because my header (with image slider) is too big, and it steals focus from my posts list. ...
0
votes
2answers
63 views

Broken pagination links on WP 4.9.10 blog pages

We noticed a weird issue on our WP 4.9.10 blog pages when going to 1st page. Right now we can go to 2nd or 3rd page by clicking the page numbers but saw that it gives 301 code when going to 1st page ...
0
votes
1answer
343 views

Why does paginate_links() reload the entire page? and can you make it reload only a specific div?

Beginner here; apologise for any obvious mistakes. I have a post list on my homepage showing 3 posts at a time and using paginate_links(). When I click on page2 or next in the paginate_links(), it ...
0
votes
1answer
139 views

How to use multiple paginate_links() in my index.php?

I've created two divs which displays posts from two different categories. The paginate_links() function works only for the first div and not for the second. I tried @Boone Gorges answer: Multiple ...
1
vote
1answer
69 views

How to get URL for the first page of post archive

I would like to get the first page of an archive. I have an archive with events. /events display events, which are not finished yet. /events?past display past events. I use get/remove_query_arg to ...
0
votes
1answer
99 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 ...
1
vote
1answer
49 views

Why category.php throw 404 in wordpress while calling paginate_links()?

I am trying to develop my own Wordpress theme and want to add pagination in category page by call paginate_links() function. It will generate the links [1,2,... Next] perfectly but when I click on 2 ...
1
vote
0answers
26 views

How do you paginate a query grouped by month?

I am currently using David Gard's solution from the thread below. It works great as it fills the requirements of the OP. Basically grouping the custom posts by month and cap it at 6 months. Display ...
0
votes
1answer
123 views

Highlight the first page pagination_links

i need help in WordPress. I'm not a WordPress developer, but for some reason i have to change some code in here. Now coming to the point. I have a page where i'm showing some content with pagination. ...
4
votes
2answers
1k views

Paginate Link generate additional #038; whenever my Url have multiple Query String

My generated paginate link results will have additional #038; in the url, may I know how to get rid of it? Blog page url : http://localhost/wordpress/blog/ I had already setup pagination with ...
0
votes
0answers
100 views

404 page not found on pagination in home page while navigating to next page

I am new to wordpress. I am trying to paginate custom post type I have created on index page. I can't figure out what I'm doing wrong . Here's the code : $paged = (get_query_var('paged')) ? ...
0
votes
0answers
2k views

Best way to add ajax “load more” custom posts button?

I'm looking for a way to add ajax "load more" pagination this example I found of a WP_Query loop with a dropdown to filter by taxonomy. The filtering system works great and I am able to add a standard ...
0
votes
0answers
103 views

The pagination is working on Local, not on LIVE. why?

Here is the code for pagination: function numeric_posts_nav() { if( is_singular() ) return; global $wp_query; /** Stop execution if there's only 1 page */ if( $wp_query-&...
0
votes
2answers
90 views

Shortcode with pagination advancing multiple queries

I have some shortcode that I am using. The shortcode itself is working. The shortcode has pagination because it's cycling through a picture gallery. The pagination itself works, but when it advances, ...
0
votes
1answer
368 views

I want to create pagination for my custom post type archive that i am displaying with loop

I have created a home.php file and in that i am showing my custom post type "projects with the WP-Query". I have added pagination to my custom post type using "paginate_links()" and the list shows up ...
0
votes
2answers
571 views

Pagination Links showing incorrect previous page number

Cant seem to return to the index page with the Previous link using paginate_links(). Previous link is linking to paged 2. $paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : ...
1
vote
2answers
928 views

get_next_posts_link not working without parameter max_num_pages

I have a custom search page (searchpage.php) using pagination, and I am tring to add lines like below dynamically to my header.php inside <head></head> tag for better pagination SEO. <...
0
votes
1answer
92 views

Using Pagination for Custom Post Type and keeps returning 404

I'm able to return the correct page numbers (1 post per page) but the paginated links keep returning a 404 page. Here's the function I'm calling for the pagination: //Pagination for Custom Taxonomy ...
3
votes
3answers
2k views

Custom Search Page Pagination Not Working

My Seach Page URLs: https://www.example.com/search/keyword/page/2/ Here my custom search page: <?php if($_GET['search_text'] && !empty($_GET['search_text'])) { $text ...
0
votes
1answer
772 views

Pagination using paginate_links

I am using the built in paginate_links function and setting formatparameter to the default value: '?paged=%#%' . For some reason, it keeps redirecting to a different formatted url. For example, when I ...
1
vote
1answer
562 views

Customizing comments pagination for bootstrap

I want to customize the comments pagination to support Bootstrap, I have these lines in my theme file but I need more customization to display Bootstrap pagination style <?php ...
0
votes
0answers
470 views

Post navigation doesn't show (in custom template, custom post type, custom query)

In a custom template, <?php /** * Template Name: News */ ?> I do this query: $args = array( 'post_type' => array( 'news' ), 'post_status' => array( 'publish' ), ...
-1
votes
1answer
107 views

error with $query->have_posts()

i am new to wordpress, here, what i am doing is fetching the thumbnails of post type= organisation,please check if there is a problem with my $args array and i apply the pagination here, but wp-query ...
1
vote
0answers
466 views

Duplicate posts in paginated results

I'm running into an issue where there are duplicate posts appearing in my paginated results. I suspect the issue is to do with my use of paginate_links(), but if anyone can see something obvious in my ...
0
votes
1answer
630 views

Paginate Links in Wp Query Shortcode

so been looking around for this answer, but no go -- basically i have a WP Query that is incased in a shortcode.. I have set up the paginate links function which outputs it on the page. However, the ...
0
votes
0answers
172 views

Paginate nested query of child posts

I need help with paginating the child posts created by Toolset on the page of the parent post. Basically, I need to recreate the functionality of this page http://dailytrendsetter.com/sports/top-10-...
1
vote
0answers
182 views

Invalid previous pagination links generated from paginate_links()

I inherited this WordPress project and it is part of a live Website. The original author wrote a custom pagination function that is being used more than once on the Website. However, on a few pages, ...
0
votes
1answer
171 views

Later blog post pages give 404 error

The later blog pages give a 404 error. For example page 7 works fine: http://www.ismyhomesafe.ca/blog/page/7/ Page 8 gives you a 404 error: http://www.ismyhomesafe.ca/blog/page/8/ Any suggestions ...
1
vote
1answer
2k views

Pretty urls for custom pagination

I have custom query with custom pagination with which I'd like to use pretty urls, like the standard pagination, rather than appending a query string to the url, ie www.example.com/posttype/pagename/...
3
votes
1answer
541 views

How to edit or override a Core function?

I want to add a data argument to links generated by the paginate_links() function. Then, I can more easily extend my custom pagination to use AJAX. As far as I can tell, this function is not ...
0
votes
1answer
107 views

Extra pagination pages being wrongly generated

Our site has correctly functioning pagination such as http://youronthepodium.co.uk/category/uncategorized/page/2/. However, a load of extra pages are being generated with the following parameters ?...
0
votes
0answers
496 views

Google Indexed sub pages in wordpress pagination in post

I'm using WordPress Pagination in Post. So that users can view the same post in different parts. Issue - Google is indexing all the subpages. How to resolve it? :/ http://example.com/post/ (...
1
vote
0answers
129 views

pagination for single post by category

I want number pagination for single post type by post category on my custom page template, I know about next previous function but i want number pagination in my custom post page. <?php // ...
4
votes
1answer
3k views

Getting paginate_links() 'end_size' to display none

I'm working with the paginate_links() function and I'm trying to create a pagination in this kind of style; < 3 4 5 6 7 > Logically I thought it would be simple by setting end_size to 0 and ...
0
votes
1answer
165 views

Output wp_link_pages as raw url

My post content looks like this <img src="http://linktoimage.jpg" alt=""/> <!--nextpage--> <img src="http://linktoimage.jpg" alt=""/> <!--nextpage--> <img src="http://...