Keeping sharing simple... Get Plus

Shortcodes

Shortcode functionality that comes with Simple Share Buttons Plus.

Adding Buttons

You can add share buttons to any page you wish, by simply adding the shortcode [ssbp] anywhere within the content.

Setting a different URL/Title

[ssbp] also accepts url and title attributes, allowing you to add share buttons to a page that shares another. Here is an example of the shortcode with these attributes added:

[ssbp url="https://simplesharebuttons.com" title="Simple Share Buttons"]

Using PHP

It is possible to add share buttons within template files, or within any custom plugins/functions you may have in place. To do so, use the WordPress function do_shortcode:

<?php echo do_shortcode('[ssbp]'); ?>

If within the Loop, you can also add in the aforementioned url and title attributes like so:

<?php echo do_shortcode('[ssbp title="'.get_the_title().'" url="'.get_permalink().'"]'); ?>

The PHP tags may not be required, please be prepared to rollback your changes and request help if needed.

Hiding Buttons

To hide buttons from a page or post that has share buttons within it (i.e. you have enabled pages/posts in your setup), add [ssbp_hide] within the content.