Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show the Total posts count and forums count for Each User

  • @vignesh-m

    Participant

    Hi there!!

    I would like to show the total post count for each user, both in their member profile without login also (below the username), and below their name whenever it appears in posts, comments, Forum Topics and Replies, activity streams, etc. Something like this:

    Vignesh 50 Posts
    10Forums

    This would be a way for everyone to easily identify the most frequent posters to the site. Anybody know how to do this? Please help Me..

    Advance Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • @henrywright

    Moderator

    Hi @vignesh-m

    The bbPress forum will be the best place to ask:

    https://bbpress.org/forums/

    @vignesh-m

    Participant

    ok..

    @danbp

    Participant

    @vignesh-m

    Participant

    Thank you i used buddyblog plugin for create and publish the posts

    Is this possible to view in this page http://test06.aachicargo.com/members/

    @vignesh-m

    Participant

    i want to show blog counts for everyuser below it’s name in member page

    @vignesh-m

    Participant

    i found and solve the issue on my ownway.. This is the code for display posts count for individual users(members).. Hope it works….

    <?php
    $user_id = bp_get_member_user_id();
    $query = new WP_Query( ‘author=’ . $user_id );

    if ( $query->have_posts() ) {
    while ( $query->have_posts() ) {
    $query->the_post();
    //display title
    /*the_title();*/
    //display content
    /*the_title();*/

    }
    }
    echo ‘Number of posts published by user: ‘ . count_user_posts($user_id);
    //reset for next member
    wp_reset_postdata();
    ?>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show the Total posts count and forums count for Each User’ is closed to new replies.
Skip to toolbar