SOLVED: Dynamic Data not working

I have…

  • enabled the Render dynamic data text on canvas button in the Bricks settings.
  • I have created an ACF custom Field Group holds date fields
  • On the home page header, I have added a basic text field
  • In that text field I am pulling the dynamic data for the dates.

When I save and refresh the page the dates don’t render.
What am I missing please?

Hi Vanesa,

Which “page” are you currently looking at? The page where the dynamic data is saved to, or the header template?

If you’re editing a page that has the data available: deselect the element. If it’s selected, it will always show its content (not the dynamic data).

If header template: choose a page in populate content settings that has this dynamic data available. Otherwise, the dynamic data tag can’t retrieve any data since it doesn’t know from where.

Best regards,
timmse

Thank you @timmse .
It is in the header template. I am not quite following your instructions.

“choose a page in populate content settings” where do I find that please?

This is the site…
https://longridetofreedom.com/

While editing the header template, click the gear icon in the upper left:

Thank you @timmse that makes sense, however mine is not working yet.
These settings are definitely correct though.

And my ACF fields…

I think it makes more sense to select a single “ride” post, since the archive itself does not contain any dynamic data—only the posts within.

Thank you @timmse. I am still not quite following what you mean though?

select a single “ride” post?

What I showed here: Dynamic Data not working - #4 by timmse

» Single Post/Page
» And then search within the field for a post of your “ride” post type

Hi James,
Thanks so much for the login credentials.

Your ACF ride variable fields apply to the page “Variables”, so they are only available on that page. However, this requires that the fields contain data. In your case, the fields were empty. I filled in the fields as a test, and it works as expected:

Variables page:

Header template (with populate content set to the variables page):

Variables page on the front end:

However, no date is displayed on any other pages, posts, or whatever, because, as mentioned above, the data is only available on the variables page. There are two ways to solve this:

  1. You use an ACF options page in which the fields are globally available.
  2. You use the dynamic data echo: tag to call the ACF get_field function and pass it the ID of the variables page. References: [1] Dynamic Data – Bricks Academy [2] ACF | get_field() [3] Filter: bricks/code/echo_function_names – Bricks Academy

Thank you @timmse. I just changed it moments ago when I was trying to figure out what you meant but it would also make sense if there was no information in there :face_with_peeking_eye:

Will go down the Option Page route, thank you!

Worked perfectly, thanks @timmse

1 Like