Skip Navigation

[Resolved] Custom field dynamic content

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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 8 months ago.

Assisted by: Waqar.

Author
Posts
#2668649
explain.jpg

Hi,

I have create a publication type Offre with some taxonomies ( shared with post ).
I have create a fields group for this publication
I want to create in this group et select field with content values from taxonomie terms.
In the back-office, the user should select a value, not enter a value.
Is it possible ?
How ?
Thank you

#2668791

Hi,

Thank you for contacting us and I'd be happy to assist.

To populate the select type custom field's options dynamically from the terms in a taxonomy, you'll need a custom function attached to the 'wpt_field_options' filter:
https://toolset.com/documentation/programmer-reference/types-api-filters/#wpt_field_options

To get the list of available terms in a taxonomy, you can use the 'get_terms' function:
https://developer.wordpress.org/reference/functions/get_terms/

I hope this helps and for more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

regards,
Waqar

#2669405

Perfect 🙂
I have an another question about content template.

For my publication type "Appel d'offre" i create a content template, but in edit mode i don't have access to Layout Panel to hide header part and featured image.