Title: Create a new post
Last modified: August 21, 2016

---

# Create a new post

 *  [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * (@consumedesign)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/create-a-new-post/)
 *     ```
       <?php
       echo $cfs->form(array(
           'post_id' => false,
           'post_type' => 'order_form',
       ));
       ?>
       ```
   
 * I am using the above code for a custom post type (even tried it with ‘post’) 
   and it doesn’t display the form only a submit button is this correct? The submit
   button when pressed creates a new “post” but is there a way to return the ID 
   so I can then use:
 *     ```
       <?php
       echo $cfs->form(array(
           'post_id' => $return_ID
       ));
       ?>
       ```
   
 * To display the form… or is there a way to display the form from the get go (more
   than just the submit button) and create a new “post” from there?
 * [http://wordpress.org/plugins/custom-field-suite/](http://wordpress.org/plugins/custom-field-suite/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * (@consumedesign)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/create-a-new-post/#post-4555487)
 * Oh hm… if I edit the Field Group in the Admin the restriction under “Placement
   Rules” of “Post Types” [x order_form] the form shows. I would rather it only 
   display on the custom post type if possible.

Viewing 1 replies (of 1 total)

The topic ‘Create a new post’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-field-suite.svg)
 * [Custom Field Suite](https://wordpress.org/plugins/custom-field-suite/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-suite/reviews/)

## Tags

 * [CFS](https://wordpress.org/support/topic-tag/cfs/)
 * [form](https://wordpress.org/support/topic-tag/form/)

 * 1 reply
 * 1 participant
 * Last reply from: [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/create-a-new-post/#post-4555487)
 * Status: not resolved