How to count post views in wordpress blog without any plugin?

You can do this work with some plugin which you can find this in wordpress directory. But we should have to use plugin as less as possible cause using too much plugin is not good for your wordpress blog. So, now showing you how to count post view in wordpress blog without any plugin(manually)
At first, you have to login you site. Then go to Dashboard>Appearane>Editor. Then you have to open functions.php file. Then copy the following code and add code before ?>. If you want you can add this code in your php block.
Now you have to open single.php file and find out the below code from here.
After finding the code you need to add code that is shown in below.
Now you have to open index.php/loop.php and find out the below code.
After finding the code you have to add the below code where you want to show your post viewers.
 
If you can do this work perfectly then you can see post views counter in you wordpress blog.

Leave a Reply

Your email address will not be published. Required fields are marked *