Progress Bar & Skill Bar Shortcode

Below, you’ll find a detailed guide on how to add the Progress Bar & Skill Bar 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 Progress Bar & Skill Bar Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Progress Bar & Skill Bar Plugin and the shortcodes it provides:

Plugin Icon
Progress Bar & Skill Bar

"Progress Bar & Skill Bar is a dynamic WordPress plugin that allows you to create and customize visually appealing progress and skill bars, enhancing user engagement on your site."

★★★★✩ (50) Active Installs: 2000+ Tested with: 6.2.3 PHP Version: false
Included Shortcodes:
  • [PROGRESSBAR_WP]

Progress Bar & Skill Bar [PROGRESSBAR_WP] Shortcode

The PROGRESSBAR_WP shortcode is a tool within the progress-bar-wp plugin. This shortcode generates a progress bar by fetching the ID from the ‘id’ attribute. If the ‘id’ attribute isn’t set, it sets the PROGRESS_WP_ID variable to an empty string. It then requires the content.php file and resets the WP query.

Shortcode: [PROGRESSBAR_WP]

Parameters

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

  • id – Specifies the unique identifier of the progress bar

Examples and Usage

Basic example – A simple usage of the PROGRESSBAR_WP shortcode to display a progress bar with a specific ID.

[PROGRESSBAR_WP id=1 /]

PHP Function Code

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

Shortcode line:

add_shortcode( 'PROGRESSBAR_WP', 'PROGRESSBAR_WP_REG_ShortCode' );

Shortcode PHP function:

function PROGRESSBAR_WP_REG_ShortCode( $Id ) {
	ob_start();	
	if(!isset($Id['id'])) 
	 {
		$PROGRESS_WP_ID = "";
	 } 
	else 
	{
		$PROGRESS_WP_ID = $Id['id'];
	}
	// echo $PROGRESS_WP_ID;
	require("content.php"); 
	wp_reset_query();
    return ob_get_clean();
}

Code file location:

progress-bar-wp/progress-bar-wp/template/shortcode.php

Conclusion

Now that you’ve learned how to embed the Progress Bar & Skill Bar 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 *