Home Forums Backend Issues (wp-admin) Get terms/taxonomy form


Get terms/taxonomy form

  • Hey, so I have a custom admin dashboard page where I display the terms hierarchy (for a better UX).

    At this point I’m trying to display the form from product_cat taxonomy term using acf_form.

    I tried setting the post_id with
    1. The term object
    2. ‘product_cat_’ . $term_id
    3. ‘term_’ . $term_id
    4. ‘term_product_cat_’ . $term_id (and sideways)

    None of this actually worked. Am I doing something wrong? Or does this function work only with post_types?

    If it’s not supported for terms – is it any way to display a Term form with custom fields from ACF

  • Hi,
    I was able to get ‘term_’ to work, for example:

    ‘id’ => ‘acfform_example’,
    ‘post_id’ => ‘term_’ . $my_term_id,
    ‘field_groups’ => array( ‘14617’ ),

  • Either 2 or 3 should work.

    Are you calling acf_form_head() in some action that fires before admin output is generated?

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

You must be logged in to reply to this topic.