Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Tabs Shortcodes

Adds a few shortcodes to allow for tabbed content.

Adds a few shortcodes to allow for tabbed content.

IMPORTANT: If you are not comfortable using WordPress shortcodes, this plugin may not be for you. Additionally, you must be able to edit your themes main stylesheet in order to add the necessary CSS.


  • Adds two shortcodes for adding a tabbed interface to your site
  • Select a specific tab by URL
  • No default CSS added (you will need to add your own)
  • Only adds JavaScript on pages that use the shortcodes (and doesn't require jQuery)

The Shortcodes

The two shortcodes that are added are:



[tab title=""]

Basic Usage Example

[tab title="First Tab"]Content for tab one goes here.[/tab]
[tab title="Second Tab"]Content for tab two goes here.[/tab]
[tab title="Third Tab"]Content for tab three goes here.[/tab]

This will output the following HTML:

<ul class="tabs">
    <li><a href="#tab-1" class="active">First Tab</a></li>
    <li><a href="#tab-2">Second Tab</a></li>
    <li><a href="#tab-3">Third Tab</a></li>
<section id="tab-1" class="tab active">Content for tab one goes here.</section>
<section id="tab-2" class="tab">Content for tab two goes here.</section>
<section id="tab-3" class="tab">Content for tab three goes here.</section>


There are no settings for the plugin. The only additional setup you will need to do is add some css to style the tabs however you'd like. Adding the CSS is very important as the tabs will not display as tabs until you do so.

Selecting a Tab by Default

You can select a tab by default by added the tab number as an option in the opening [tabs] shortcode like this:

[tabs open="2"]

This will open the second tab when the page loads.

Selecting a Tab by URL

You can select a tab by default using a hash in the URL. Simply add #tab-1 after the trailing / of the URL to select tab number 1. Replace the number with the tab you'd like to select.

This example URL will select tab number 3:

Tags: , ,

Requires: 3.3 or higher
Compatible up to: 4.1.14
Last Updated: 2 years ago
Active Installs: 900+


4 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,3,3 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1