Forums

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

  1. cip6791
    Member
    Posted 8 months 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.

    Thanks

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 8 months 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
    Member
    Posted 8 months ago #

    Thank you

Reply

You must log in to post.

About this Plugin

About this Topic