Category: Asides  ·  Originally posted February 5, 2009  ·  Last updated August 17, 2010

Using the WP-Print and Sociable Plugins Together

Two excellent WordPress Plugins are WP-Print by Lester Chan and Sociable by Joost de Valk.  Unfortunately, these two plugins don’t play nicely together.  To prevent any Sociable links/images from being printed from a WP-Print screen, first disable automatic placement of Sociable from the Sociable admin page.  Next, paste the following PHP code into the Single Post file of your theme (at the location where you want sociable to appear):

<?php do_shortcode(‘[donotprint]’); ?><?php if (function_exists(‘sociable_html’)) { echo sociable_html(); } ?><?php do_shortcode(‘[/donotprint]’); ?>

…then repeat this for any other template pages where you want Sociable to appear!

bookmark and share this article

Email this article to a friend Print a copy of this article Subscribe to article comments Bookmark this article on Delicious Submit this article to reddit Submit this article to Digg Submit this article to StumbleUpon Share this article on Facebook Tweet this article

related articles

Discussion (3 comments)

Public comments are closed for this article. Private comments may be submitted using this link.
  1. Great post, thanks a lot.

    I had to change the two (^) parts to [donotprint] and [/donotprint] though for it to work.

    By Alex | February 18, 2009, 12:41 pm |
  2. Thanks for the tip, Alex – the brackets should be fixed now.

    By Tanner | February 18, 2009, 1:48 pm |
  3. Thanks Alex!

    Your idea inspired me: If your want to integrate WP-Print into Sociable just put following code into the location section in “sociable.php”:

    'WP-Print' => Array(
    'favicon' => 'printer.png',
    'url' => 'print',
    'description' => 'Print',

    Like that you can even arrange the WP-Print icon within the Sociable admin panel.

    By Daniel | June 27, 2009, 8:09 am |