Sauter la navigation

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

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années et 6 mois. 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)

Marqué : ,

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par johnB-37 Il y a 6 années et 6 mois.

Assisté par: Shane.

Auteur
Publications
#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: lien caché
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: lien caché

#917989

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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

Les langues: Anglais (English )

Fuseau horaire: 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.