admin管理员组文章数量:1420625
I have a custom taxonomy that I would like to update on posts using a PHP function. An example of what I am trying to achieve is the following:
Array
(
[0] => WP_Term Object
(
[term_id] => 183
[name] => Spotlight
[slug] => spotlight
[term_group] => 0
[term_taxonomy_id] => 183
[taxonomy] => deals_tiers
[description] =>
[parent] => 0
[count] => 5
[filter] => raw
[term_order] => 0
)
)
I am trying to set this on posts that have no data in these fields. This can be achieved in the backend by checking the "Spotlight" checkbox but I would like to do this via a function. Any help would be greatly appreciated.
本文标签: functionsI am trying to set post terms to a custom taxonomy
版权声明:本文标题:functions - I am trying to set post terms to a custom taxonomy 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745329578a2653748.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论