Simple Staff List Shortcode

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

Before starting, here is an overview of the Simple Staff List Plugin and the shortcodes it provides:

Plugin Icon
Simple Staff List

"Simple Staff List is a user-friendly WordPress plugin designed to easily create and manage a staff directory. Its intuitive interface ensures seamless staff listing on your website."

★★★★☆ (40) Active Installs: 5000+ Tested with: 6.3.2 PHP Version: 5.4
Included Shortcodes:
  • [simple-staff-list]

Simple Staff List [simple-staff-list] Shortcode

The Simple Staff List shortcode is a dynamic tool that allows you to display a list of staff members on your site. This shortcode fetches and displays staff data from the ‘partials/simple-staff-list-shortcode-display.php’ file. It uses global variable $sslp_sc_output to return the formatted staff list.

Shortcode: [simple-staff-list]

Examples and Usage

Basic example – Display a simple staff list using the shortcode ‘simple-staff-list’ without any additional parameters.

[simple-staff-list /]

PHP Function Code

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

Shortcode line:

add_shortcode( 'simple-staff-list', array( $this, 'staff_member_simple_staff_list_shortcode_callback' ) );

Shortcode PHP function:

function staff_member_simple_staff_list_shortcode_callback( $atts = array() ) {

		global $sslp_sc_output;

		$this->simple_staff_list_shortcode_atts = shortcode_atts( $this->simple_staff_list_shortcode_atts_defaults, $atts, 'simple-staff-list' );
		include 'partials/simple-staff-list-shortcode-display.php';
		return $sslp_sc_output;

	}

Code file location:

simple-staff-list/simple-staff-list/public/class-simple-staff-list-public.php

Conclusion

Now that you’ve learned how to embed the Simple Staff List 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 *