Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Adam Capriola

    (@adamcapriola)

    Please read the FAQ: https://www.ads-software.com/plugins/wp-stats-view-counter/faq/

    It does show all time views for each post (not single day views).

    Thread Starter Mr-B

    (@mr-b-2)

    I can confirm that Jetpack -> Site Stats report:
    Today
    5 views
    Best ever
    93 views
    All time
    1,138 views

    However when I put in a shortcode of
    [view-count before=”Site views: “]

    The page displays:
    Site views: 5

    If I have misunderstood the functionality and this is a counter for a single-page or post only, it’s not what I am looking for as I want the all time views for the whole site. It’s appreciated that you have made the effort to produce a plugin, thanks anyway but it’s no good for me.

    Plugin Author Adam Capriola

    (@adamcapriola)

    It is for single posts and page view counts, not for your entire site. Sorry. You might be able to get some estimation of total views using get_posts or WP_Query. I say estimation because this plugin doesn’t keep track of views on archive pages. You would basically need to loop through all posts and keep a running total using something like $total .= get_post_meta( $post->ID, 'views', true );.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parameters for shortcode "all time views"’ is closed to new replies.