0

I need a tabbed metabox for my plugin. Actually they are 5 metaboxes each one in a tab. I found these scripts: https://speckyboy.com/10-simple-code-snippets-creating-beautiful-tabs/

Which one is best for using in meta boxes? It's better to have only CSS ? JS must be registered ?

I want to start testing these scripts but would like advice on where to start.

thank you

  • Do you mean a custom options page for your plugin? – Michael Oct 6 '18 at 13:38
  • no. I mean a meta box with tabs – Sebas Rossi Oct 6 '18 at 14:27
  • Are you talking about the back end (the admin section) or the front end (the actual site) – Greeso Nov 9 '18 at 4:26
  • Hi @Greeso. Thanks for your reply. Since meta boxes displays in back end. I thought it was obvious I was talking about back end. Can you help me please? – Sebas Rossi Nov 10 '18 at 12:17
0

First, you have to create the metabox. Then you have to add tabs to the metabox.

For the first step, to create a metabox, here is a tutorial for you. You can use that as bases for your metabox, and maybe modify it according to your needs.

For the second step, you have to add tabs to your metabox. This question has been asked before in Stack Overflow, and you can follow steps describe in the answer to setup your tabs.

Please remember, WordPress uses the JQuery UI Tabs widget. So you can find examples here and detailed documentation here.

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.