Title: Create custom fields
Last modified: August 31, 2016

---

# Create custom fields

 *  Resolved [RobinKMullins](https://wordpress.org/support/users/robinkmullins/)
 * (@robinkmullins)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/create-custom-fields-1/)
 * How do I create a custom field? I’ve tried going to documentation but all the
   links report Page Not Found. Does the documentation exist?
 * [https://wordpress.org/plugins/awesome-support/](https://wordpress.org/plugins/awesome-support/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [julien731](https://wordpress.org/support/users/julien731/)
 * (@julien731)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7279990)
 * Aw indeed it looks like our doc is broken. I will look into it asap. Meanwhile
   you can check out this starter plugin for creating custom fields: [https://gist.github.com/julien731/a247c8927e2a5c8adf5e](https://gist.github.com/julien731/a247c8927e2a5c8adf5e)
 *  [Massimo De Maio](https://wordpress.org/support/users/demaiomassimo89/)
 * (@demaiomassimo89)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280031)
 * Hi,
    in which folder the file “awesome-support-custom-fields” should be inserted?
 *  Plugin Author [julien731](https://wordpress.org/support/users/julien731/)
 * (@julien731)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280064)
 * You just need to drop it at the root of your plugins directory (should be `wp-
   content/plugins`).
 *  Thread Starter [RobinKMullins](https://wordpress.org/support/users/robinkmullins/)
 * (@robinkmullins)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280085)
 * I followed the link you posted. Am I correct that the fields have to be built
   within that php file and are not created in the back end of the plugin? If so
   then how is that done?
 * Obviously I don’t code.
 *  Plugin Author [julien731](https://wordpress.org/support/users/julien731/)
 * (@julien731)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280161)
 * Finally the documentation is back! Please see [https://getawesomesupport.com/documentation/awesome-support/custom-fields/](https://getawesomesupport.com/documentation/awesome-support/custom-fields/)
 *  [Massimo De Maio](https://wordpress.org/support/users/demaiomassimo89/)
 * (@demaiomassimo89)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280167)
 * Hi Julien,
 * sorry but I can not add a custom field.
    For testing, I tried to add **wpas_add_custom_field(‘
   my_field_with_options’, array (‘title’ => ‘My Options’, ‘options’ => array (‘
   option1’ => ‘First Option’, ‘option2’ => ‘Second Option’)));** in the file “awesome-
   support-custom-fields.php” located in / wp-content / plugins / directory, but
   do not create any field on the form.
 * the full code of the file that I used can be found here [http://pastebin.com/RddaY5mU](http://pastebin.com/RddaY5mU)
 * Where I was wrong?
 * Thanks for your patience
 *  Plugin Author [julien731](https://wordpress.org/support/users/julien731/)
 * (@julien731)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280168)
 * Please read the documentation carefully. You forgot the `field_type` argument
   when declaring your custom field. I believe what you want is `select`.
 *  [Massimo De Maio](https://wordpress.org/support/users/demaiomassimo89/)
 * (@demaiomassimo89)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280170)
 * for example So i tried:
    **wpas_add_custom_field( ‘il_tuo_numero’, array( ‘title’
   => __( ‘Il tuo Numero’, ‘wpas’ ), ‘field_type’ => ‘number’ ) );** it’s correct?
 *  Plugin Author [julien731](https://wordpress.org/support/users/julien731/)
 * (@julien731)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280173)
 * That’s correct.
 *  [Massimo De Maio](https://wordpress.org/support/users/demaiomassimo89/)
 * (@demaiomassimo89)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280183)
 * Probably something wrong, I can not add this additional field. I added that string
   but nothing happens.
 *  Thread Starter [RobinKMullins](https://wordpress.org/support/users/robinkmullins/)
 * (@robinkmullins)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280210)
 * Julien, could you give me a couple of real world examples? For instance, what
   would a text field look like? What would a checkbox field look like if the possible
   selections were 1, 2, and 3? What would a wysiwyg field look like?

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Create custom fields’ is closed to new replies.

 * ![](https://ps.w.org/awesome-support/assets/icon-256x256.png?rev=1849681)
 * [Awesome Support - WordPress HelpDesk & Support Plugin](https://wordpress.org/plugins/awesome-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-support/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-support/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [RobinKMullins](https://wordpress.org/support/users/robinkmullins/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/create-custom-fields-1/#post-7280210)
 * Status: resolved