Support

Account

Home Forums Add-ons Repeater Field Repeater field with Custom Taxonomy

Helping

Repeater field with Custom Taxonomy

  • Here is my problem.

    I have created a custom post type to create photography albums. I have named it ‘Album’.
    I have a repeater which has two fields. One is the ‘image’ and another is a custom taxonomy called ‘Themes’.
    So each photo inside an album is linked to one or more ‘theme’ terms.

    Now in the front-end I want to display the list of ‘theme’ terms and the associated photos from ALL THE ‘albums’.

    I tried querying for the attachments from all posts of the Album custom post type.

    Then I did a image meta to find out if the theme term is associated with it. But the results just gave me the size values.

    So how do I go about this??
    Can anyone help me?

  • Hi @lightyearmagic

    You should be able to do it by querying the subfield. To do that, kindly check this tutorial: https://www.advancedcustomfields.com/resources/querying-the-database-for-repeater-sub-field-values/.

    I hope this helps 🙂

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

You must be logged in to reply to this topic.