Tweet This
Placing tweet_this function within single.php (2 posts)

  1. wuzhannanan
    Posted 5 years ago #

    Hi all,

    I am trying to place the tweet_this button above <div class="entry">, and below <div class="post"> within the single.php file. I have inserted this code: <?php tweet_this_manual(); ?> between the two div tags, but when I refresh my page I get a "Fatal error: Call to undefined function tweet_this_manual() in...single.php on line 23"

    From my research it looks like this error message is given with the plugin is not installed, but I have the plugin installed. Am I missing something?

  2. richardxthripp
    Plugin Author

    Posted 5 years ago #

    That's weird... it could be the plugin is loading after that portion of single.php is executed, but I've never seen this before. Are you using Tweet This 1.8.1? Try using this instead:

    <?php remove_filter('the_content', 'insert_tweet_this');
    echo insert_tweet_this(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic