Support » Plugin: Rotating Tweets (Twitter widget and shortcode) » RT and ‘Search’ + ‘Offset’

  • Is it possible to combine the RT shortcode variables ‘Search’ and ‘Offset’?

    Ideally I’d like to be able to do something like ‘[rotatingtweets search=”from:handle filter:media” tweet_count=’2′ offset=’1′ no_rotate=’1’]’ to return the second most recent tweet with media.

    Is this possible? I’ve been unable to get this to work – it seems to honour the ‘tweet_count’ shortcode, but ‘offset’ is ignored?

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

    (@mpntod)

    Strictly, it is honouring the offset, but then it loops back to the beginning.

    If you only want the 2nd one, it would be:
    ‘[rotatingtweets search=”from:handle filter:media” tweet_count=’1′ offset=’1′ no_rotate=’1’]

    • This reply was modified 4 years, 2 months ago by Martin Tod.
    Plugin Author Martin Tod

    (@mpntod)

    You might also have an inverted comma problem – mixing " and '.

    Try:
    [rotatingtweets search="from:handle filter:media" tweet_count="2" offset="1" no_rotate="1"]
    or
    [rotatingtweets search="from:handle filter:media" tweet_count=2 offset=1 no_rotate=1]

    Thread Starter naid

    (@naid)

    Hmm,… still trying, but I’m not seeing this work.

    [rotatingtweets search="from:handle filter:media" tweet_count=1 offset=1 no_rotate=1]
    And
    [rotatingtweets search="from:handle filter:media" tweet_count=1 offset=0 no_rotate=1]
    …Are both returning the same tweet for me – the most recent tweet with media

    Thread Starter naid

    (@naid)

    A little more on this, but I’m struggling to spot a predictable pattern. For example, for the current BBCNews feed, the offset isn’t being applied when using;

    [rotatingtweets search="from:bbcnews filter:media" tweet_count=1 offset=0 include_rts=0 exclude_replies=1 official_format=1 show_media=1 links_in_new_window=1 no_rotate=1 tweet_length=100]
    .vs.
    [rotatingtweets search="from:bbcnews filter:media" tweet_count=1 offset=1 include_rts=0 exclude_replies=1 official_format=1 show_media=1 links_in_new_window=1 no_rotate=1 tweet_length=100]

    I seem to get a little more success when ‘include_rts=1’, but I’m really not sure what is happening here.

    Appreciate any help/insight.

    • This reply was modified 4 years, 2 months ago by naid.
    • This reply was modified 4 years, 2 months ago by naid.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘RT and ‘Search’ + ‘Offset’’ is closed to new replies.