saber-plugin-query-posts: Pagination 'next' and 'prev' links seems to be incorrect
See original GitHub issueBug report
Steps to reproduce
Fresh install Saber, install and followed saber-plugin-query-posts readme to make a blog post with pagination.
What is expected?
On the first paginated page, hasNext
should be true
, hasPrev
should be false
, same for nextLink
and prevLink
What is actually happening?
hasNext
and hasPrev
seems to be reversed
First page
Second page
Other relevant information
- Result of running
saber -v
: latest - Browser version (optional): Chromium version 78.0.3904.87 (Official Build) Arch Linux (64-bit)
- Is Saber a global or local install? Local
- Which package manager did you use for the install? NPM
- Does this issue occur when all plugins are disabled? No
Awesome Saber! ⚡
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
saber.js - Bountysource
saber -plugin-query-posts: Pagination 'next' and 'prev' links seems to be incorrect $ 0 ... Created 2 years ago in saberland/saber with 5 comments....
Read more >No pagination but prev and next link in meta - WordPress.org
I have a question about the yoast pagination. I added a new wp_query like this: $args = array( 'post_type' => 'mycpt', 'posts_per_page' =>...
Read more >pagination - Wordpress next_posts_link Linking to wrong URL
Here is my idea of creating links to the next and previous pages in your custom query. If you look closely, you will...
Read more >Next / previous posts link doesn't show up with Posts 2 Posts
From next_posts_link : Add the $max_pages parameter to the next_posts_link() function when querying the loop with WP_Query.
Read more >What site owners should know about Google's August 2019 ...
Core updates and reassessing content. There's nothing wrong with pages that may perform less well in a core update. They haven't violated our...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Maybe we should reverse that, it seems everyone else is using next for older stuff 😅
I think it’s showing the latest posts first, therefore
hasPrev
would mean has previous posts? As you can see, The order of the posts isTherefore it’s a question of semantics and not really a bug. You could rename the
Prev Page
link to readOlder posts
instead, and the behaviour would be correct, right?