Custom Fields
Re-Envisioned
Support General Plugin Tutorials

  • Creator
    Topic
  • #17883
    Resolved 465media
    Participant

    Hi, I was wondering if anyone had a start to finish tutorial out there they have seen or written themselves that goes through the entire process of writing a complete plugin using Metabox. What other resources or libraries were included? Etc. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #17891
    Anh Tran
    Keymaster

    Hi,

    Thanks for your question.

    Writing a plugin for Meta Box has nothing special than a normal WordPress plugin. You can follow WordPress Codex or take a look at the source code of free extensions to have a starting point.

    #19150
    465media
    Participant

    So just getting back to this, sorry about the delay. I have read through most of your case studies and they are all excellent, thank you. But they all say ‘add xyz to your themes functions.php file” More my question is how do you add this to a standalone plugin.

    If I add a custom post type for foo and a taxonomy bar I want to be able to display the single for foo, archive for foo and bar.

    #19151
    465media
    Participant

    It would be even better if a case study was made while creating a plugin with https://wppb.me/

    #19163
    Long Nguyen
    Moderator

    Hi,

    You can follow this guide to know how to extend a function/class or add anything from your plugin https://wpsmith.net/2015/extending-any-plugin-properly/

    and this guide to know how to load the templates for the post type, taxonomy from the plugin
    https://wordpress.stackexchange.com/questions/13378/add-custom-template-page-programmatically

    Hope that helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.