Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    You can, but if you’re creating a plugin page where you have full control of the form, there’s not a compelling reason to do so. That is unless you want to help other devs extend your plugin by adding their own metaboxes. You might also consider providing action and filter hooks at strategic places to make further customization by others more convenient.

    Meta boxes are added with add_meta_box() and displayed on an admin screen with do_meta_boxes().

    Thread Starter mabufoysal

    (@mabufoysal)

    Thanks @bcworkz . I would like to store additional data along with the custom post. How can I create a Custom Form with Tabs to save additional data ?

    Moderator bcworkz

    (@bcworkz)

    Oh, to add fields to the post edit form, then meta boxes are the way to go. I thought you were referring to a plugin settings page or similar.
    https://developer.www.ads-software.com/plugins/metadata/custom-meta-boxes/

    Within the meta box, you would include appropriate HTML for tabbed input fields. You’d also enqueue related admin scripts and styles to have the HTML appear tabbed and to switch between tabs on click events. Just as you’d do for any tabbed web page outside of WP. The only difference is enqueuing scripts and styles instead of providing head section meta tags to load the files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Metaboxes inside Tab’ is closed to new replies.