Track & Display Post Views Count in WordPress Without a Plugin

Some times you want to count the number of posts views in WordPress but you don’t want to use the plugin, the following tips may be useful for you!

Step 1: Adding code to functions.php

Step 2: Calling function in single.php

Step 3: Echo result anywhere you want: