Wanted to share another TIP to show your current user tracking/views. There are so many free WordPress plugins available which tracks your POST’s view/counts and my VOTE goes to GD Press Tool’s Tracking function.
GD Press Tools is one of the best plugin out there and i’m using it since last 2 years. You can download it here.
Steps to enable tracking:
- Download GD Press Tools
- Go to Admin Option -> Settings -> Tracking Tab -> Enable Posts & Pages Views.
- This will enable tracking/counts/views.
Add below code to your theme where you want to show count:
<div id="_mcePaste"><?php</div> <div id="_mcePaste">$gdpress_view = presstools_get_post_views($post_id = 0);</div> <div id="_mcePaste">$view1 = $gdpress_view->total_views;</div> <div id="_mcePaste">echo $view1;</div> <div id="_mcePaste">?></div> <div>
More reading: http://www.dev4press.com/2010/tutorials/plugins-tutorials/gd-press-tools/post-and-user-views-tracking-functions/