Title: Template tag problem
Last modified: August 21, 2016

---

# Template tag problem

 *  [anton7249](https://wordpress.org/support/users/slieptsov/)
 * (@slieptsov)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/template-tag-problem/)
 * Hi guys, I have a problem with your template tag.
 * I use
 * `<?php do_action( 'addthis_widget', $url, $the_title, 'below' ); ?>`
 * within the loop and I can’t see Selected Buttons which I have selected from the
   admin area.
 * Please see the screenshots below.
 * Here I did add Selected Buttons:
 * <img src=”[http://i.snag.gy/QfG0W.jpg&#8221](http://i.snag.gy/QfG0W.jpg&#8221);
   width=”415″ height=”273″>
    [http://i.snag.gy/QfG0W.jpg](http://i.snag.gy/QfG0W.jpg)
 * And here how it looks like in a single post:
 * <img src=”[http://i.snag.gy/eZO6A.jpg”&gt](http://i.snag.gy/eZO6A.jpg”&gt);
    
   [http://i.snag.gy/eZO6A.jpg](http://i.snag.gy/eZO6A.jpg)
 * As you can see everything is fine.
 * But how it looks like within the WordPress posts loop:
 * <img src=”[http://i.snag.gy/T0L2C.jpg”&gt](http://i.snag.gy/T0L2C.jpg”&gt);
    
   [http://i.snag.gy/T0L2C.jpg](http://i.snag.gy/T0L2C.jpg)
 * As you can see custom template tag within the loop doesn’t grab my Selected Buttons
   which I have selected from the admin area.
 * Any helps please?
 * [http://wordpress.org/plugins/addthis/](http://wordpress.org/plugins/addthis/)

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

 *  [Srijith V](https://wordpress.org/support/users/srijithv/)
 * (@srijithv)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/template-tag-problem/#post-4247048)
 * [@slieptsov](https://wordpress.org/support/users/slieptsov/): Which version of
   AddThis Share plugin are you using? We had a recent update for fixing Template
   Tags.
 *  Thread Starter [anton7249](https://wordpress.org/support/users/slieptsov/)
 * (@slieptsov)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/template-tag-problem/#post-4247050)
 * [@srijith](https://wordpress.org/support/users/srijith/).v: Version 3.5.3 | By
   The AddThis Team
 * I did fix it by removing Template Tag and set up excerpt for the posts. Looks
   fine now.
 *  [Srijith V](https://wordpress.org/support/users/srijithv/)
 * (@srijithv)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/template-tag-problem/#post-4247062)
 * Good to hear that!
 *  [Thomson Muriyadan](https://wordpress.org/support/users/thedigitalmonk/)
 * (@thedigitalmonk)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/template-tag-problem/#post-4247080)
 * Simple fix:
 * within the loop:
 * <?php
    $url= get_permalink(); $the_title = get_the_title();
 *  do_action( ‘addthis_widget’, $url, $the_title, ‘below’ );
 *  ?>
 *  Thread Starter [anton7249](https://wordpress.org/support/users/slieptsov/)
 * (@slieptsov)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/template-tag-problem/#post-4247089)
 * Guys, still need a good solution for this!
 * [@thedigitalmonk](https://wordpress.org/support/users/thedigitalmonk/) your code
   works particularly unfortunately as it doesn’t grab Selected Buttons from Settings
   > AddThis Share!!!
 * Please see the screenshot [http://i.snag.gy/QfG0W.jpg](http://i.snag.gy/QfG0W.jpg)
 * In a single post without your code it’s look just fine:
    [http://i.snag.gy/eZO6A.jpg](http://i.snag.gy/eZO6A.jpg)
 * but how it looks like within the WordPress posts loop with your code above:
    
   [http://i.snag.gy/T0L2C.jpg](http://i.snag.gy/T0L2C.jpg)
 * As you can see custom template tag within the loop doesn’t grab my Selected Buttons
   which I have selected from the admin area.
 * Looks like it’s a bug guys?
 * The main reason why I don’t want to use an option show in excerpts is that my
   theme has posts shortcodes with excerpts where I don’t need to use AddThis Share
   plugin at all!
 * I’am reading from this post [http://www.jacobtomlinson.co.uk/2013/03/17/using-the-addthis-share-buttons-wordpress-plugin-in-a-custom-theme/](http://www.jacobtomlinson.co.uk/2013/03/17/using-the-addthis-share-buttons-wordpress-plugin-in-a-custom-theme/)
 * **below** style SPECIAL loads your setting from the admin control panel for the
   bottom widget.
 * But as you can see from the screenshots I posted the custom code
 *     ```
       do_action
       ```
   
 * DOES NOT!!! LOADS my setting from the admin control panel for the bottom widget!!!
 * Any help please?

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

The topic ‘Template tag problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/addthis_70cced.svg)
 * [WordPress Share Buttons Plugin – AddThis](https://wordpress.org/plugins/addthis/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/addthis/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/addthis/)
 * [Active Topics](https://wordpress.org/support/plugin/addthis/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/addthis/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/addthis/reviews/)

## Tags

 * [below](https://wordpress.org/support/topic-tag/below/)
 * [do_action()](https://wordpress.org/support/topic-tag/do_action/)
 * [tag](https://wordpress.org/support/topic-tag/tag/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 5 replies
 * 3 participants
 * Last reply from: [anton7249](https://wordpress.org/support/users/slieptsov/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/template-tag-problem/#post-4247089)
 * Status: not resolved