Just bumping this issue – to clarify, currently we’re having to sync the ACF settings so they can be edited, delete the file on local, make changes, rexport a new JSON file, rename and put where the old file was, push back to repo.
With the last update we were able to just edit and save the file and it would automatically override the JSON file which we could just push straight to our repo.
We have JSON files in two places ( some in our theme and some in a plugin which are universally shared settings for all our sites).
Actually ignore my first question about sync – that was due to incorrect timestamp.
If it helps, I just stopped using YARPP as I hadn’t seen any updates for ages and was running into other issues.
We now use the premium plugin Related Posts for WordPress Premium by Never5.
I highly recommend it, it’s been a dramatic improvement:
http://www.relatedpostsforwp.com/
EDIT: Just realised this is a necro’d thread.
Seeing a very similar problem to the one above.
ACF content on preview mode when a new article is created doesn’t appear until the user triggers a state change (from draft to published or pending review).
Seems to be a relative new issue.
Actually a little more investigation reveals it’s not an update, but importing a file created in the last version with select fields.
When I import the file the selects do not come in (they’re just blank)
This new update wiped out all my select fields in flex content fields.
I can’t see anything obvious that changed between these updates, but I’m kinda scared now to update my other sites!
Hey John,
That plugin didn’t quite do what I needed, but I found this other plugin that did the trick:
https://wordpress.org/plugins/wp-csv-exporter/
Coupling it with a paid addon I was able to export from custom posts with a lot of functionality (if anyone else is looking to do this).
Thanks for your help.
It’s probably worth adding that if you remove the class “search” from the field, you can paste it in again.
Hey John,
I tried disabling all the other plugins and it still won’t paste.
There’s no javascript errors coming up in the console either.
The module otherwise appears to work fine, looking up addresses manually typed and letting me drag and drop the marker, but it just won’t accept a pasted value either with CTRL+V or right clicking and choosing paste (the option comes up but doesn’t work).
In Chrome the autofill feature works, and all the buttons on the rhs all work correctly.
Hope that helps.
Hey John,
Thanks for your help with this issue as well.
I’ll give that CSV plugin a crack.
I’d like to search in the admin (backend), what I’d like to be able to do is type an address or partial address and see results based on that. Ideally specifically just searching addresses to simplify the results, but not an essential feature.
Hey John,
Still experiencing this issue. Definitely an issue caused by my related post plugin, but I just can’t seem to troubleshoot what exactly might cause it to fix it.
The plugin in question is Yet Another Related Post Plugin (YARPP):
https://wordpress.org/plugins/yet-another-related-posts-plugin/
The issue is driving me crazy as it’s so hard to get clients to fill out their meta descriptions half the time.
Any help pointing me in the right direction (or a better related post option) would be greatly appreciated.
Building on this question, I found and purchased the admin columns plugin. It solves part of my problem, but I still can’t search by address or export a spreadsheet.
Any ideas for those last couple issues?
Still having this issue with 5.2.6, and I’ve identified that it seems to be having issues with the YARPP plugin.
Specifically it breaks when I try to step through a flexible content field in the featured posts being pulled.
If I call this line:
if( have_rows('page_content') ):
OR
while(has_sub_field("page_content")):
All my acf fields just don’t work on the page at all. There are no errors displayed (debug off, etc)
To confirm, reverting to 5.2.3 fixes this issue.
—-
EDIT 2:
Alright now I’ve discovered if I add a meta description in YOAST SEO it also seems to fix the issue, but with the meta description field blank it creates the issue as well. It also fixes it if I disable to Yoast plugin completely.
I’m getting pretty confused as to what is causing this? Something being called or not called that’s triggered by various things perhaps?
To clarify, it’s fixed by any of the following:
– Removing the flexible content field call from the related posts plugin / disabling this plugin
– Having a filled in meta description field in YOAST SEO or disabling the YOAST SEO plugin
– Rolling back ACF PRO to 5.2.3
Just saw 5.2.5 come out and I can confirm it fixes this issue.
Thanks for the quick resolution!
The new update (5.2.2) has fixed this issue, thanks.
Hey all,
Tested this update today and the issue is resolved on all my sites that were having trouble.
I had about 20 sites with various issues to do with this and they all appear to be working correctly now.
Thanks Elliot
I just wanted to add that I’m also having this issue too.
I have a repeater field with a tabbed option in a dropdown.
I’ve even made the field NOT required, but it still fails on validation if you use the default option.
To make it validate, I need to individually go through each field and switch them to something else and then back again.
This is on a site with mutliple contributors, which is causing me all sorts of headaches. I can also confirm this only came about after updating from 5.1.8.
Cheers!
A bit more information; I’ve determined that the issue is caused by the flexible fields being under a tab.
For some reason the flexible content field works as soon as I pull it out into the first tab rather than a sub tab.
Could it be something to do with the flex field being hidden on load by the tabs?
Any update on this feature? It’d be great not to have to always include an override to change this to an external link.
Thanks Elliot.
You can either use the included Gallery field type to handle this, but if you need some more options, you could set up a repeater field type and customise it to suit.
Hey Elliot,
Thanks for getting back to me. The image fields are set to return arrays not IDs, and the post IDs are returning correctly.
I’m leaning towards the idea of something happening with the query too, is there something particular about how the field format settings are stored? It seems to have an issue with the automatically adding paragraphs on text area fields too, instead reverting as if auto BR tags was selected.
I’m just not exactly sure how to isolate/troubleshoot that…
Ahh yeah that makes sense. You’re probably right, that would need to be a feature addon I think.
As a temporary workaround, you could always include the option on each field and add a message that says that the first instance of this variable being selected will apply.
That’s really wierd, do you have an image selected in the backend?
Can you try doing a printr on the field again inside that if statement?
Nothing in your code appears obviously incorrect. Is your gallery field named correctly? Do you have the field populated in the backend?
I had this issue once before, I only managed to fix it by recreating the ACF fields from scratch, so that’d be my recommendation.
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.