Skip Navigation

[Resolved] Initial page with pagination and search box

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

Problem:

(1) Is there anyway to introduce pagination to the initial load (i.e. before the user searches for anything)?

(2) Is there anyway to bring up the search box without loading all the records first? So the user only sees record when they run the search for the first time?

Solution:

1) Yes, it is possible to add pagination to Views search result, please check our document:
https://toolset.com/documentation/user-guides/views-pagination/
Views Pagination – Split Content into Pages

2) That is possible within Views plugin, you can display the search form without search result in page A, after user submit the form, redirect him to another page, and display the search form and search result, see our document:

https://toolset.com/documentation/user-guides/front-page-filters/#4-1-adding-the-custom-search-form-to-a-page-or-widget

And screenshot:

https://cdn.toolset.com/wp-content/uploads/2012/06/choose-what-part-of-the-custom-search-to-display.jpg?x16119

Relevant Documentation:

https://toolset.com/documentation/user-guides/front-page-filters/#4-1-adding-the-custom-search-form-to-a-page-or-widget

https://toolset.com/documentation/user-guides/views-pagination/

This support ticket is created 6 years 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by davidR-33 6 years ago.

Assisted by: Luo Yang.

Author
Posts
#1171150

Hi Luo

Thank you. Firstly an apology, during the course of the day yesterday I changed the URL to be hidden link . I should've updated the issue, sorry about that.

In terms of the problem - you've said that if you run the search, it shows the featured images as specified. Is there no way to have them show as specified on initial load? (Note - at the moment I've put in a workaround where I've added a 100x100 pixel image to the CPT and am now showing that in the loop so it loads as 100x100 from initial load).

I have two additional questions that have come up as I've continued development...
(1) Is there anyway to introduce pagination to the initial load (i.e. before the user searches for anything)?
(2) Is there anyway to bring up the search box without loading all the records first? So the user only sees record when they run the search for the first time?

Thank you
David

#1171153

Dear David,

Q1) Is there anyway to introduce pagination to the initial load (i.e. before the user searches for anything)?
Yes, it is possible to add pagination to Views search result, please check our document:
https://toolset.com/documentation/user-guides/views-pagination/
Views Pagination – Split Content into Pages

Q2) Is there anyway to bring up the search box without loading all the records first? So the user only sees record when they run the search for the first time?
That is possible within Views plugin, you can display the search form without search result in page A, after user submit the form, redirect him to another page, and display the search form and search result, see our document:
https://toolset.com/documentation/user-guides/front-page-filters/#4-1-adding-the-custom-search-form-to-a-page-or-widget

And screenshot:
hidden link

#1171381

My issue is resolved now. Thank you!