Skip Navigation

[Resolved] How do I stop a view output from appearing if there are no results

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user's view is displaying "No Results Found" but he doesn't want this to display when the view is empty.

Solution:

This can actually be removed from your view by deleting the text from the view loop output section.

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by johnB-37 6 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#917972

HI there,
I have a custom post type called Citations. There are about 90 citations and some of them are connected via taxonomy.
For example, on this page: hidden link
There are two "related cases" in the green box.
However not every citation has a related citation, so for those pages I would like to not display the green box at all. An example is this page: hidden link

#917989

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi John,

Thank you for contacting our support forum.

Is it that you want to remove the text "No items found "

Please let me know.
Thanks,
Shane

#918000

Hi Shane,
Ideally what I would like to remove is the entire green box, not just the text.

Thanks!

#918005

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi John,

The entire green box I assume is the view itself, which isn't possible if the view is on the page.

However you can remove the text by deleting it from the view in the loop output section.

Thanks,
Shane

#918109

Thanks Shane.
I suppose I can display the results less prominently so that the no results area isn't as obvious.