4 years, 1 month ago
I have been asked to add buddy press post counts to my plug-in author-avatars.
“Is it possible to sort avatars by BBPRESS post counts and show BBPRESS post counts instead of WP post counts”
Is it possible to get this info? all I have is the wp-userID
so I need to get_post_count_for_user($user->id)
I use the get_usernumposts for worpress core
Many thanks for any pointers
get_post_count_for_user( the_author_meta(‘ID’, $userid ) )
4 years ago
where is this function and what does it do?
I can’t find it
the function given by modemlooper doesn’t exist in WP…
Try this one: bbp_get_user_post_count( $user_id ); ?
You can also analyse this old plugin, for inspiration purpose:
For blog post counting, see here:
thanks that looks beter
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service