Contents
What is ACF taxonomy?
The Advanced Custom Fields plugin can be used to add custom fields to taxonomy terms. Building on this, the following examples demonstrates how to load a custom field value from a selected term value.
How do I find my taxonomy name in WordPress?
If you check $wp_query->get_queried_object() on a taxonomy page, this will contain the term object, which has a reference to the taxonomy identifier (in my example it’s replymc_people ). Pass this to get_taxonomy , and you get the full taxonomy object.
How to add custom fields in ACF taxonomy?
This would imply that your field type setting is radio button or select. This example demonstrates how to get and loop over multiple selected term objects. This would imply that your field type setting is checkbox or multi-select. The Advanced Custom Fields plugin can be used to add custom fields to taxonomy terms.
How to add fields to a taxonomy term in WordPress?
For example, if you have assigned your field group to post categories, navigate to Posts > Categories. Customizing the HTML for a WordPress Taxonomy Term can be easily done by editing the category.php, tag.php or taxonomy.php file in your theme.
Can a taxonomy field return more than one object?
The Taxonomy field will return one or more values (objects or IDs) depending on the Return Value setting. Below are some examples of how you can use this data. This example demonstrates how to get and display a single term object. This would imply that your field type setting is radio button or select.
How to use the taxonomy field in Excel?
The taxonomy field will return 1 or more values (objects or IDs) depending on the field type setting. Below are some examples of how you can use this data. This example shows how to get and display a single term object. This would imply that your field type setting is radio button or select.