最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Connect ACF field + custom taxonomy

programmeradmin1浏览0评论
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 question

Given: 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 question

Given: 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 badge
Add a comment  | 

1 Answer 1

Reset to default 0

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论