Similar to StormTrooper’s solution – simply adding this to my theme’s functions.php file did the trick. (Not sure if it is the best / right way.)
function my_acf_save_post( $post_id )
{
wp_redirect(get_permalink($post_id)); exit;
}
add_action('acf/save_post', 'my_acf_save_post', 20);
I am also struggling with this and would really appreciate some help… Thanks.
I have exactly the same problem.
I have solved the problem with the library access with some custom code.
It would really help if you can add the solution here for others who are struggling with the same problem…
Hi,
I am using ACF 5 & the CPT-onomies plugin. I am having the same problem where the values in my ACF taxonomy field wont save if the taxonomy is a CPT-onomies taxonomy field…
Any solutions?
Thanks! After struggling a few hours with this I think it would be a good idea if the Docs display the stable version by default.. I did not notice the dropdown 🙂
I am having the same problem when trying to show a form for creating a new post. I only see the submission button, nothing else. Editing a specific form works.
I have copied the code exactly as is shown on this page: http://www.advancedcustomfields.com/resources/functions/acf_form/
I get this error:
Notice: Undefined index: new_post in /wp-content/plugins/advanced-custom-fields/core/api.php on line 1185 Warning: array_merge(): Argument #1 is not an array in /wp-content/plugins/advanced-custom-fields/core/api.php on line 1185
Update:
Using the fix in this post – http://www.advancedcustomfields.com/resources/functions/acf_form/ the error message is removed, but my form is still not showing. Any ideas?
UPDATE 2!
I was using the documentation for V5… So I had the wrong code!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.