Forums
Home / Plugin: Post Views Count (Support caching plugins!) / How to exclude front page from counting?
(@alezander)
10 years, 7 months ago
Hello.
How to exclude front page from counting?
http://wordpress.org/plugins/baw-post-views-count/
(@juliobox)
Hello
The count is only done on single (i use is_singular miked with you settings) so on front end, the count is avoided.
I need to display posts and post views on front page
So, I wrote this code at the front page template
echo get_post_meta( $post->ID, '_count-views_all', true );
That’s it.
Thanks for your answer. Nice plugin.
It works, you can also use echo do_shortcode( '[post_view]' );
do_shortcode( '[post_view]' );