Navigation überspringen

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

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 6 Jahren, 6 Monaten. 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)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von johnB-37 vor 6 Jahren, 6 Monaten.

Assistiert von: Shane.

Author
Artikel
#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: versteckter 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: versteckter Link

#917989

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: 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

Sprachen: Englisch (English )

Zeitzone: 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.