Questions tagged [pagination]

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

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

category/category_name pagination 404 error

<div class="row"> <?php $currCat = get_category(get_query_var('cat')); $cat_name = $currCat->name; $cat_id = get_cat_ID( $cat_name ); $paged = (get_query_var('paged')) ...
1
vote
1answer
540 views

WP Query with offset breaks wp_pagenavi or any pagination

I am working on a custom loop using WP_Query using the offset parameter. The problem is that as soon as I add the offset, it breaks the pagination, displaying the same links no matter the page number. ...
0
votes
1answer
34 views

Problem with pagination link (error 404)

I have a problem with wordpress patination. The limit of posts (custom type post "properties") per page is 9. When I pusblish 11 properties the pagination links works properly. 9 properties in the ...
0
votes
1answer
647 views

How to group posts by months and add pagination?

I want to group by posts by months. Like this: January 2014 Post name Post name December 2013 Post name November 2013 Post name Post name Post name Post name I need to have 10 months per page, ...
1
vote
2answers
793 views

Start post pagination at 0 instead of 1

Is it possible to start post pagination count at zero instead of 1? I want the URLs to be like this: ../page (Foreword) ../page/1 (Chapter 1) ../page/2 (Chapter 2) But by default the URL ...
0
votes
0answers
11 views

Wordpress/Yoast: How to solve the problem with pagination page?

before I switched to YOAST, I was using All in One SEO but I got some huge problems with it. There were incompatiblliys which made it impossible to further use this plugin. Anyways, I’m facing a ...
1
vote
1answer
694 views

404 when using pagination in a category

I always struggle with pagination in wordpress. I really wish that was a definitive guide to wordpress rewrite rules. I have a site setup this way: permalink custom structure: /%category%/%postname%...
2
votes
1answer
664 views

Display post links under month in paginated archive

I'd like to create an archive that lists posts under a month header. The months would just be plain text and the post titles, obviously, would link to the posts themselves! So: October 2013 Post ...
0
votes
1answer
2k views

Pagination doesn't work on static front page

Static front page pagination working fine on localhost. but when i uploaded the to server online its not working. i am using infinite scroll. the issue is only with static front page, when i don't use ...
0
votes
2answers
888 views

Show a page counter for pagination

