• Resolved dxlwebs

    (@dxlwebs)


    Hi there,
    love your plugin and i’m going deeper into it with user interaction as well and I’m wondering how i can call a specific field group? on the front end?

    $groupid = 22321;
    CFS()->form->load_assets($groupid);
    $params = array(
        'post_id' => false, // by default, add new post
        'post_title' => false, // set to true to edit the title
        'post_content' => false, // set to true to edit the content
        'post_category' => 112, // set to true to edit the content
        'excluded_fields' => array(), // array of field names
        'confirmation_url' => '', // redirect URL
        'submit_label' => 'Submit',
    );

    https://wordpress.org/plugins/custom-field-suite/

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Gibbs

    (@mgibbs189)

    There’s a field_groups param too.

    CFS()->form->load_assets();
    $params = array(
        'post_title' => false,
        'post_content' => false,
        'field_groups' => array( 22321 ),
    );
    
Viewing 1 replies (of 1 total)

The topic ‘front end forms’ is closed to new replies.