Skip Navigation

[Resolved] Pagination not working in conditional view

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by katjaL 1 year, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2540321

I try to add pagination into view (legacy) that is shown in a bootstrap tab content only when there are results.
The condition to show only with results was discussed here: https://toolset.com/forums/topic/wpv-conditional-with-wpcf-view/

I've added the pagination shortcode in very many places, but it doesn't show. I have enabled the "Disable the wrapping DIV around the View" and if I disable it, the view doesn't show at all.

#2540435

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

If you use the setting "Disable the wrapping DIV around the View" then obviously the pagination will not work. Please check the following screenshot: hidden link

Normally, the View has a wrapper DIV which includes IDs and classes required for AJAX updates and pagination. If you want to show the View inline with text, you can disable this DIV, but you will not be able to use some of the functionality that Views offer.

So in your case you should either create two view one that you should use to check conditional statement where the setting " "Disable the wrapping DIV around the View" is checked and another view that you should use to display the content and pagination.

#2540565

Yes Minesh that was it of course! My issue is resolved now. Thank you very much!