WordPress.org

Forums

Rotating Tweets (Twitter widget and shortcode)
[resolved] Multiple users not showing (10 posts)

  1. Ryan Gatto
    Member
    Posted 2 years ago #

    Hello,

    Great plugin! I'm trying to pull multiple users in to the widget but only one will display. The others give the problem connecting message. The two it won't display have only tweeted 1 and 2 times, could that be the problem?

    http://wordpress.org/plugins/rotatingtweets/

  2. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Ryan,

    How are you doing this? Search, list or by putting multiple user names in the 'Twitter name:' box in the widget or a screen_name in the shortcode.

    The easiest way is to put user1 user2 in the standard widget or have a shortcode such as:

    [rotatingtweets screen_name='user1 user2']

    Alternative ways include:

    [rotatingtweets search='from:user1 OR from:user2']

    or

    [rotatingtweets screen_name='user' list='listofnames']

    What happens if you do a search for from:user1 OR from:user2 on Twitter? If user2 hasn't tweeted recently, it's possible they won't show.

    Martin

  3. Ryan Gatto
    Member
    Posted 2 years ago #

    I'm using the widget with the twitter name box. If I search on twitter they don't come up under "top" but they do come up under "all". If you send me an email to ryan at catonthecouch . com I will send you some screenshots.

  4. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    I've dropped you a line.

    Alternatively, if you post the two Twitter account names here, I'll try to replicate the effect.

    Best wishes,

    Martin

  5. Ryan Gatto
    Member
    Posted 2 years ago #

    I replied, please let me know if you did not get it.

  6. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    I think I've found the problem.

    If you look at the search/tweets option for the Twitter API, it defaults to 'mixed'. I've changed it to 'recent' in the development version by adding an extra line 974 to rotatingtweets.php in the development version:

    $apioptions['result_type']='recent';

    Please let me know if this works for you.

  7. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    Hmmm. Appears to have made things worse. Now it's only showing two tweets.

    The problem here appears to be with Twitter's search API (which can be flaky - and often looks at a very short time window). All the data that's being pulled out of Twitter is being displayed.

    I have to go to bed now, but I'll look at some other options tomorrow.

    Martin

  8. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Juan,

    Please try the installation instructions and the FAQ first and if you have any further problems, please start a thread using the form at the bottom of the page in the support forum.

    Best wishes,

    Martin

  9. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    Ryan,

    I suspect there's only two (or possibly three) ways forward here:

    1. Do a very chunky piece of work to pull in each timeline separately for each account and then write some further code to merge the three timelines
    2. Raise a bug request vs. the Twitter API
    3. or, possibly,

    4. Add some more Tweets to the two accounts that aren't displaying, and see if this fixes the problem

    Neither of the first two options are a quick fix unfortunately!

    Martin

  10. Martin Tod
    Member
    Plugin Author

    Posted 2 years ago #

    Ryan,

    Cracked it. To solve the problem where some people have posted only a few tweets, it works best to use a list.

    I added the 3 accounts you suggested to a private list on my account - and then used the command:

    [rotatingtweets list='rt-test-list' screen_name='mpntod']

    and it appears to have solved the problem.

    I can make the list public (if you want), but it's probably best to do this using the credentials of the account that you've set up to use Rotating Tweets - and then you have the option to make the list hidden on Twitter.

    Martin

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Rotating Tweets (Twitter widget and shortcode)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.