Sharing buttons shortcode for Jetpack

Plugin Banner

Sharing buttons shortcode for Jetpack

by Jeremy Herve

Download
Description

Extends the Jetpack plugin and allows you to add sharing buttons anywhere inside your posts thanks to the [jpshare] shortcode

Important: for this plugin to work, you must activate Jetpack first, and activate the sharing module.

This plugin is a work in progress. You can report issues here, or submit a pull request on GitHub.

  1. Install the Jetpack plugin, connect the plugin to WordPress.com
  2. Activate the Sharing module
  3. Install the Jetpack Sharing butttons shortcode plugin via the WordPress.org plugin repository, or via your dashboard
  4. Activate the plugin
  5. Place the [jpshare] shortcode anywhere in one of your posts or pages
  6. Enjoy, and share! 🙂

Very useful

By gd6d on November 2, 2018

Easy to configure!

Works perfectly

By John L (glutenfreeworks) on December 28, 2016

Easy to use. Works.

Excellent plugin, a must have

By Kakemphaton (johanneseva) on September 3, 2016

Excellent plugin which resolves a missing functionality of Jetpack sharing icons. A big thank you to the author, keep on with the good work! 🙂

Perfect

By NightL on September 3, 2016

Hunted this plugin down when looking for a solution to fix Jetpack share buttons not displaying on front page.

Now using it on other site for control of placement

Excellent plugin except a small thing

By healiny on September 3, 2016

There is a big gain after the line of the sharing (If I use with "more" button)
I need a "class" that differentiates the short-code lines from the rest of the original share jetpack lines.
I can't fix that in scc, only what I has been added.

Thank you!

By TeoAu on September 3, 2016

Thank you for making this plugin. A must-have, works great

Don't work 🙁

By Trademarkos (trademarkos) on September 3, 2016

Same problem. After install nothing happends. Im using last WP version.

Didn't work but was easy to make working

By janneval on September 3, 2016

Hi!

This was exactly what I was looking for.

I didn't matter even if this plugin didn't work. (In fact plugin just made my whole site disappear until i switched it off. Heh. 🙂 )

I opened up the plugin's code (which is really just few lines) and took out what I needed. Following lines I added to my own custom theme file 'shorcodes.php', which I call in the head of each page, and yes, it works. 🙂

function tweakjp_sd_shortcode() {
    if ( function_exists( 'sharing_display' ) ) {
        return '
            <div class="shortcoded-share-buttons">'.
                 sharing_display().'
            </div>
        ';
    }
} add_shortcode( 'jpshare', 'tweakjp_sd_shortcode' );

So thanks! You made me saving a lot of trouble to find out how to call the Jetpack share buttons otherwise. 🙂

1.2.2

  • Simplify code to output shortcode when Jetpack or the sharing features are not available. Props @grapplerulrich

1.2.1

  • Avoid Fatal Error when sharing_display is undefined.

1.2

  • Make changes to the plugin logic

1.1

  • Check that Jetpack and the Sharedaddy module are active

1.0

  • Initial Release
Back to top