Skip Navigation

[Resolved] Pagination controls for first page and last page

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to add first page / last page links in my pagination controls.

Solution: There is a First / Last page text link option when you use the Pagination Controls button to insert pagination in your View or Archive. You can see in the screenshot here the location of the controls in the popup, underneath the "Navigation controls using links" checkbox. If you have already inserted the pagination shortcodes, you can add the shortcode attribute first_last_links with a value of true, as shown in the following code snippet:

[wpv-pager-nav-links output="bootstrap" first_last_links="true" text_for_first_link="START" text_for_last_link="END"]

Relevant Documentation:
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-pager-nav-links

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by davidL-7 4 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1547449

Tell us what you are trying to do?

Hi, I'm creating a custom search that will typically return a large number of results, so we're using pagination to break the result set into multiple pages. In addition to having "Previous" and "Next" pagination controls, the client is asking to have "First" and "Last" controls to allow the person browsing the search results to skip to the very last page of the results, or to the very first page (so, for example, if a search returns 20 pages of results, the user can click on "Last" to go to page 20, rather than having to click "Next" 19 times.

I've looked through all the documentation, but I can't find a way to do this in Toolset... am I missing something?

Thanks!

What is the link to your site?

hidden link

#1547511

Hello, there is a First / Last page text link option when you use the Pagination Controls button to insert pagination in your View or Archive. You can see in the screenshot here the location of the controls in the popup, underneath the "Navigation controls using links" checkbox. If you have already inserted the pagination shortcodes, you can add the shortcode attribute first_last_links with a value of true, as shown in the following code snippet:

[wpv-pager-nav-links output="bootstrap" first_last_links="true" text_for_first_link="START" text_for_last_link="END"]

Let me know if you have questions about implementing this link-based navigation.

#1548683

Thanks Chris. I had already added pagination, so just wasn't seeing it because of the previous configuration settings. Thanks again for the support.