Support

Account

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

Unread

Get Advanced Custom Field Group for specific taxonomy term

  • I’m trying to get an Advanced Custom Field Group that’s been assigned to a specific taxonomy term.

    I marked my original thread as solved but it was an accident.

    https://support.advancedcustomfields.com/forums/topic/get-advanced-custom-field-group-for-specific-taxonomy-term/#post-125430

    I’m trying to use:

    acf_get_field_groups();

    I’ve tried the following (mainly guesses) any help would be appreciated.

    acf_get_field_groups(array('term_id' => '1293'));

    acf_get_field_groups(array('taxonomy' => 'services','term_id' => '1293'));

    acf_get_field_groups(array('post_id' => 'term_1293'));

    I can get a group that is assigned a post by passing array(‘post_id’ => $id) and I can get a groupd assign to a taxonomy by using array(‘taxonomy’ => ‘services’) but I’m having no joy getting a group assign to a term (Show this field group if Post Taxomony is equal term)

Viewing 1 post (of 1 total)

The topic ‘Get Advanced Custom Field Group for specific taxonomy term’ is closed to new replies.