My question is pretty much summed up in the title. I’m dropping a meta box in the New Post / Edit Post admin page, and I want to be able to set it up with tabs like the Categories meta box has. I assume there’s an easy way to hook into this, but I can’t remember how. Does anybody know?
Leave a Reply
You must be logged in to post a comment.
Here’s a very basic example..
The jQuery for the mytabs.js referenced in the enqueue.
NOTES:
plugins_url( '/mytabs.js', __FILE__ )
in place of theget_bloginfo
string.add_action( "add_meta_boxes_YOURTYPE", 'add_post_metabox' );
, i usedpost
in the example..See here for more info on how to configure the tabs script.
http://docs.jquery.com/UI/Tabs
Hope that helps..