php – orderby meta_value_num is not working, giving default order
Question
I am trying to order my posts by a meta value so that I can show the most popular posts. But it is returning the latest posts instead.
//WordPress loop for the custom post type
$popular_args = array(
'post_type'
0
1 week
0 Answers
0 views