I’m trying to append a Featured Video field group to the existing Featured Image meta box. I created the field group and set the Active status to false so that it won’t render. I then added the following function to render the acf_form in the Featured Image meta box:
This does render the field group to the meta box, and it also passes the data along with the form submission… but it doesn’t save the meta value to the post. I’m assuming that I need to tell WordPress to look for that form field and update the meta accordingly, I’m just not sure exactly where to do that.
There are too many things that could be causing the values not to be saved correctly.
1) acf_form() event when used in the admin, requires that acf_form_head() is called.
2) values submitted using acf_form() are usually processed differently then how acf normally does this for admin submission.
Why not use acf to hide the “feature image” meta box and create your own using an ACF field group?
Viewing 2 posts - 1 through 2 (of 2 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