WordPress.org

Forums

Latest Tweets Widget
[resolved] code to place directly into custom template (7 posts)

  1. jeremyhanks
    Member
    Posted 1 year ago #

    I noticed couple months ago you posted about looking into making code avail so you could use the functionality not as a widget.

    did you get that figured out?

    and if not, is that something you'd be able to help me with? I have this custom template and trying to do some things myself, I'm probably in over my head. I could pay as a consultant.

    http://wordpress.org/plugins/latest-tweets-widget/

  2. timwhitlock
    Member
    Plugin Author

    Posted 1 year ago #

    You can just do this from anywhere:

    <?php
    echo latest_tweets_render_html( 'timwhitlock', 5 );
    // will print out my last five tweets
  3. jeremyhanks
    Member
    Posted 1 year ago #

    YES! Thx so much!

  4. timwhitlock
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome. I'll be adding some better filter hooks soon too.

  5. cfenwickWP
    Member
    Posted 1 year ago #

    Hi Tim,

    I'm using the 'latest_tweets_render_html' example you've posted above. It's working really well but is there any way I can stop it showing retweets?

  6. timwhitlock
    Member
    Plugin Author

    Posted 1 year ago #

    Pass false as the third argument.

    <?php
    echo latest_tweets_render_html( 'timwhitlock', 5, false );
    // will print out my last five tweets that aren't retweets

  7. cfenwickWP
    Member
    Posted 1 year ago #

    Thanks very much for the speedy reply Tim. That works nicely!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.