• Resolved Andrew Dixon

    (@aandrewdixon)


    I’m not sure if this is the right place to ask this, but I feel like people here would know the answer, but inside an Advanced Query Loop, how can I output the value from the custom post type.

    My example, I have a custom post type for “Shops” and I have a page set up to output a list of the shops using Advanced Query Loop and that is all working as expected, it is outputting the list of shops that I want based on the query, however, I would like to output some of the data points from the shops custom post type inside the loop, things like the shops address, etc… but I don’t seem to be able to find a block that will allow me to do that.

    It seems like such a basic thing that should just be available. Am I missing something?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • philbee

    (@philbee)

    AQL only handles the loop itself, like WP’s own Query Loop block – you’ll have to create your own ACF Blocks if the output has to be formatted in specific ways. Or you can use the Meta Field block, which also works well.

    • This reply was modified 1 year ago by philbee. Reason: clarified text
    Thread Starter Andrew Dixon

    (@aandrewdixon)

    @philbee That plugin look like what I’m looking for, thanks so much for pointing me in the right direction.

    Plugin Author Ryan Welcher

    (@welcher)

    Thanks for answering @philbee!

    Depending on what the meta field is used for, you may also be able use to Block Bindings to display them.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Output ACF field’ is closed to new replies.