Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 4 years ago.
Improve this questionGiven: 1) Advanced Custom Fields. A select field with predefined values. 2) Custom taxonomy of the custom post type.
Q: Can I link a selection in the ACF field for automatic taxonomy assignment? For example: if I select "1" in the ACF field, then "1" will be selected automatically in the taxonomy when updating the post.
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 4 years ago.
Improve this questionGiven: 1) Advanced Custom Fields. A select field with predefined values. 2) Custom taxonomy of the custom post type.
Q: Can I link a selection in the ACF field for automatic taxonomy assignment? For example: if I select "1" in the ACF field, then "1" will be selected automatically in the taxonomy when updating the post.
Share Improve this question asked Apr 8, 2020 at 7:24 A. MatseshaA. Matsesha 31 bronze badge1 Answer
Reset to default 0Simply use the taxonomy field.
https://www.advancedcustomfields/resources/taxonomy/
You can define which taxonomy to handle and how the appearance should work...
Which is awesome, because you optionally can use radio
or select
if you don't want the user to set more than one taxonomy term per post.
Make sure you always set this to true if you want it work as you have described.
You can then define in your custom taxonomy code args 'show_ui' => false
. This will hide the default taxonomy metabox, so you only your acf taxonomy metabox can be used.