Title: Create Custom Post Fields Programmatically
Last modified: August 22, 2016

---

# Create Custom Post Fields Programmatically

 *  [dbroadlick](https://wordpress.org/support/users/dbroadlick/)
 * (@dbroadlick)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/)
 * Are there any plugins or frameworks that allow a developer to programmatically
   create post type fields easily and simply. I am thinking something akin to how
   easy it is to create post fields and their admin controls in Custom Field Suite
   but just programmatically so that you can version control it. Are there any solutions
   for what I am talking about or do we need to start the open source project “The
   Programmers Custom Field Suite.” Thanks everyone for any advice or reads.

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

 *  [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753169)
 * Hey there dbroadlick,
 * Hope you’re well! 🙂
 * You can use this plugin to register post types by interface: [https://wordpress.org/plugins/types/](https://wordpress.org/plugins/types/)
 * Let me know if it helps! 🙂
 * Take care,
    Calvin
 *  Thread Starter [dbroadlick](https://wordpress.org/support/users/dbroadlick/)
 * (@dbroadlick)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753257)
 * Thank you for your response Calvin. You are saying that you can create fields
   for posts through php code using this plugin correct? I do not want to create
   them from the admin panel because I want to source control these fields. If the
   database is lost than the fields are lost if you create them through the admin
   panel and doing it the pure wordpress way is super painful. Thank you again for
   your response.
 *  [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753364)
 * Hey there dbroadlick,
 * Hope you’re well! 🙂
 * Then I think [Piklist](https://wordpress.org/plugins/piklist/) will be the best
   one for you. 🙂
 * Let me know if it helps! 🙂
 * Take care,
    Calvin
 *  Thread Starter [dbroadlick](https://wordpress.org/support/users/dbroadlick/)
 * (@dbroadlick)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753378)
 * Thank you for the advice Calvin. I still wish there was a more light weight library
   that let you do this :/. Thanks again.
 *  [Steve Bruner](https://wordpress.org/support/users/sbruner/)
 * (@sbruner)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753380)
 * [@dbroadlick](https://wordpress.org/support/users/dbroadlick/)– I’m one of the
   developers of Piklist, and I can definitely tell you it’s not so “heavy”. Also,
   once you start using it, you will get addicted to it’s power and features, and
   will find new ways of using it.
 * Hope you give it a try!
 *  [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753389)
 * Hey there guys,
 * Hope you’re both well! 🙂
 * [@dbroadlick](https://wordpress.org/support/users/dbroadlick/)
    Hope you will
   get a confident to try the piklist 🙂 I also think the developers are responsive
   to queries and other stuff like what Steve did today to tell you that piklist
   is not “heavy” at all 🙂
 * [@steve](https://wordpress.org/support/users/steve/) Bruner
 * Thanks for your response Steve, Saw the presentation of piklist in one of WordPress
   Conference thru wordpress.tv and it was awesome. 🙂 I think you demonstrate a“
   Order” system that made with Piklist. 🙂
 * Take care,
    Calvin
 *  Thread Starter [dbroadlick](https://wordpress.org/support/users/dbroadlick/)
 * (@dbroadlick)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753394)
 * Thank you both for your help.
 *  [sillinguist](https://wordpress.org/support/users/sillinguist/)
 * (@sillinguist)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753396)
 * If by programmatically you mean via script, and are familiar with [WP CLI](http://wp-cli.org/)
   then you can use [Pods](http://pods.io/) or [ACF](http://www.advancedcustomfields.com/).
 *  [Steve Bruner](https://wordpress.org/support/users/sbruner/)
 * (@sbruner)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753404)
 * [@hugh](https://wordpress.org/support/users/hugh/)– That wouldn’t let you version
   control your code would it? That’s an issue with UI field builders… no version
   control.
 *  Thread Starter [dbroadlick](https://wordpress.org/support/users/dbroadlick/)
 * (@dbroadlick)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753407)
 * You could version control a script that you ran with WP CLI but that is getting
   a bit weird.

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

The topic ‘Create Custom Post Fields Programmatically’ is closed to new replies.

 * 10 replies
 * 4 participants
 * Last reply from: [dbroadlick](https://wordpress.org/support/users/dbroadlick/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/create-custom-post-fields-programmatically/#post-5753407)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
