Support

Account

Home Forums General Issues Get Advanced Custom Field Group for specific taxonomy term Reply To: Get Advanced Custom Field Group for specific taxonomy term

  • You are confusing me because you said above that you want the fields of a post assigned to a term.

    Ok so I’m actually talking about a acf Group that is assigned to a post if the taxonomy term is equal to a specific term.

    But you are also asking about getting fields shown for a term.

    I’m looking for the groups assigned to a term.

    This would be like the fields that might be displayed on a page such as

    /wp-admin/term.php?taxonomy=category&tag_ID=1&post_type=post

    These are two completely different things.

    for the first I would use
    acf_get_field_groups(array('post_id' => '1293'));
    for the second I would try
    acf_get_field_groups(array('post_id' => 'term_1293'));