robcolburn
Member
Posted 2 years ago #
I need the widget to display in my "post meta" section. Pretty easy to add to the template if you define a shortcode. I'm going to go ahead and write it for my local instance (should only be a few lines of code), but it would be an extra convenience for others.
http://wordpress.org/extend/plugins/addthis/
sunriseweb
Member
Posted 1 year ago #
I agree that a shortcode would be nice. To add to a template use <?php do_action( 'addthis_widget' ); ?>
See http://wordpress.org/support/topic/plugin-addthis-but-no-template-tags-why?replies=2
disobeymedia
Member
Posted 1 year ago #
Hello,
could you be please more specific on where to add the <?php do_action( 'addthis_widget' ); ?> . Also what exactly will doing that achieve? I am looking for a way to have Addthis widget as a shortcode. Thanks for your help!
To anyone wondering, you add the <?php do_action... code to a theme .php file to display the widget in a theme.