Sorting posts according to view counts not working
I use the code snippet below to get views count of each post on my sidebar.php . everything works but the sorting does not. also it does not get 4 posts, it only shows 1 post although I’ve written ‘numberposts’ => 4 . I guess the problem comes from post query. because when I’m on … Read more