• Resolved levdlevd

    (@levdlevd)


    Hi,

    Im using this code but it also shows normal tweets not only retweets by other people? Do you know why this is happening?

    <?php echo do_shortcode( “[rotatingtweets screen_name=’mytwitter’ include_rts=’1′ only_rts=’1’‪]” ) ?>‬

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Martin Tod

    (@mpntod)

    That’s odd.

    What happens if you use the development version?

    I’ve just tried it on my own test site and it seems to be working properly.

    A quicker answer that you might want to try first is:

    
    <?php echo do_shortcode( "[rotatingtweets screen_name='mytwitter' only_rts=1‪]" ) ?>‬
    

    By the way, when I copied your text, it had instead of '.

    Thread Starter levdlevd

    (@levdlevd)

    I will try the development version.
    I just changed ‘ to be 100% sure, now its not showing anything so also not my own tweets. Do you know how long back it show retweets? Can i configure this?

    Thanks! Levd

    Thread Starter levdlevd

    (@levdlevd)

    HI,

    Im using this with the development version: <?php echo do_shortcode( “[rotatingtweets screen_name=’mytwitter’ only_rts=’1′ links_in_new_window=’1′]” ) ?>

    No retweets are show, but also not my own tweets anymore so thats good 🙂 and configuration option for date for retweets?

    Thanks!‬

    Plugin Author Martin Tod

    (@mpntod)

    Do you have the right screen name?

    And do you need a semi-colon in there?

    
    <?php echo do_shortcode( "[rotatingtweets screen_name='mytwitter' only_rts=1 links_in_new_window=1]" ); ?>
    

    If you view source (CTRL+U), you should see error messages in your HTML that tell you what’s going wrong.

    Thread Starter levdlevd

    (@levdlevd)

    My screenname is right, if i use the code with or without semicolon:

    <?php echo do_shortcode( “[rotatingtweets screen_name=’mytwitter’ links_in_new_window=’1′]” ); ?>‬

    Tweets are there

    If i use <?php echo do_shortcode( “[rotatingtweets screen_name=’mytwitter’ only_rts=’1′ links_in_new_window=’1′]” ); ?>‬

    Nothing is there, are all retweets shown? Or only from a specific time frame?

    • This reply was modified 9 years, 6 months ago by levdlevd.
    Plugin Author Martin Tod

    (@mpntod)

    There isn’t a function on Twitter to only find retweets, so if only_rts=1 is set, Rotating Tweets loads the last 60 Tweets and looks through them for retweets from other accounts.

    If there aren’t any, then it won’t show any tweets.

    I think this might be what’s happening in your case.

    Thread Starter levdlevd

    (@levdlevd)

    Ah then that will be it! Im posting a lot of tweets, is there anyway to load more tweets?

    Thanks for your help!

    Plugin Author Martin Tod

    (@mpntod)

    You can try it to see if it works.

    Try changing line 1184 from:

    
    $apioptions = array('screen_name'=>$tw_screen_name,'include_entities'=>1,'count'=>60,'include_rts'=>$tw_include_rts,'exclude_replies'=>$tw_exclude_replies);
    

    to

    
    $apioptions = array('screen_name'=>$tw_screen_name,'include_entities'=>1,'count'=>200,'include_rts'=>$tw_include_rts,'exclude_replies'=>$tw_exclude_replies);
    
    Thread Starter levdlevd

    (@levdlevd)

    Thank you!

    Levd

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Only rts’ is closed to new replies.