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

4
  • Do you mean a custom options page for your plugin?
    – Hans
    Commented Oct 6, 2018 at 13:38
  • no. I mean a meta box with tabs Commented Oct 6, 2018 at 14:27
  • Are you talking about the back end (the admin section) or the front end (the actual site)
    – Greeso
    Commented Nov 9, 2018 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? Commented Nov 10, 2018 at 12:17

2 Answers 2

2

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.

0

I've founded the best solution and used redux framework. It really provides what I was looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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