Skip Navigation

[Resolved] Pagination empty output

This support ticket is created 5 years, 11 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 3 replies, has 2 voices.

Last updated by Luo Yang 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1159037

Hi, I'm having a problem with pagination. I've inserted default Pagination Controls following doc instructions (https://toolset.com/documentation/user-guides/views-pagination/), but there isn't any output if I add wpv-pager-nav-links shortcode. If I add wpv-pager-prev-page and wpv-pager-next-page I can see the two links, but they don't work. The items loop displays correctly the number of items I set on pagination settings.

I've also some search filters on the same view and I display search and results by two shortcodes in different positions on the same page.

I tested this on a staging site where I deactivated all the other plugins and I activated WP default theme.

1) can you help me?

2) should I add pager inside or otside [wpv-filter-controls]? It seems they update whan I select some filter on search.

3) What is the usage of [wpv-pagination][/wpv-pagination]?

4) How can I display search at the top of the page and pager at the bottom?

thanks

#1159364

Hi,

How do you setup the view? can you take a screnshot for it?
The [wpv-pager-prev-page] and [wpv-pager-next-page] shortcodes work for normal view.

if it is a Views wordpress archive, you will need to other pagination shortcodes:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-archive-nav-links

Q1) can you help me?
Yes, of course

Q2) should I add pager inside or outside [wpv-filter-controls]? It seems they update whan I select some filter on search.
Yes, it is possible.

Q3) What is the usage of [wpv-pagination][/wpv-pagination]?
See our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-153234
This shortcode displays the pagination controls. The pagination controls will only be displayed if there are multiple pages to display

Q4) How can I display search at the top of the page and pager at the bottom?
You just need to put the pagination shortcodes in the bottom of section "Loop Editor", before the shortcode:

[wpv-layout-end]

It should be able to work too.

#1159592
code1.PNG

Thnaks for the reply. I add a screenshot.

The output of the pager div is just empty:

<div class="nw-pager">

</div>

It is like there are not more pages, but I've added this code:

Showing [wpv-items-count] posts of [wpv-found-count] posts found.

And the output is:

Showing 6 posts of 41 posts found.

#1159605

It is abnormal, please try these:
1) Make sure you are using the latest version of Toolset plugins, you are using Toolset Views 2.6.4.2, but the latest version is 2.7, you can download them here:
https://toolset.com/account/downloads/

2) Follow our document to setup the view and paginations:
https://toolset.com/documentation/user-guides/views-pagination/

3) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again

4) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/