@smuda
15 years, 2 months ago
hello everyone,
i want to display the total number of comments a user made on the users profile.
so i have like <?php bp_friend_total_for_member() ?> which display the friends, is there a way to get the same for comments..
is that possible?
@djpaul
This needs to be within the Wire template loop, but here’s what you need to get to the variable. There’s no wrapper function around this at the moment:
global $wire_posts_template; echo $wire_posts_template->total_wire_post_count;
hey DJPaul,
thanks for your quick reply!
i kind don’t understand how to include this on, for example, the index.php in the profile/ folder.
could you help me on this one?
anyone have an idea?
@smuda
15 years, 2 months ago
hello everyone,
i want to display the total number of comments a user made on the users profile.
so i have like <?php bp_friend_total_for_member() ?> which display the friends, is there a way to get the same for comments..
is that possible?