Home Forums ACF PRO acf_form() with taxonomy rule


acf_form() with taxonomy rule

  • Hi guys,

    I have an ACF form with the next two rules required for display:

    Post Type => “Client Details”
    Post Taxonomy => “Premium”

    Now, I want to display this form on front-end through acf_form() function, and create a new post after submit.

    THE PROBLEM: because of the taxonomy rule, the form is not displayed.

    acf_form( array(
        'id'       => 'my-form',
        'post_id'  => 'new_post',
        'new_post' => array(
            'post_type'   => 'client-details',
            'post_status' => 'publish'
        'post_title'  => true,
        'post_content'=> true,
    ) );

    Does anyone know how I can set the category for the form to be displayed?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.