Does the Metabox plugin need to stay installed?

Support General Does the Metabox plugin need to stay installed?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41848
    Julia MayhughJulia Mayhugh
    Participant

    I've used Metabox to create a custom post type and fields for a particular website. If I export these to code and add them to the site as a plugin, do I need to keep the Metabox plugin installed on the site for the custom fields & CPT to continue to work on that site?

    #41854
    PeterPeter
    Moderator

    Hello Julia,

    For the CPT, you can deactivate Meta Box to use the code to register the CPT. It's the WordPress function register_post_type() with arguments.

    For custom fields, you still need to activate Meta Box to register custom fields. Please follow the documentation https://docs.metabox.io/creating-fields-with-code/

    #41857
    Julia MayhughJulia Mayhugh
    Participant

    Thank you. So, to clarify, if I export both the custom post type and the fields to code as depicted in the link you sent, I still need to include the free version of Meta Box only?

    #41859
    PeterPeter
    Moderator

    Hello,

    Simply, yes. You still need to activate Meta Box (free) plugin in order to use CPT and custom fields on your site.

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