how do i place the code shown into a buddypress comment
I had to change the query to properly operate the module.
This is my new query :
SELECT post_id, p.post_title AS title,count(post_id) AS num FROM $wpdb->likes,$wpdb->posts as p WHERE p.id=post_id GROUP BY post_id HAVING num>1 ORDER BY num DESC LIMIT 5
SELECT likes.post_id, post.post_title AS title,count(likes.post_id) AS num FROM $wpdb->likes likes,$wpdb->posts post WHERE post.id=likes.post_id GROUP BY likes.post_id ORDER BY num DESC LIMIT 5
I have been searching for a Plugin like that for eons - thanks!
You must log in to submit a review. You can also log in or register using the form near the top of this page.