Title: [Plugin: Sociable] Shortcode not working
Last modified: August 20, 2016

---

# [Plugin: Sociable] Shortcode not working

 *  [manoucho](https://wordpress.org/support/users/manoucho/)
 * (@manoucho)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/)
 * Hi there
 * When I try to use the shortcode of sociable in a post, it doesn´t work, instead
   it displays the shortcode…
 * I have read everything I could find about it:
    I use this code: `[sociable] content
   goes here [/sociable]
 * I make sure that it is not in a paragraph
 * I also tried to desactivate all the other plugins for a potential conflict…
 * But it still doesn´t work. Currrently I am using the automatic mode on my website(
   emmanueltenenbaum.com) but it doesn´t give me the flexibility I want…
 * Any idea??
    Thanks a lot in advance! Manu
 * [http://wordpress.org/extend/plugins/sociable/](http://wordpress.org/extend/plugins/sociable/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Contributor [sociable](https://wordpress.org/support/users/sociable/)
 * (@sociable)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470208)
 * Hi manoucho, try this…
 * <?php if( function_exists( do_sociable() ) ){ do_sociable(); }
 * Please tell us how it works in your site.
 *  Thread Starter [manoucho](https://wordpress.org/support/users/manoucho/)
 * (@manoucho)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470210)
 * Hi!
 * Thanks a lot for y our answer!
 * Just to be sure, can you tell me where I should add this code? header.php ?
 * Thanks!
    Manu
 *  Plugin Contributor [sociable](https://wordpress.org/support/users/sociable/)
 * (@sociable)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470261)
 * manoucho add code in the place that you want to appear.
 *  [frankv001](https://wordpress.org/support/users/frankv001/)
 * (@frankv001)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470288)
 * I have the same problem as Manoucho. Your answer doesn’t makes too much sense
   to me. s far as I understand, you can add the shortcode in the visual editor,
   or you add the php code mensioned above in the html part, but then the code disappears?
   
   Manoucho is correct that this code belongs in a php file. Please elaborate! Thanks.
   PS: I just checked your code. It is not complete.it should be <?php if( function_exists(
   do_sociable() ) ){ do_sociable(); } ?>
 * But this doesn’t help us to add the icons to a wordpress page or post.
 *  [incunix](https://wordpress.org/support/users/incunix/)
 * (@incunix)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470319)
 * Fixed this by doing a simple tweak. Seems as though he didn’t register the shortcode
   in his code…
 * Under the line **add_filter( ‘the_excerpt’, ‘auto_sociable’ );** in the sociable.
   php file (found under wp-content/plugins/sociable/), put this line:
 * **add_shortcode( ‘sociable’, ‘sociable_shortcode’ );**
 * Shortcodes should work like a dream now 🙂
 *  [jcmoyon](https://wordpress.org/support/users/jcmoyon/)
 * (@jcmoyon)
 * [14 years ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470340)
 * Hi,
    I have used the following line in my page : < ?php if (function_exists(‘
   sociable_html’)) {echo sociable_html();} ?>
 * and have added : add_shortcode( ‘sociable’, ‘sociable_shortcode’ );
    in the sociable.
   php file as mentioned
 * but nothing happens, or more precisely it is the line of code that appears and
   not the symbols.
 * Can you help ?
 * By the way, the Email button is linked to Google. How can one include a button
   that links directly to the visitor’s email ?
 * Thanks,
    Jean-Claude
 *  [MartaVictoria](https://wordpress.org/support/users/martavictoria/)
 * (@martavictoria)
 * [14 years ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470341)
 * Dear Incunix;
 * Nice. That code solved my (same) problem using this shortcode:
 * [sociable/]
 * I’d like to kill the borders above and below the icons, and right-align them.
   Suggest any code for that? (I’d be appreciative). Site currently self-hosted (
   so no link).
 * Thanks if you can,
 * Marta
 * [http://www.martavictoria.com](http://www.martavictoria.com)
 *  [jcmoyon](https://wordpress.org/support/users/jcmoyon/)
 * (@jcmoyon)
 * [14 years ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470342)
 * [@martavictoria](https://wordpress.org/support/users/martavictoria/)
 * Nice site you’ve got.
 * What do you mean by “That code solved my (same) problem using this shortcode:
 * [sociable/]”
 * How did you go about it ?
 * Jean-Claude (in the process of merging site+blog under WP) – present site [http://www.atlantique-photo.com](http://www.atlantique-photo.com)
 *  [MartaVictoria](https://wordpress.org/support/users/martavictoria/)
 * (@martavictoria)
 * [14 years ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470343)
 * Thanks.
 * I followed Incunix’s directions to add code to the php file:
 * > Under the line add_filter( ‘the_excerpt’, ‘auto_sociable’ ); in the sociable.
   > php file (found under wp-content/plugins/sociable/), put this line:
   > add_shortcode( ‘sociable’, ‘sociable_shortcode’ );
 * To do that, I made a back-up copy of the php file first (as a safety) before 
   editing it. Then I used Notepad (or Word pad; but NOT Word) to make the change
   directly to the php file.
 * Then, after changing the Shelf Theme .php file, I added this shortcode:
 * [sociable/]
 * directly into the html code of the post itself — right where I wanted the social
   icons to appear. Then, in the Sociable admin area, I turned off all Location 
   placements (because it was appearing twice — once where I told it to, and also
   where Sociable’s Location told it to).
 * I hope that’s specific enough? I’m sorry the site’s not live, yet; to see. Feel
   free to write again, if not?
 * Marta Victoria
 * [http://www.martavictoria.com](http://www.martavictoria.com)
 *  [jcmoyon](https://wordpress.org/support/users/jcmoyon/)
 * (@jcmoyon)
 * [14 years ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470344)
 * Hi Marta,
 * I don’t know where I went wrong first time or whether your explanation was clearer
   😉 but I’ve got it in the end.
 * Thanks a bomb ! (or words to that effect…)
    Jean-Claude
 *  [jdev](https://wordpress.org/support/users/jdev/)
 * (@jdev)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470375)
 * I prefer using shortcode exec php and use the php code in there. 🙂
 *  [igorlaszlo](https://wordpress.org/support/users/igorlaszlo/)
 * (@igorlaszlo)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470377)
 * > Under the line add_filter( ‘the_excerpt’, ‘auto_sociable’ ); in the sociable.
   > php file (found under wp-content/plugins/sociable/), put this line:
   >  add_shortcode(‘
   > sociable’, ‘sociable_shortcode’ );
 * it works fine now with this !

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘[Plugin: Sociable] Shortcode not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sociable.svg)
 * [Sociable](https://wordpress.org/plugins/sociable/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sociable/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sociable/)
 * [Active Topics](https://wordpress.org/support/plugin/sociable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sociable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sociable/reviews/)

 * 12 replies
 * 8 participants
 * Last reply from: [igorlaszlo](https://wordpress.org/support/users/igorlaszlo/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-sociable-shortcode-not-working/#post-2470377)
 * Status: not resolved