Dynamically Query Happy Files Folder?

Edit - Since I am a new user I can only add one image. So I had to add them below this thread.

I seem to be unable to query a folder from Happy Files dynamically. I can select the folder statically, and the query works fine. However, I hope that when you land on a local service page, a services slider will change based on the Happy Files folder this custom post is in.

  • In the screenshot above, I have organized services based on Location folders
  • I am hoping to use a ‘service slider’ that only queries the location folder dynamically

It’s easy for me to understand how to query based on folder names, but not dynamically.

I should also mention these pages have an ACF field called ‘location’. I can’t seem to query this custom field either. I should mention this custom field is set to the service pages so I believe I should be able to access this field.

I also tried Taxonomy Query via the ACF location field, but this does not work.

  • For some reason it won’t work to query the Location category ACF, but it does work if I statically type the location.

  • This works (statically typing the location)

  • However, I need this location to come in dynamically


  • The ACF field for ‘location’ is set to a select. And the choices are set to the locations.
  • This custom field is this set to display on the service page.

Im new to Bricks and ACF, so If you see anything where I don’t have the logic, or if it’s possible to query a folder dynamically?

I see how you can select the folder, but how can I do this dynamically?

I can get it to work by either statically selecting the folder, or statically typing the name, but not dynamically

Trying to use a custom field does not work either. Even though the custom field is available and set to the custom post type.

Why has no one answered this question yet? Curious about this as well. Seems like this question has been sitting for quite some time. Do you guys respond to these?

Trying this today with the properties feature in components, and still the same issue :confused:

If I write it, it’s fine, but as soon as I set it as attached property then the value it grabs doesn’t work. Seems the same issue as this post with dynamic linked data.

@aslotta - any idea on this Bricks guru? I’ve resorted to using Happy Files galleries as the gallery property is too limited right now to be usable for me (I need to loop through the images chosen as single images).

@aslotta for context dude:



Screenshot 2025-03-11 at 12.54.26

I have also tried this with an ACF, and the same happens.

If I manually type in rc-page-gallery to the taxonomy query - it works fine. Why would the returned values be printed differently?