WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Widget Pro
[resolved] item count not working with 'hide replies' etc (3 posts)

  1. thirzah
    Member
    Posted 1 year ago #

    hello

    I found that the number of tweets was being included in the twitter request, before the filters to include retweets, hide replies etc etc

    This meant that when I selected 'show 5 tweets', if 4 of the last 5 tweets were replies (hidden) only 1 tweet was shown.

    To fix this, I added the following below line 613

    if ( $args['items'] < 1 || 20 < $args['items'] )
    		$args['items'] = 10;
    	/*thirz mod */
    	$showitems = $args['items'];
    	$args['items'] = 20;
    	/*end thirz */

    and then changed the break at line 702 (after additions above) to

    `/*thirz mod */
    if ( ++$count >= $showitems)
    break;`
    obviously it's a bit approximate, because it still depends just how many (hidden) replies etc there are, but this worked for me, so thought I'd share in the hope you might do a better version :)

    http://wordpress.org/extend/plugins/twitter-widget-pro/

  2. Aaron D. Campbell
    Member
    Plugin Author

    Posted 1 year ago #

    Eventually I'll have to code a workaround for this, but it's not super high on the priority list right now. Watch for new versions though!

  3. jrawle
    Member
    Posted 8 months ago #

    @thirzah, thanks for this fix, it saves me the trouble of figuring it out for myself.

    I was going to report this as a bug, but found this when I was checking for existing reports.

    I hope it can be fixed eventually, but I do appreciate why a general fix for any number of @replies requires quite a few changes to the way the plugin works.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.