Terms Query does not work with ACF values

Description:

I have a Terms Query for my custom Taxonomy “Genre”. The Terms have a ACF called “Class Name”. This ACF can’t be displayed in the Query Template.

Step-by-step reproduction instructions:

  1. Create an ACF group for a Taxonomy
  2. Create some Temrs with a value for the ACF Field
  3. Create a page with a Terms Query and try to display the ACF value

Screenshots, screen recording, code snippet

Environment info

  • WordPress version: latest
  • Gutenberg Plugin version: -
  • Cwicly Plugin version: latest
  • Cwicly Theme version: latest

Hello @Jonas,

Can you possibly set the Location for Dynamic Content to Term (Taxonomy Query)?

Cheers,

Hi @Louis,

that does the trick :champagne:! Thanks a lot!

Hi Louis,

I’m trying to do the same thing and, although this has been marked as the solution, I actually don’t understand.

Could you be specific about what we’re referring to when you say “set the Location for Dynamic Content to Term (Taxonomy Query)”?

Thanks.

Hi @owynter,

below the ACF Field you can choose the Location:

Everything else stays the same.

Works for simple fields like text. I have a checkbox so it needs to return an array of results.

I went the code route, but will look in on this another time. Will just take time I do not have to troubleshoot and submit a potential bug report.