Skip Navigation

[Résolu] Is it possible to check / set condition on post count in view?

This support ticket is created Il y a 5 années et 4 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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+01:00)

Marqué : ,

This topic contains 1 réponse, has 2 voix.

Last updated by Nigel Il y a 5 années et 4 mois.

Assisted by: Nigel.

Auteur
Publications
#1167570

Hi i would like to add a conditional output in terms of the post count. In a view I would like to add different content if there is only one result.... is this possible?

#1167744

Nigel
Supporter

Languages: Anglais (English ) Espagnol (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

That should be possible, using the wpv-found-count in your wpv-conditional shortcode (see https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-found-count).

Is that all you need, or do you need a demonstration?

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.