-
celsosoares posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 8 months ago
Thanks @imjscn , but I get the same result using the Like plugin. It uses the same table so the only value I changed was the meta_value, to “liked_count”. I get ALL the activity items returned, ordered chronologically, like before. Anyone out there want to give it a shot and post the code here? Or write […]
-
celsosoares posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 8 months ago
@r-a-y , @Dankicity thank you for your replies. Yeah I can’t get this to work either. Following r-a-y’s steps all I get returned is ALL of the activity items, sorted chronologically. That’s likely because my code sucks though 🙂 If anyone gets this to work, it would be awesome! It’s the only thing left to sort out […]
-
celsosoares posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 8 months ago
@r-a-y thanks for your reply! I don’t know a lot of php so please bear with me. This is what I did, based on what you suggested:
get_results("SELECT activity_id FROM $wpdb->wp_bp_activity_meta WHERE meta_value = 'favorite_count' ORDER BY meta_value"); foreach ($favorite_id as $favorite_id) { echo $favorite_id->activity_id; } ?>
etc.. Nothing gets…[Read more] -
celsosoares posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 8 months ago
Anyone?
-
celsosoares started the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 8 months ago
Hi, I would like to create a button on the activity stream page that once clicked sorts the activities by the number of favorites each of them have. In other words, the point is to show the “most popular” activity items, based on how much each was “favorited”. Note: The sorting is for favorites by everyone, […]
-
celsosoares joined the group How-To and Troubleshooting 13 years, 8 months ago
@celsosoares
Active 7 years, 3 months ago