Support » Plugin: WordPress Stats View Counter » Parameters for shortcode "all time views"

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


    Please read the FAQ:

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

    I can confirm that Jetpack -> Site Stats report:
    Best ever
    All time

    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


    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.