Home Forums ACF PRO Get all taxonomies from sub fields of repeater


Get all taxonomies from sub fields of repeater

  • Hi

    I’ve currently set up a repeater that has taxonomies nested in it. Is it possible to get a list of those taxonomies within the repeater easily? Essentially I want to add a drop down filter before the repeater begins.

    My solution so far is to either:

    • Have 2 repeaters, one repeater pulling out taxonomies to display in a dropdown, and the second repeater displaying the content
    • Or I can simply find the taxonomies by post id (although this wouldn’t work if there were multiple instances of tags on a single page)

    I’m hoping there’s a simple solution, otherwise it may have to be opt 1


  • The only real way to do this is to loop over the repeater twice. Fist time to get and compile the taxonomy fields and the second time do display them.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.