Skip Navigation

[Resolved] Trying to set up conditionals for taxonomy

This support ticket is created 3 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by nicoleR-3 3 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#2121623
Screenshot 2021-07-21 at 16-58-24 Edit Page ‹ Dressage Connect — WordPress.png
Screenshot 2021-07-21 at 16-58-42 Trainer Directory - Dressage Connect.png

Tell us what you are trying to do?
I am trying to set up some conditional content based on what is selected for a particular taxonomy. The taxonomy is called 'USDF Medal' and the three options are Gold, Silver, and Bronze. I want custom content to show up for each of these levels (and also to arrange them as Gold, Silver, and Bronze instead of alphabetically, which is WordPress default). I understand that the block editor does not offer taxonomy as an option, so I am trying unsuccessfully to set up the conditions manually.

This is what my manual condition statement is:
( ( '[wpv-post-field name="usdf-medal" ]' eq 'Gold' ) ) and then I currently am just using a text block that says "Gold" (though it will likely change to an image). Attached are screenshots of what I have created in the block editor and what I see on the front end.

Is there any documentation that you are following?
https://toolset.com/forums/topic/conditional-display-of-form-inputs-based-on-taxonomy/

Is there a similar example that we can see?

What is the link to your site?
Site under development is here: hidden link

#2121917

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I understand that the block editor does not offer taxonomy as an option, so I am trying unsuccessfully to set up the conditions manually.
==>
That is not true. You can use conditional block to check post taxonomy.

Once you add conditional block, you should select option "Post Data". Please check the following screenshot:
- hidden link

#2121955

Ah. I did not see that. My issue is resolved now. Thank you!