Navigation überspringen

[Gelöst] Dynamically assigned content template based on custom field

This support ticket is created vor 2 Jahren, 10 Monaten. 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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 2 Jahren, 10 Monaten.

Assistiert von: Minesh.

Author
Artikel
#2341163

Hi

Is it possible to assign a content template based on a custom field?

What I would like to do is if custom field "expire-but-live" is set to 1 then assign the post content template "87559".

Is this possible?

Thanks.

#2341177

Minesh
Supporter

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

Toolset already offers the feature using which you can display the content template conditionally. Please check the following Doc about how you can set a conditional template:
- https://toolset.com/course-lesson/assigning-templates-to-posts-conditionally/