What is the difference between `Home page / Archieves` and the page set as homepage?

“Home page / Archives” stat doesn’t necessarily represent the number of views of a single page, although it might if your front page is a static page. The meaning of, and reason for, the designation was briefly addressed by staff member macmanx, shortly after WordPress evidently changed this stat from “Home page” to “Home page … Read more

Show Homepage (only) Hits Count

Add the counter (PHP or otherwise) to the template file for the home page. This will be either home.php or index.php depending on how you have things set up. If you want to instead add it in the footer, enclose the code inside a conditional tag to detect whether or not you’re on the home … Read more

A better way to get stats

You’ve got one very large issue here – you’re using $_SESSION. WordPress, by default, doesn’t use session variables. So isset( $_SESSION[‘vsp_user’] ) will always return false because WP isn’t keeping track of things. There are some additional changes you’ll need to make and hooks you’ll need to tie in to in order to enable sessions … Read more

See some statistics about the comments

For most commented posts you can use a custom loop in the sidebar for example: <h3>Most Commented Posts</h3> <?php $most_commented = new WP_Query(‘orderby=comment_count&posts_per_page=5’); if($most_commented->have_posts()) : ?> <ul class=”most-commented-posts”> <?php while($most_commented->have_posts()) : $most_commented->the_post(); ?> <li><a href=”https://wordpress.stackexchange.com/questions/38006/<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?> (<?php comments_number(‘0′,’1′,’%’); ?>)</a></li> <?php endwhile; ?> </ul><!– most-commented-posts –> <?php endif; wp_reset_query(); … Read more