I’ve got a Custom Post Type (Videos) and a custom taxonomy that belongs to it with 2 types: Film and Video.
Film and Video categories have got their own metabox. I did setup each to appear when a CPT = Videos and Taxonomy = Film (or Video). However, the appropriate metabox appears after a Videos post is save with one of the taxonomy values.
Is there a way to display metabox dynamically straight after a taxonomy value was selected without the need to first save the post.
I would hugely appreciate any tips.
Thank you Elliot,
I realised that I used a custom way of creating a meta box for displaying available taxonomy terms – I was displaying it as bullet list (instead of native check list), so that only one option could be selected.
This broke AJAX for displaying ACF meta box when a specific taxonomy term is selected.
Is there a way to allow only one taxonomy term to be selected and display its ACF meta box dynamically?
Thank you in advance,
I’m was writing new forum thread, but when start selecting “tags”, found this post 🙂
@dashaluna, means “displaying it as bullet list” – taxonomy field with radio button type..
so, i have same problem..
I have three ACF field groups.
First – field group “general”:
-taxonomy field, field type – radio button, “Load & Save Terms to Post” checked.
And two more – field groups “child1” and “child2”:
-and group options, “Show this field group if” : post taxonomy -> equal -> specified taxonomy element.
According to my configuration, this must work thus:
When editing/creating post, and selecting taxonomy field value by radio button, ACF, according on my group options for “child1” and “child2” field groups, it must show me the field group on, which approaches under the condition..
But this does not work since must..
It seems to me that the problem in Load & Save Terms to Post with radio button taxonomy field
If i go to “general” field group options & change taxonomy field type from radio button to checkbox – it’s all will be work fine.
so that it is possible with this to do?)
The topic ‘Displaying metabox dynamically on choosing a taxonomy term’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.