Hey @e-crespo
Is it possible that you’re not calling acf_form_head() in your PHP somewhere prior to any markup being rendered? It’s easy to forget to do this if you’re bringing your actual acf_form() in via AJAX.
In the end, we’re building our own front-end forms that post manually to ACF in the PHP handlers as acf_form_head wasn’t playing particularly nicely with some other stuff that we had going on.
Ah-ha! I’ve discovered that this is a problem with WPML – if WPML is enabled, ACF neither reads from JSON, nor offers the ‘Sync Available’ option. @elliot and team, would you like to look at this further, or should I raise it with WPML?
For anyone else with this problem, you can temporarily disable WPML, do a sync and then re-enable it.
Cheers,
Andrew
Actually, I guess more to the point, I’d like to replicate the AJAX upload image functionality that Eliot has used in acf_form so that I can AJAX upload an image and then associate that image’s ID with an ACF Image field on POST.
Niche!
Hi @elliot,
That’s great—–thanks for sorting out.
Cheers
a.
Hi @acf-support,
Thanks for the tips. That’s grand, I’ll try using the name tomorrow. It should solve the problem.
In a way, glad to know that it wasn’t just me being careless.
Thanks for your help.
andrew
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.