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
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
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.