Any update on this?
Actually, this JSON feature that I didn’t know about seems to be MUCH better.
https://www.advancedcustomfields.com/resources/local-json/
Actually, checking if someone is logged in before calling acf_form_head();
took care of all of those and more.
<?php
if(is_user_logged_in()):
if(class_exists('acf')):
acf_form_head();
endif;
endif;
?>
Appears to have been an issue with jQuery – got it enqueued properly and no more issue. 🙂
I’m sorry I forgot to include the error when I click on one.
Uncaught TypeError: a.ajax is not a function
at Object.<anonymous> (wp-util.min.js?ver=4.9.8:1)
at Function.Deferred (jquery-3.3.1.slim.min.js:2)
at Function.send [as ajax] (wp-util.min.js?ver=4.9.8:1)
at n.sync (media-models.min.js?ver=4.9.8:1)
at n.fetch (backbone.min.js?ver=1.2.3:1)
at n.more (media-models.min.js?ver=4.9.8:1)
at n.more (media-models.min.js?ver=4.9.8:1)
at n.prepare (media-views.min.js?ver=4.9.8:3)
at n.render (wp-backbone.min.js?ver=4.9.8:1)
at wp.Backbone.Subviews.<anonymous> (wp-backbone.min.js?ver=4.9.8:1)
Ok, cool. Would the acf/save_post filter only affect option pages? Or will it do all post types? Ideally I’m looking to have any post type (pages, posts, etc) that are not acf option pages to just re-direct on publish back to the post ID (which is what I have above) and the acf option pages to simply just redirect back to the home url.
Hi John,
I’m not trying to do it on a per options page basis, but rather for all options pages. I don’t know if the options pages is considered a custom post type of sorts where I would be able to set that custom post type to redirect to the home page on save.
These forums are hoppin! 😐
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.