Skip to:
Content
Pages
Categories
Search
Top
Bottom

Total number of comments in profil

  • Avatar of smuda
    smuda
    Participant

    @smuda

    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? :)

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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;

    Avatar of smuda
    smuda
    Participant

    @smuda

    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?

    Avatar of smuda
    smuda
    Participant

    @smuda

    anyone have an idea? :)

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.