Tab – Accordion, FAQ Shortcode

Below, you’ll find a detailed guide on how to add the Tab – Accordion, FAQ Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Tab – Accordion, FAQ Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Tab – Accordion, FAQ Plugin and the shortcodes it provides:

Plugin Icon
Tab – Accordion, FAQ

"Tab – Accordion, FAQ is a versatile WordPress plugin that enhances your site's functionality by adding interactive tab and accordion features, along with a streamlined FAQ section."

★★★★☆ (56) Active Installs: 2000+ Tested with: 6.0.6 PHP Version: false
Included Shortcodes:
  • [Rich_Web_Tabs]

Tab – Accordion, FAQ [Rich_Web_Tabs] Shortcode

The Rich_Web_Tabs shortcode is a powerful tool in WordPress. It’s used to create and manage tabbed content on your site. The shortcode allows you to define the ID of the tabbed content. By default, the ID is set to “1”. This ID is then passed to the Rich_Web_Draw_Short_Tabs function, which outputs the desired tabbed content on your page.

Shortcode: [Rich_Web_Tabs]

Parameters

Here is a list of all possible Rich_Web_Tabs shortcode parameters and attributes:

  • id – Serves as the unique reference of the specific tab

Examples and Usage

Basic example – The shortcode is used to display the Rich Web Tabs by referencing its ID. The tab will load based on the ID provided in the shortcode.

[Rich_Web_Tabs id=1 /]

Advanced examples

The shortcode is used to display multiple Rich Web Tabs by referencing their IDs. The tabs will load based on the IDs provided in the shortcode. This example shows how to load multiple tabs at once using the shortcode.

[Rich_Web_Tabs id="1,2,3" /]

This example demonstrates how to use the shortcode to load a tab by referencing its ID, and then override the default settings by specifying custom attributes. In this case, the tab with ID 1 will be loaded, and its color will be set to blue and font-size to 16px.

[Rich_Web_Tabs id="1" color="blue" font-size="16px" /]

PHP Function Code

In case you have difficulties debugging what causing issues with [Rich_Web_Tabs] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode('Rich_Web_Tabs', 'Rich_Web_Tabs_ID');

Shortcode PHP function:

function Rich_Web_Tabs_ID($atts, $content = null)
	{
		$atts = shortcode_atts(
			array(
				"id" => "1",
			),$atts
		);
		return Rich_Web_Draw_Short_Tabs($atts['id']);
	}

Code file location:

tabbed/tabbed/Tabs-Rich-Web-Shortcode.php

Conclusion

Now that you’ve learned how to embed the Tab – Accordion, FAQ Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *