- Tanner Helland (dot) Com - http://www.tannerhelland.com -

Using the WP-Print and Sociable Plugins Together

Posted By Tanner On February 5, 2009 @ 3:57 pm In Asides | Comments Disabled

Two excellent WordPress Plugins are WP-Print [1] by Lester Chan [2] and Sociable [3] by Joost de Valk [4].  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!


Article printed from Tanner Helland (dot) Com: http://www.tannerhelland.com

URL to article: http://www.tannerhelland.com/562/wp-print-plus-sociable-plugins/

URLs in this post:

[1] WP-Print: http://lesterchan.net/wordpress/readme/wp-print.html

[2] Lester Chan: http://lesterchan.net/

[3] Sociable: http://yoast.com/wordpress/sociable/

[4] Joost de Valk: http://yoast.com/

All text copyright © 2008 Tanner Helland. To reduce paper and ink usage, all comments, images, and videos have been suppressed on this printing.