WordPress.org

Ready to get started?Download WordPress

Forums

Tumblr Widget
[resolved] Change link text display (3 posts)

  1. mjg
    Member
    Posted 2 years ago #

    Thanks for the excellent plugin. Is it possible to change the text displayed for the post link?

    Currently it gives a date in the wrong date format for my blog.

    I would just like to display "See this post on Tumblr" or something like that. Can I edit the plugin file to achieve this?

    http://wordpress.org/extend/plugins/tumblr-widget-for-wordpress/

  2. gabrielroth
    Member
    Plugin Author

    Posted 2 years ago #

    Sure. Check out line 51:
    echo '<p><a href="'.$post_url.'" class="tumblr_link">'.date('m/d/y', intval($time)).'</a></p>';

    You could replace it with:
    echo '<p><a href="'.$post_url.'" class="tumblr_link">See this post on Tumblr</a></p>';

    Hope that's helpful. Note that if you modify the code yourself, every time you update the plugin you'll overwrite the modification.

  3. mjg
    Member
    Posted 2 years ago #

    Very helpful, that's perfect, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic