Recently i came across a question on WPSE about hacking a plugin called WordPress Post Tabs to allow disabled tabs when a tab had no content. After having a quick look over the plugin i was quite displeased at the way it was coded and gave up after making a quick hack attempt to enable disabled tab functionality, “It’s just not good enough” i said to myself, something this simple shouldn’t be so hard to implement, i’ll have to write a plugin to do it..
And i did.. (after some woes understanding how to use the repo and svn).
My first ever plugin hosted on the WordPress repository, Post UI Tabs or PUT for short.
Create stylish jQuery UI Tabs inside posts, page or custom post types using simple shortcodes. Choose from 1 of the 25 different jQuery UI styles or go Jedi and define your own CSS.
- Smart CSS and Script loading
Only loads CSS and JS when there’s a post in the loop with the shortcode
- Skin selection
Choose from a list of jQuery UI styles
- Disable skin loading
Optionally turn off stylesheet loading, and just define your own
- Disabled tabs
Disable clicking on tabs that do not have any content yet
- jQuery cookie
Enable the jQuery cookie script to track selected tabs
- Tab navigation
Display clickable links to navigate between tabs
- Loading on archive pages
Choose whether to display the tabs on non-singluar pages
- Translation ready
Supports other languages (though i need translations if anyone is up for it?)
- Live style preview
See a live preview of tab styles in the plugin settings page
- Action & Filter hooks for code hackers
Utilises WordPress actions and filters to allow custom hacks
- Uses the WordPress Settings API
If plugins you use aren’t using it, you ought to be asking why!
Here’s a temporary screenshot from my local dev environment.
You can download the plugin from WordPress Extend or alternatively just search for Post UI Tabs from the Add New plugin page in your WordPress administration area.
Feedback & Feature Requests
If you have any feedback or features you’d like to see added into PUT feel free to drop a comment on the end of this blog.
Bugs / Support?
Found something wrong with the plugin or need help getting it working right?
Please start a support topic on the WordPress.org forums.