Support » Plugin: Latest Tweets Widget » code to place directly into custom template

  • Resolved jeremyhanks

    (@jeremyhanks)


    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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author timwhitlock

    (@timwhitlock)

    You can just do this from anywhere:

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

    YES! Thx so much!

    Plugin Author timwhitlock

    (@timwhitlock)

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

    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?

    Plugin Author timwhitlock

    (@timwhitlock)

    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

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘code to place directly into custom template’ is closed to new replies.