Forums

[Plugin: TweetMeme Button] Display button on first entry only on front page (4 posts)

  1. bobjones
    Member
    Posted 2 years ago #

    I'd like to display the Tweetmeme button (manually) only on the first entry of the front page.

    Added this script to index.php:

    <?php if (!$paged &&function_exists('tweetmeme') && !$tm_display_front) echo tm_generate_button(); ?>

    Unfortunately, that still displays the button on every entry on the front page.

    Any scripters want to take a crack at this?

  2. neceros
    Member
    Posted 2 years ago #

    Er, nevermind. I misread the question. :)

  3. TalkTweetMeme
    Member
    Posted 2 years ago #

    Simple, install the button through the plugin and select insert manually. Then just include [tweetmeme] where you want it to show.

    Sarah

  4. Pepperfly
    Member
    Posted 2 years ago #

    Go to plugin settings and pick the manual display mode. Place the Tweetmeme button in your theme within any div/span/p/em/ loop like this:

    <?php if (function_exists('tweetmeme')) echo tweetmeme(); ?>

    Credit: http://kovshenin.com/archives/tweetmeme-button-wordpress-customized/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags