Support » Plugin: Share Buttons by AddThis » Insert manually

Viewing 6 replies - 1 through 6 (of 6 total)
  • Can you share the theme name or your site url? I will help you.

    I am using a custom theme.
    And need to add the buttons in one templete file.
    Would you please let me know if there is any way to add in the template files?

    Is there any template tag or short code?

    Any help would be appreciated.


    I used the following in my page templates

    <?php $addme = get_post_custom($post->ID); $addmeok = $addme['addthis_exclude']; ?>
    <?php if ( $addmeok == false ) { 		do_action('addthis_widget',get_permalink($post->ID), get_the_title($post->ID), 'fb_tw_p1_sc'); }else{}?>

    This allows you to continue to use the ‘Remove AddThis’ meta box in each page which turns the share buttons off and on.

    It works. Thanks in advance for the help. 🙂

    Thanks @ibautista. That’s a smart work around.

    @ibnul: If you don’t want to have the exclude feature, you can just use:

    <?php do_action('addthis_widget',get_permalink($post->ID), get_the_title($post->ID), 'fb_tw_p1_sc'); ?>

    Otherwise, what @ibautista suggested is the ideal one.


    Thanks for the quick response.
    Got solved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Insert manually’ is closed to new replies.