Forums

Twitter Widget Pro
Tweet does not link to anything... (3 posts)

  1. yolise
    Member
    Posted 4 months ago #

    I'm not entirely sure it's suppposed to, but I would like the tweet displayed by the widget to link to the twitter feed it's displaying. Is this possible/broken?

    Please see: http://lisadearaujo.com/clientaccess/BrandV/wordpress/

    The timestamp links as it should, but the tweet text does not.

    http://wordpress.org/extend/plugins/twitter-widget-pro/

  2. Aaron D. Campbell
    Member
    Posted 4 months ago #

    Sorry, that's not an option in the widget. If enough people want it, I would consider adding it, but for now it doesn't seem like very many people want it. There *is* a widget_twitter_content filter that you could use to add the link. Currently the URL isn't passed to that filter, but I'll tag version 2.3.8 right now (should be available in 15-20 minutes). With that version you should be able to link all the text like this:

    function link_tweet_text( $tweet_text, $tweet ) {
    	return "<a href='http://twitter.com/{$tweet->user->screen_name}/statuses/{$tweet->id_str}'>{$tweet_text}</a>";
    }
    add_filter( 'widget_twitter_content', 'link_tweet_text', null, 2);

    By the way, I love the way you styled the tweet!

  3. yolise
    Member
    Posted 4 months ago #

    Thanks very much - for both!

    Works perfectly!

Reply

You must log in to post.

About this Plugin

About this Topic