Hello! I'd like to know how can I do pagination with Search Module. Sometimes the search returns a long list of articles and, in this cases, pagination would be very handy.
Thank's in advance!
Walter
[Solved] Search Module Pagination
-
- Forum Members
- Posts: 31
- Joined: Tue Oct 06, 2015 7:55 pm
[Solved] Search Module Pagination
Last edited by waltertakashi on Sat Oct 17, 2015 1:07 pm, edited 1 time in total.
Re: Search Module Pagination
I don't recall if there is a template based pagination available. You might try using {get_template_vars} in the search template being used and see if there are vars set for pagination. If not, you might consider a javascript solution. For example, https://github.com/jlafitte/jquery-quick-pagination
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
-
- Forum Members
- Posts: 31
- Joined: Tue Oct 06, 2015 7:55 pm
Re: Search Module Pagination
Hi Johnny, I checked the template vars but seems that it doesn't have pagination variables set.JohnnyB wrote:I don't recall if there is a template based pagination available. You might try using {get_template_vars} in the search template being used and see if there are vars set for pagination. If not, you might consider a javascript solution. For example, https://github.com/jlafitte/jquery-quick-pagination
I'll be checking the javascript solution that you suggested.
Thank you!
-
- Forum Members
- Posts: 31
- Joined: Tue Oct 06, 2015 7:55 pm
Re: Search Module Pagination
@JohnnyB, thank you very much! I used the 'quick pagination' plugin and is working perfectly.
The only "problem" is that the content is not loaded on the fly when clicking the pagination button, which could save some bandwidth and server processing. But at least I managed to organize the results.
Thank you!
The only "problem" is that the content is not loaded on the fly when clicking the pagination button, which could save some bandwidth and server processing. But at least I managed to organize the results.
Thank you!