Archived topic
Query Loop display ACF Custom Field
3 replies · Started by Jan on January 3, 2022
Hi,
I searched this forum and Google for a couple of days, but I cannot find a solution.
My problem:
I have some custom fields created for my posts (specific category) with Advanced Custom Fields.
On my homepage I want to display a Post grid of some posts of that specific category.
The default Query Loop elements (Title, Featured image, excerpt, etc. ) do not support Custom Fields.
I tried the GP Elements, but I cannot find a hook for this Query Loop on a static page.
Is there something I am missing?
Could someone show me the the way to go here?
Thanks in advance!
Hi Jan,
You are doing it right as GP's dynamic options only works in elements ( appearance > elements), we are still working on GP's own query loop block, so at this moment I would also recommend using WP query loop block.
Unfortuanly GP has no control over the query loop block, it will require some custom development to add in the ACF.
Hi Ying,
Thank you for your answer.
I will look into WP Query loop block and see if I can get it to work.
You are welcome :)