Plugin Tutorials

Support General Plugin TutorialsResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17883
    465media465media
    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

    #17891
    Anh TranAnh 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
    465media465media
    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
    465media465media
    Participant

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

    #19163
    Long NguyenLong 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 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.