-
rfsdhl
Hi, I’m working on a WooCommerce website (specifically the product category template) and have the following issue related to displaying ACF repeater field values via GenerateBlocks dynamic content: In order to display FAQs on product category pages (e.g. example.org/products/tables/), I’ve set up a ACF field group for product categories (including the repeater field containing one subfield for FAQ questions and one for FAQ answers) and a GP element (which includes a Query block of the type “Post Meta” to query through the FAQs of a given product category and display the subfields for FAQ questions + answers as dynamic content within “Loop Item”).
However no FAQ questions or answer get displayed on the frontend. Is this because it’s not possible to query through a taxonomy’s (in this case product category) meta data using the “Post Meta” query type? Or am I potentially overlooking some other issue on my end? What’s generally the recommended method to display ACF repeater fields via GenerateBlocks?
Hope it’s clear what I mean, if not please don’t hesitate to ask.
-
Alvind
Hi there,
Based on your setup, it should work. Have you set the meta key for the FAQ question and FAQ answer subfield in the Loop Item dynamic tag?
-
rfsdhl
Thank you for the quick reply. Yes, I have defined the meta key for each sub field like this:

Here’s also how I’ve set up the ACF repeater field:


I’ve configured the Query block like this (defining the parent repeater field name as the meta key):

Could this be the issue? Within the frontend for the entire Query block only “<div></div>” is output.
Thanks a lot for your help.
-
Any chance you can provide an admin login for us to check the backend?
Let me know 🙂
-
rfsdhl
Sure.
-
Thanks for the detailed info in the private info field.
The issue is that the repeater field is for taxonomies; it’s NOT a post meta, so when you set the query block’s query type to post meta, it will not work.
I think you have to go static for the FAQ in this case, unfortunately!
-
rfsdhl
Got it, thanks for looking into it though.
Depending on the required effort to implement it would be nice if you add such options for the Query block in the future allowing to loop through taxonomy terms meta data as well, although I totally understand this is a rather niche requirement and therefore not of high priority. Thanks anyway for the quick support as always!
-
You are welcome and thanks for the suggestion 🙂
- You must be logged in to reply to this topic.