The above code changes the post title, and it works fine enough. But what is the ’proper’ way to update post category from $post_object using the above ’wp_update_post’ -array?
$post_object gets data from custom post type ’peoples’ and that post type has the following ACF fields:
birthday, date picker
*additional information from taxonomy field ‘group’ settings:
Field Type: Select
Allow null: no
Load & Save Terms to Post: checked
Return Value: checked Term ID
Conditional Logic: no
I can get the he category name and id to the post from the $post_object and save it using $variable in the post content itself, but i haven’t been able to change the post category ’automatically’ during the save process. Is this possible?
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp