Easy Social Sharing Shortcode

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

Before starting, here is an overview of the Easy Social Sharing Plugin and the shortcodes it provides:

Plugin Icon
Easy Social Sharing

"Easy Social Sharing is a dynamic WordPress plugin designed to simplify the process of sharing your website's content on various social media platforms. Boost your site's visibility effectively."

★★★★☆ (7) Active Installs: 2000+ Tested with: 6.1.4 PHP Version: false
Included Shortcodes:
  • [ess_inline_network]

Easy Social Sharing [ess_inline_network] Shortcode

The Easy Social Sharing (ESS) shortcode is a versatile tool for integrating social media sharing buttons. It fetches social network descriptions, counts, and allowed networks. This shortcode displays inline social sharing buttons. It uses the ‘ess-inline-shortcode’ class to style the buttons. It then retrieves the description, count, and allowed networks for each social network. The buttons are displayed in an inline layout.

Shortcode: [ess_inline_network]

Examples and Usage

Basic example – An inline social sharing network can be added to your WordPress posts or pages using the ‘ess_inline_network’ shortcode. This will display the social sharing buttons in a line.

[ess_inline_network /]

Advanced examples

Adding a class to the social sharing network. You can customize the appearance of your social sharing buttons by adding a custom class. In this case, we’re adding the ‘my-custom-class’ to the shortcode.

[ess_inline_network class='my-custom-class' /]

Displaying a specific social network. If you want to display a specific social network, you can do so by specifying the network in the shortcode. For example, to display only the Facebook sharing button, you would use the shortcode:

[ess_inline_network network='facebook' /]

Displaying multiple social networks. You can also display multiple social networks by specifying them in the shortcode. For example, to display both the Facebook and Twitter sharing buttons, you would use the shortcode:

[ess_inline_network network='facebook, twitter' /]

PHP Function Code

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

Shortcode line:

add_shortcode( 'ess_inline_network', array( $this, 'inline_network_shortcode' ) );

Shortcode PHP function:

function inline_network_shortcode() {

		$class            = 'ess-inline-shortcode';
		$network_desc     = ESS_Social_Networks::get_network_desc();
		$network_count    = ESS_Social_Networks::get_network_count();
		$allowed_networks = ESS_Social_Networks::get_allowed_networks();

		if ( $allowed_networks ) {
			include 'views/html-view-layout-inline.php';

		return ob_get_clean();

Code file location:



Now that you’ve learned how to embed the Easy Social Sharing 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.


Leave a Reply

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