You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
Hi guys,
I was wondering if you know any way to sort posts by the number of likes they have?
I know I can do that using 'orderby' => 'meta_value_num' but then it won't include the results that don't have the post meta value in the database.
Thanks!
The text was updated successfully, but these errors were encountered:
I just integrated this with a site I did and needed to output the 3 most liked posts. I combed through the code a little and they are actually adding a meta value that can be queried.
Hi guys,
I was wondering if you know any way to sort posts by the number of likes they have?
I know I can do that using
'orderby' => 'meta_value_num'
but then it won't include the results that don't have the post meta value in the database.Thanks!
The text was updated successfully, but these errors were encountered: