Problem:
How to output nothing from a View if there are no results?
Solution:
It's not necessary to use a conditional shortcode, you can simply remove everything in the wpv-no-items-found section of the View output.
If you have a heading or similar that you want to precede the View results and only show this when there are results to show, you can move the heading inside the View output section, within the wpv-items-found section but outside of the wpv-loop tags (otherwise it would be repeated for every result).
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 |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 2 replies, has 2 voices.
Last updated by 5 years, 5 months ago.
Assisted by: Nigel.