@celsosoares
Active 7 years, 3 months ago
-
r-a-y posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 8 months ago
@celsosoares – I haven’t debugged your code fully, but this section:
WHERE meta_value = 'favorite_count' ORDER BY meta_value
should be:WHERE meta_key = 'favorite_count' ORDER BY meta_value DESC
— Also, the documentation for theinclude
parameter indicates that you have to pass a comma-delimited list of activity IDs. So you’ll need to change…[Read more]