Support

Account

Home Forums General Issues Repeater field on taxonomy help Reply To: Repeater field on taxonomy help

  • Hi @shrimp144

    The issue is that your if statement will never return true, but is also a bit odd.
    if($docs = get_field('docs')):

    This should juse be:

    if($docs):

    Using get_field(‘docs’) wont work, becuase you need to add the $post_id param. You have done this in the 1st half of your code, but then you forget to add it into your if statement.

    That said, it doesn’t need to be in your if statement at all.

    Thanks
    E