Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do you show a member's total post count?


snark
Participant

@snark

Thanks @3sixty — after much head-wringing and a little tweak, I got your code to work perfectly:

<?php if (get_usernumposts( bp_current_user_id() ) > 0) echo " | Blog posts: " . get_usernumposts( bp_current_user_id() ); ?>

In the process I learned that “get_usernumposts()” has been deprecated in WordPress 3.0, so when that comes out I assume I’ll have to change this to work with the replacement function, “count_user_posts()”

Skip to toolbar