Navigation überspringen

[Gelöst] Archive + Single page conditional display

This support ticket is created vor 4 years. 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
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 - -

Zeitzone des Unterstützers: America/New_York (GMT-04:00)

Dieses Thema enthält 2 Antworten, hat 2 voices.

Zuletzt aktualisiert von fleurP vor 4 years.

Assistiert von: Christian Cox.

Author
Artikel
#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!