Does anyone have a quick SQL statement that selects all users who have greater than 'x' number of published posts??
Thanks in advance...
B
Does anyone have a quick SQL statement that selects all users who have greater than 'x' number of published posts??
Thanks in advance...
B
I think this would do it:
select wp_users.*, count(*) from wp_users join wp_posts on post_author = wp_users.ID group by wp_users.ID having count(*) > X;
Worked a treat - I owe you one!!
B
This topic has been closed to new replies.