Problem:
How to keep the Views pagination Links (previous and next) when you reach the first or last page in the Loop?
Solution:
You can use this HTML Conditional code:
-For the first page:
[wpv-conditional if="( '[wpv-pager-current-page]' eq '1' )"]link[/wpv-conditional]
-For the last page:
[wpv-conditional if="( '[wpv-pager-current-page]' eq '[wpv-pager-total-pages]' )"]link[/wpv-conditional]
This will display a Custom Link when the Views pagination is not deployed (on first and last page)
Make sure the Link you insert, is actually performing some "sensed" action. It should as example present a nice message that there is no more content on the loop.
Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
https://toolset.com/documentation/user-guides/views-pagination/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 2 replies, has 2 voices.
Last updated by Angele 8 years, 1 month ago.
Assisted by: Beda.