Skip Navigation

[Resolved] conditional logic – show text1 in location and text2 in sub-location

This support ticket is created 5 years, 11 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1172907

Tell us what you are trying to do?
conditional logic - show text1 in location and text2 in sub-location + hide text2 when text1 is showing and vice versa.
like in location ch@ndigarh show only text1. in d!vorce l@wyers in Chandig@rh show only text2.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1172915

Hello,

Same as your previous post, I suggest you try with [wpv-conditional] shortcode, to check if current post has specific term, then display correspond text as you want.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/displaying-taxonomies-conditionally/#specific