• Resolved IanBarrett

    (@ianbarrett)


    Hi

    Popular Posts is a great plugin

    We use the Popular Posts plugin on our https://policinginsight.com website to create a Most Commented widget block in the right hand column.

    We set the selection criteria as 30 days so the block selects post that attracts the most comments in the last 30 days.

    However when we have a popular story that has had the most comments for more than 30 days, widget shows only the comment total from the last 30 days where as we want the widget to show the all-time total comments.

    So to be specific here is an example:

    In the first 30 days the post has 10 comments and shows 10 as the total.

    After 32 days the post is still the top post for the new 30 day period but the comment count on the block shows only 8 comments as 2 early comments are now outside the 30 day period

    This doesn’t seem logical to the reader who sees the count as 8 on the widget when they click into the article it shows the total posts being 10

    Is it possible to add an option to Popular Post to set the selection time period for choosing the posts with most comments in that period but have the option to display all time comment count instead of just the comment count for the selection period?

    It would also be useful to have this facility for views too

    Many thanks

    Ian

    https://www.ads-software.com/plugins/wordpress-popular-posts/

Viewing 1 replies (of 1 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi Ian!

    While I understand the idea, I believe that the current behavior is the right one: WPP should only display the number of comments a given post received within the specified period of time.

    Fortunately, WPP is flexible enough to allow room for use cases like this one. You can hook into wpp_custom_html or wpp_post to customize WPP’s HTML output and then use the get_comments_number() function to retrieve the total comments count (and wpp_get_views() for the views count).

Viewing 1 replies (of 1 total)
  • The topic ‘Showing total cumulative comments total regardless of selection time period’ is closed to new replies.