I currently have simple pagination set up showing the text older and newer. If one of the text isn't needed it display an 'inactive' version of it so that the text doesn't disappear. <?php if( ...
0
votes
1answer
736 views

WordPress not showing pagination links

In my WordPress Index.html I am pulling out the 3 latest posts by using <?php query_posts('posts_per_page=3') ?> <?php while(have_posts()) : the_post(); ?> //rest of the post related ...
0
votes
0answers
24 views

Pagination Stops

I noticed pagination stops working after page 10 of blog posts. When on page 10, and clicking the right arrow/next button button you are taken back to page 2 instead of page 11. I have read several ...
0
votes
3answers
452 views

Showing the correct number of posts_per_page when avoiding the use of post__not_in

WordPress VIP and other development guides I've seen recommend avoiding the use of post__not_in for performance reasons when using WordPress at scale. Their suggestion is to filter out the posts in ...
0
votes
0answers
6 views

404 error page after hiding product-category slug

after i used this code: add_filter('request', function( $vars ) { global $wpdb; if(isset($vars['error'])){ $lastVar = basename($_SERVER['REQUEST_URI']); $vars['attachment'] = $...
0
votes
1answer
23 views

Trying to get pagination working on WP_Query() post grid

So I've been developing my own theme as a learning experience, and I'm at a loss regarding how to get pagination working. I've tried several things before getting to this point and asking, I just seem ...
1
vote
3answers
6k views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
3answers
34 views

WP Query for all posts

I have page-property.php in the loop folder with this code. And I see only 8 posts (Custom Post type), but I want to see all of them with pagination, what's wrong? <?php $view = 'archive'; ...
0
votes
2answers
1k views

Always show Next and Previous button in wp_link_pages ?

How do we get wp_link_pages() to show the Next and Previous button when it is the start of the multi-page post as well at the end of a multipage. Currently it only shows Next if it is the first page, ...
0
votes
1answer
587 views

Pagination (on the static front page) shows always the same posts

I have a problem with pagination on my front page. I want to show all posts from a specific category and paginate them. Here is the code if ( is_front_page() ) { $paged = get_query_var( '...
0
votes
1answer
14 views

where is wordpress search pagination

Where is wordpress search pagination? I used this in my search page: <?php echo paginate_links(); ?> It returns pagination, but I want to add bootstrap pagination to this, but I can't find it....
0
votes
1answer
416 views

Pagination on custom post types

Pagination works in the front page but in custom post type page it doesn't appear. Post type: add_action('init', 'portfolio_register'); function portfolio_register() { $args = array( ...
0
votes
0answers
28 views

Pagination 301 redirecting page 1

I am using the paginate_links function in a custom theme to generate the pagination links which is working fine however the page 1 link which is /blog/page/1 gets a 301 redirect to /blog/. This is ...
0
votes
1answer
2k views

How to add Pagination to foreach loop to page

I create a page in wordpress series.php and here it the code where I block! <?php $categories=get_categories( array( 'parent' => $cat->cat_ID) ); ...
0
votes
0answers
25 views

Split post template in two pages

I need to split my single post template in two pages using pagination . It's very simple in post editor by <!--nextpage--> But i want to do it in single.php file So the page content in first ...
1
vote
2answers
1k views

The pagination on index.php doesn't work on a first page

I have index.php with a pagination. The permalink settings is plain permalinks. I have a correct pagination view when I open a page /?paged=2 but if I open just index.php I have all posts without ...
1
vote
2answers
2k views

Archive pagination not working

I am trying to add pagination for my Archive. I want to show 12 posts per page and then show the 'next' / 'previous' buttons. When I manually change the value of the $paged variable, the 1 into a 2 ...
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?
1
vote
1answer
858 views

Pagination in pages (not posts) with the twentythirteen theme?

I wrote a very long page with a lot of content and would like to add a pagination to make it more readable. I added in the texteditor several <!–-nextpage–-> but it doesn't create any pagination,...
0
votes
1answer
15 views

how to handle multiple ajax wordpress queries?

I am having a problem with two ajax action. I have a post grid it has a frontend sorting "ASC" and "DESC". So if I click on "DESC" it changes the WordPress query arg "order by" to "DESC". It works. ...
3
votes
1answer
2k views

paginate_links ignore my format

I need the pagination liks to have the url, like: current_url?p-page=1 current_url?p-page=2 current_url?p-page=3 And so.. The reason I need this is because I have other params in the page. the ...
1
vote
1answer
462 views

Pagination links missing for first link (1) and previous button? How to get pagination links to work?

I'm trying to add pagination to my WordPress query using pagination_links() however I am getting no links returned for my page 1 links and previous link? Other links are adding the paged query string ...
0
votes
1answer
1k views

Pagination url for page template

I am creating a page template in WordPress to show all my posts. But i have a problem with pagination. I have a page url like below: http://localhost/sdd/video "video" is my page slug. And the ...
0
votes
1answer
979 views

Pagination for user list

I am showing all the users by using the get_user() function. But I need to paginate the results. I tried a lot, but didn't succeed. Here is the code, which doesn't work as expected: $args = array( '...
0
votes
2answers
1k views

the_posts_navigation is not working

Unfortunately, the_posts_navigation() function is not working for me. When I click on 'Older Posts' it's showing '404 page I don't know why my code is not working. Here is the code - <div class=...
0
votes
1answer
2k views

How to list custom post types on a custom post type page?

I would like to know why my custom post type pages do not accept paged pages? On a normal page I can list custom post types without problems, but on a custom post type page, it seems impossible. I ...
0
votes
1answer
1k views

Woocommerce pagination not working in custom loop WP_Query

Please help with pagination I have code that works fine (functions.php) function projects_custom_number_of_posts( $query ) { $query->set( 'posts_per_page', 2 ); return; } add_action( '...
0
votes
1answer
3k views

Using WP_List_Table and search_box(): How to Paginate the Found Search Results When Sending by Method «Post»?

I am using a custom WP_List_Table-Class in order to display a custom table with hotels in the dashboard. I can skip through the pages with the pagination on the top right as expected. The search form ...
0
votes
0answers
21 views

Pagination indication “/page/2/” are removed from url and auto redirect without /page/2/ : 301 redirection

I tried to do pagination in my custom template page. So I did a custom query, and put for having pagination. The problem is when i tried to enter to http://mywebsite.com/slug-custom-page/page/2/ ...
1
vote
4answers
1k views

Pagination: /tags/tag_name/?paged=2 gives a 404 error

I need to paginate an archive page. Pagination works perfectly fine for everything except tag/category archives. Basically if I use /tags/tag_name/?paged=2 it gives me a 404 error. But if I use /tags/...
0
votes
2answers
440 views

Custom Post Type canonical link / pagination redirecting to root

I have inherited an existing site and have recently been asked to make some changes. They have 'renamed' the default post as 'latest-news' using this 'my_new_default_post_type': <?php add_action(...
1
vote
1answer
162 views

Paging not working in category.php

Pagination on the category page does not work. I use a theme called "Bridge", and the permalink is set to "/ blog /% category% /% postname% /". My category page is in the following url: http://...
0
votes
3answers
2k views

Pagination of custom post type leads to 404 error

This seems to be common issue, and there exist a lot of posts about this issue but none of them works for me. I have a custom post type (portfolio) with a page pagination. $paged = (get_query_var('...
0
votes
1answer
996 views

Custom post type archive pagination with HTML5Blank theme?

Can't get the pagination to work. Here's my archive-work.php: <?php get_header(); ?> <main role="main"> <!-- section --> <section> <h1>&...
0
votes
0answers
13 views

WordPress custom post type pagination 404 Error

I am trying to paginate in WordPress custom post type. Pagination seems ok in the front end but getting 404 error when clicking on Page: 2, 3, 4 My code in function.php page: function ...
0
votes
1answer
2k views

Search not showing all results

EDIT: So I've done some troubleshooting and it seems my theme isn't showing woocommerce search results. The 2017 theme does so I am trying to figure out what my theme is missing. I suspect something ...
0
votes
1answer
2k views

Pagination in custom post type page template

I made a query for my custom post type "websites". I'm trying to get the pagination working but I'm running in some errors. I think the whole code is ok, only the part just before the end while tags. ...
0
votes
0answers
12 views

Pagination inside wp-ajax not working and return 404

I have an issue when using wp ajax. my WP Query for Custom Post type not working with paginate links I have change base URL but /page/2 return 404 I use Custom post type and custom taxonomy for my ...
1
vote
4answers
488 views

Pagination is not working in custom post type

I want to add pagination in single page of custom post type. This is the code for single page (custom post type): <?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; $args ...
1
vote
1answer
37 views

Wordpress pagination not working using WP_Query

Ok I know there are a lot posts on this already but I'm not able to find what is wrong with my code. Because pagination is still not working. The weird thing is the same code and template works fine ...
1
vote
2answers
3k views

Show next / previous text (button) all the time

As you see this pagination. there is no "pre" button or text. because there is no previous posts. ( http://prntscr.com/bmuui2 ) However I want to show the buttons (previous / next ) even if there is ...