i have been searching but i didnt find what i was looking for. This is what i have:
SELECT user_email, post_type
FROM `wp_users`
INNER JOIN `wp_posts` ON wp_users.id = wp_posts.post_author
WHERE post_type LIKE '%topic%'
OR post_type LIKE '%reply%
it bring what i needed: I needed a query that shows me the email of an user and how many topics and replys he made (BBPRESS).
The problem is that it brings all of them but it doesnt tell me how many topics / replies the user made. This is what it brings: https://i.sstatic.net/sMymU.png Is there any way to add a 3rd column where it counts?
group byuser_emailand do acounton thepost_typecolumn.