NO BUG: When rendering a page with a short code ACF data isn't available

Bricks Version: 1.6.1
Browser: Chrome 108
OS: macOS

When I link a template to a page_template.php (Bricks Child Theme) by rendering a short code inside the ACF data isn’t available.

Using this approach by @Sridhar

Okay, so I narrowed down the bug… I had like described in the article the ACF field group conditions set to show if a certain template was selected. That works great in Gutenberg. Switching the template also switches the ACF fields. This condition does lead to the above bug… so, if I instead switch the ACF field conditions to display on all pages it works. Any insights would be nice. For now, I am just sticking to displaying all field groups based on post type is page condition… which is obviously not the most elegant solution as I wanted the field inputs to change along with changing the template.

Hence, the tutorial should be updated, bricks should be updated or there is an ACF bug?

Sorry for all the posts… now it seems to work: The trick that did it for me was the following …

I needed to enable the REST API on my ACF groups.

I guess after @Sridhar can confirm this, the tutorial needs to be updated.

While we are at it… I found a ACF bug… maybe somebody can confirm. If you use this method and switch the template the filed group switches all data inputted is just ignored on save. If you save and reload the page and then input, it is all stored correctly.

Hi Max,
Thanks so much for your report!

I’m glad you were able to solve the problem on your own. Since this is a third-party tutorial, it is not a Bricks bug.

Best regards,
timmse