Problem:
Build a conditional display based on wether if the view has results or not.
Solution:
When you edit a post view, you can display the post found count with shortcode [wpv-found-count]
https://wp-types.com/documentation/user-guides/views-shortcodes/#wpv-found-count
In section "Loop Editor", there are two sets of shortcodes:
[wpv-items-found] ... [/wpv-items-found]
[wpv-no-items-found] ... [/wpv-no-items-found]
You can use them to display different results "based on wether if the view has results or not".
Relevant Documentation:
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-items-found
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-no-items-found
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 3 replies, has 2 voices.
Last updated by 4 years, 9 months ago.
Assisted by: Luo Yang.