Skip Navigation

[Resolved] Archive + Single page conditional display

This support ticket is created 3 years, 3 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.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by fleurP 3 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#2155267

I need to have certain custom fields information conditionally displayed on the CPT archive listings page based on custom selection field choices. As example, if a certain selection (dropdown) custom field value is selected for the CPT it will only display a title and link to a downloadable document in the CPT archive listings.

If a alternative value in the CPT custom selection (dropown) field is selected, the title and a button to link to the single page view must be available with

#2155351

This sounds like an ideal case for using conditional blocks in your single template and archive template designs. You can use conditional blocks to test the value of custom fields. Any blocks you drag into the conditional block will be displayed when the conditions are met. If the conditions are not met, the blocks will not be displayed. You can use conditional blocks in Content Templates or in WordPress Archives.
https://toolset.com/course-lesson/using-toolset-conditional-block/

#2156855

My issue is resolved now. Thank you!