Questions tagged [paginate-links]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
20 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
20 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
50 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; $...
1
vote
1answer
164 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
0answers
15 views

wordpress pagination issue

because of some duplication and as i am not getting my desired result i have removed my previous questions i have asked about pagination issue , i am posting again so i might get any help . if ( ...
0
votes
1answer
51 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
23 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
36 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
47 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
0answers
35 views

Make a specific div reload and update when paginate_links is clicked with AJAX

My homepage consists of other media content and a div which shows 3 posts at a time, and uses paginate_links. Clicking on the next page works but refreshes the entire page. I want to make only that ...
0
votes
1answer
129 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
90 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 ...
0
votes
0answers
128 views

How can I add attributes to paginate_links?

I'm trying to add a custom attributes to my paginate_links for my blog page. Is this possible? Here's what I'm currently using: echo paginate_links( array( 'base' => str_replace( $big, '%#%'...
1
vote
1answer
33 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
47 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
45 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
25 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
102 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
718 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
75 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
1k 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
87 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
61 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
331 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
469 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
688 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
78 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
1k 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
636 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
454 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
392 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
102 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
406 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
533 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
136 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
154 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
157 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
518 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
104 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
481 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
128 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 // ...
3
votes
1answer
2k 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
152 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://...
0
votes
1answer
370 views

Custom admin page pagination permissions error

I have a custom page pulling in users and I'm using some pagination. It works fine if I look at the page on the front end of the site but when I look at the site within the admin area within a basic ...
7
votes
1answer
3k views

How to remove_query_arg() for paginate_links()

I implemented a pagination using paginate_links() like below: <?php function wpse229670_pagination( $query = false ) { global $wp_query; $query = $query ? $query : $wp_query; $...
0
votes
1answer
1k views

Paginate Links function: Page 1 doesn't work

I got this: $pagination_args = array( 'base' => '%_%', 'format' => '?listpostspage=%#%', 'total' => $the_query->max_num_pages, 'current' ...
-1
votes
1answer
1k views

Pagination only working on index page not on a template page

I have a pagination that works perfectly fine on my homepage, the code goes: <div class="articles"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ...
0
votes
1answer
72 views

Default pagination in Home/Front page

I am using my home page to show all my posts. Therefore I use WP_Query. When I click on the pagination, the url changes but not the page content. This is my code, <?php $paged = (...