Problem in sorting _count-views_all
I’m writing a sort function and I’m having a little problem with this argument “_count-views_all”.
I’m trying to put this “&meta_key=_count-views_all&orderby=meta_value_num&order=DESC” inside query_posts() and to receive sorting category by the most views posts.
The problem is that it is showing only the post with minimum 1 view I think its because the postmeta table receive the _count-views_all row after 1 view and if the value is 0 there is no row for the post.
- The topic ‘Problem in sorting _count-views_all’ is closed to new replies.