WordPress Popular Posts
[resolved] [Plugin: WordPress Popular Posts] Total number of views for homepage (not widget) (3 posts)

  1. cip6791
    Posted 3 years ago #

    I would like to add a total number of views on my homepage. I saw a few plugins but I don't want to start from zero since I've been using WPP for a while. Any way of doing this? Or maybe it can be added as an option in the future.



  2. Hector Cabrera
    Plugin Author

    Posted 3 years ago #

    Hi there,

    Unfortunately, the plugin is no longer tracking the views on homepage. The reason for this is that on large sites tracking this info causes a siginifcant load on the database due to the number of daily visits, so I decided not to record this data.

    If you still want to give it a try, you can hack the plugin's code and change this line of code:

    if ( (is_single() || is_page()) && !is_user_logged_in() && !is_front_page() )

    ... into this:

    if ( (is_single() || is_page()) && !is_user_logged_in() && is_home() )

  3. cip6791
    Posted 3 years ago #

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic