5.2.0 B1 - ACF Post Fields

Having an issue in the beta with {{dc:acf:post_field field=""}} not always pulling data through. Works on one post type layout, but not another.

Also not pulling the data through on the archive layout for any post type.

Hi @xRae,

Thanks for letting us know. Would it be possible to login to the site having the issue to take a closer look? Just let let me where I can see the problem happening. Thanks!

Sorry, it’s just a local install to test things out at the moment. I’ve tried all the usual, plugins, cache, etc. Nothing seems to sort it out.

The layout editor for the post type pulls nothing through, so I can’t edit a custom post type layout. However, if you look at the custom post type on the front end, they work just fine, and display everything correctly.

However, it’s not pulling that same {{dc:acf:post_field field=""}} through on pages, in the layout editor or on the front end.

Wordpress 5.9.1, PHP 8.1.3 Wondering if the PHP version that might be the issue?

Gotcha, thanks for the heads up on this one. I don’t think the PHP versions should matter. Was it working before the beta and now it’s not working? Or is this a new design after the beta? Sorry, should have asked that the first time around.

Yeah, it started with the beta.

I noticed the grid 2/25 bugfix about dynamic content and grids. These are all in grids, could something associated with that be causing it?

Noticed something that might be of help. The section to choose what preview while editing resets every time I launch the layout builder. Selecting a page will refresh everything in the layout builder, and then it will show again.

However, if I try to edit anything in a grid, everything that is pulled from an ACF in that grid breaks, can’t be brought back again, and if I save it won’t show on the front end either.

Thanks for the extra info! I’ve still not checked into this one but I’ll update you here when I know more. Beta2 just went out, so might be worth giving that a shot in case some of our refactoring got it working again. I’ll double check myself when I have a moment sometime before the next beta.

Beta2 it all renders great in the builder, but nothing shows through on the front end. The grid that seems to be having most of the issues is based off the Moderne Architektur template in design cloud if that is of some help.

I’m a bit late to the party and only just testing the beta today. Think I’m experiencing the same issue, although I’m not using it in a grid, so maybe different. I’ll add a secure note here with a login for you to play with Alexander.

If I use ACF like this it doesn’t work:
{{dc:acf:post_field field="sted"}}
But meta key does work:
{{dc:post:meta key="sted"}}

Thanks! I’ll let you know when I’m able to check on this one as well.

Confirming I have the same issue here - ACF Post Field doesn’t work, but post meta does :smile:
Would be great to have this one fixed!
*EDIT - Using Beta 2. Just updated to Beta 3 and the issue looks to persist.
*EDIT 2 - Just added secure note with login details if it’s needed.

Thanks @conorseed,

I’ve corrected an issue where the post fields don’t work. This will be in the next patch. Still a few more things we want to resolve before that goes out.

2 Likes

Did you get to check the thing where an ACF Color picker field doesn’t work as background color for an element (button in my case)?
Worked before, but not on the beta.

Thanks @alexander :smile: Glad it’s all fixed! Any chance you have an ETA for Beta4 then? Or, if it’s likely a while away, can you share the post fields fix if it’s simple enough to edit in theme files? Just playing around with some stuff and would be nice to have sorted :wink:

@spedney, I’m pretty sure the fix I made for post fields in general solved it. I double checked and it’s working on the version that will be beta4.

@conorseed, I think we’ll be pushing out beta4 tomorrow.

3 Likes