• Resolved Pádraig Ó Beirn

    (@padraigbeirne)


    After the latest 2.5 and 2.5.1 update the number of top posts displayed in my sidebar is 35 instead of the 6 in my widget and Top 10 plugin settings. I tried saving the plugin and widget settings, clearing the cache etc. but it still shows a long list of the top 35 posts instead of 6. Any suggestions would be appreciated. Thanks for a great plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • same problem here.

    Plugin Author Ajay

    (@ajay)

    Are you in a position to edit the files? If so, can you edit top-10/includes/display-posts.php and change line 222 from:

    
    if ( $counter === $args['limit'] ) {
    

    to

    
    if ( $counter === (int) $args['limit'] ) {
    
    • This reply was modified 6 years, 5 months ago by Ajay.
    Thread Starter Pádraig Ó Beirn

    (@padraigbeirne)

    Hi Ajay,

    That worked! Tested on wamp and live server. Widget performs in the sidebar as expected with the correct number of posts.

    Thanks for the prompt fix. 🙂

    Plugin Author Ajay

    (@ajay)

    Thanks for confirming. I’m pushing through v2.5.3. Apologies for this. These slipped through the cracks.

    Thread Starter Pádraig Ó Beirn

    (@padraigbeirne)

    Marking as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Number of widget posts shown on sidebar.’ is closed to new replies.