Share Buttons by AddThis
[Plugin: AddThis featuring Sharing Buttons / Facebook Like / Tweet Button] Shortcode (4 posts)

  1. robcolburn
    Posted 5 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.


  2. sunriseweb
    Posted 5 years 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

  3. disobeymedia
    Posted 4 years ago #

    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!

  4. cfbauer
    Posted 4 years ago #

    To anyone wondering, you add the <?php do_action... code to a theme .php file to display the widget in a theme.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Share Buttons by AddThis
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic