WordPress.org

Forums

Top 10 - Popular posts plugin for WordPress
[resolved] After update widget displays 12 post thumbnails instead of set amount (7 posts)

  1. anefarious1
    Member
    Posted 1 year ago #

    Hello. How can I get the widget to display only 4 posts in my sidebar? After the update it is showing 12 instead of 4. I checked the widget and the setting is still shown as "No. of post: 4

    Thanks

    http://wordpress.org/plugins/top-10/

  2. anefarious1
    Member
    Posted 1 year ago #

    My site is http://canigivemydog.com in case you need to know. Thank you Ajay

  3. anefarious1
    Member
    Posted 1 year ago #

    I've tried to fix it by using the reset feature but that didn't work. Then I removed the widget from the sidebar and placed it back in, rechecking the setting there as well. It seems 12 is the only amount of posts that can be displayed now.

  4. anefarious1
    Member
    Posted 1 year ago #

    Sorry to keep posting regarding this issue. I have discovered that if you set the number to 3 then 9 will display. Set it to 1 then 3 will display. It was displaying 12 for me because I was using 4. Everything is X3. This is a bug in the update.

  5. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Can you please find the line:

    function get_tptn_pop_posts( $daily = false , $widget = false, $limit = false, $show_excerpt = false, $post_thumb_op = false, $daily_range = false, $strict_limit = false ) {

    and replace with:

    function get_tptn_pop_posts( $daily = false , $widget = false, $limit = false, $show_excerpt = false, $post_thumb_op = false, $daily_range = false, $strict_limit = true ) {

    And, let me know if this works for you?

  6. mariomb
    Member
    Posted 1 year ago #

    Greetings

    I am having exactly the same problem - on my case if I select to show 10 posts I only get 6 - I have used reset and also the solution that you provided but no good - setting the function to true results in it showing only 2 posts.

    Any thoughts?

  7. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I just upload v1.9.8.1 which should fix the issue with number of posts

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic