Support

Account

Home Forums Add-ons Repeater Field Get Term ID from repeater sub field and Options page Reply To: Get Term ID from repeater sub field and Options page

  • Hi @digitalfaber

    There are 2 issue with your code that I can see:
    1. You are using the_sub_field, when you should be using get_sub_field
    2. Your $args are OUTSIDE the has_sub_field loop so your WP_Query or get_posts call will only happen once, not for each row in the repeater field

    Thanks
    E