By default WordPress does not allow to show or order post by views, so we have to use a little trick which can make our blog a much more lively.
So let get started, first, we ‘ll create a custom post meta as
whpp_track_post_views, then on every post visit we have to increase the counter by one.
Now that we have set the custom post meta we need to add following code in
WP_Query to short post my view