Support » Themes and Templates » 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)
  • Hey there dbroadlick,

    Hope you’re well! 🙂

    You can use this plugin to register post types by interface: https://wordpress.org/plugins/types/

    Let me know if it helps! 🙂

    Take care,
    Calvin

    Thread Starter dbroadlick

    (@dbroadlick)

    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.

    Hey there dbroadlick,

    Hope you’re well! 🙂

    Then I think Piklist will be the best one for you. 🙂

    Let me know if it helps! 🙂

    Take care,
    Calvin

    Thread Starter dbroadlick

    (@dbroadlick)

    Thank you for the advice Calvin. I still wish there was a more light weight library that let you do this :/. Thanks again.

    @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!

    Hey there guys,

    Hope you’re both well! 🙂

    @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 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

    (@dbroadlick)

    Thank you both for your help.

    If by programmatically you mean via script, and are familiar with WP CLI then you can use Pods or ACF.

    @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

    (@dbroadlick)

    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.