Skip to:

Search Results for 'number of members is wrong'

Viewing 25 results - 1 through 25 (of 44 total)
  • Author
    Search Results
  • #309112

    In reply to: Wrong User counting


    Can confirm this looks odd.

    Alle leden 2.651 (all members -> of groups ?)
    Mijn vrienden 3

    Sorteren: Alfabetisch

    Je bekijkt 1 – 20 van 3.325 leden (all users )

    Dashboard :
    Alle (3.325) -> all users
    Participant (2.651) -> buddypress groups participants.

    If i search members (as admin) for a non group participant it does show up.

    However logging in as normal user (member of 2 groups) the total count is 2651 and non group participants don’t show up, which makes perfect sence.
    However sorting alfabetcally indeed returns the number 3.325. And searching a non participant does now show up.

    Something seems wrong indeed.


    Hello everyone,

    I encountered a weird behaviour on the total number of user :
    In my dashboard, I have a total of 698 users. On my “Members” page, the total number indicated is 597. But, if I set the filter from “Active recently” (where i have 597), to “Alphabetical order”, the total number indicated goes up to 698 users.

    What is happening and how can i have the right number of users ?

    Thank you very much



    we emptied out some spam memberships from your database, and we need to know what happens next to update the count on the activity page.

    The registration on my website is showing the wrong figures as 112904 members the link for that page is activity page. It should be correct and we have also use repair logs but the number is still visible. How to solve the counter or reset it.


    Some time ago I updated the buddypress component, and now the member profile pages come out wrong.

    The information I earlier had in this pages is listed as a separate column under the cryptic heading “View Base”, while a number of entries have been added on the left hand side “Profile, Groups, Docs”

    I want to remove all of this except the personal data fields. How do I do this?

    I want to remove “View Base” and “Profile, Groups 3, Docs” in all profiles like this:

    Hope someone can give me a tip..

    dolf h

    Hi there! I ‘m trying to change the number of members per page. I changed the bp-members-template.php from 20 to 150 and I added <?php if ( bp_has_members ( ‘per_page=150’ ) ) : ?> to the members.loop.php but without succes. What am I doing wrong? Do I have to change another template?


    I am trying to show the field/fields that are required, but do not have any data.

    The following works when they are not set (during the members first visit to the site)

    //Check For Mandatory Profile fields - 
    $has_profile_pic = get_user_meta(bp_loggedin_user_id(), 'has_avatar', true);
    $has_cph_maxtopay = xprofile_get_field_data('Cost Per Hour');
    $has_age_ranges = xprofile_get_field_data('Age Ranges Of Children Able To Sit');
    $has_age = xprofile_get_field_data('Age');
    $has_suburb = xprofile_get_field_data('Suburb');
    $has_mobile = xprofile_get_field_data('Mobile Phone Number');
    $has_gender = xprofile_get_field_data('Gender');
    $member_type = xprofile_get_field_data('Member Type');
    //Check to see if profile items are set 
    //If not get error on screen to display
    if (empty($member_type)) {
    $error = $error + 1;
    $error_text = $error_text .'<li>Member Type</li>';
    } else {
    if (empty($has_cph_maxtopay)) {
    $error = $error + 1;
    $error_text = $error_text .'<li>Cost Per Hour/Max To Pay</li>';
    if (empty($has_age_ranges)) {
    $error = $error + 1;
    $error_text = $error_text .'<li>Age Ranges Of Children Able To Sit/Age Ranges of Kids</li>';
    if (empty($has_age )) {
    $error = $error + 1;
    $error_text = $error_text .'<li>Age</li>';
    if (empty($has_suburb )) {
    $error = $error + 1;
    $error_text = $error_text .'<li>Suburb</li>';
    if (empty($has_mobile )) {
    $error = $error + 1;
    $error_text = $error_text .'<li>Mobile</li>';
    if (empty($has_gender )) {
    $error = $error + 1;
    $error_text = $error_text .'<li>Gender</li>';

    I know I’m probably using the wrong function, but the xprofile_get_field_data will return the currently saved item for a user. Hence the reason why it works so well on a new user, the fields are emtpy. I want to check on the unsaved data when they click on save as well, so that I can show them what field is in error, and also highlight the field as well, so they can be guided visually to fill it in.

    IE They clear their cost per hour value, and I want to tell them it’s empty, and not just the generic Please make sure you fill in all required fields in this profile field group before saving.
    Let me know where I am going wrong with this.



    Why ? Don’t know!

    Have you an unique page for “members” and “groups” ?
    Have you permalinks activated (and not “default”) ?
    Are you on a regular or multisite install ?
    Have you searched the forum before asking ?

    For a possible solution, read for example:

    [Resolved] Wrong member count



    I have a problem.
    When I see all the groups, I can see 20 members for a group.
    But when I go to the admin page of this group, there is only 2 members (1admin + 1 member) and it’s the right number of members.

    See :

    Why i have this difference ?
    How can I fix it ?

    pending to your reply.

    Theodor Rehtisch

    Hello everyone,

    I’m experiencing some strange behavior of the BuddyPress 2.7.2 Groups.

    First of all, the call
    returns the wrong slug. It should return ‘gruppen’ but still returns ‘groups’. The slug of the page was set to ‘gruppen’ and the page has been set as the groups page.

    Second, the number of members in a group is incorrect. I got a group with 3 members in it, but in the backend (on the groups page) and on the frontend it says that there are 4 members.

    Third, after the last update some users complained that they wont see all the groups they’re in. I checked that in the backend, the users are still registered in their correct groups, so the frontend output is messed up.

    What could have gone wrong? Is the database damaged?


    Hi, I’m new to BP, and I’m running WPMU.
    I meet a strange situation.I saw some thread about member count, but there weren’t solutions.

    My test site shows “All Members 10” in Members page.
    This is strange, because there are 7 users in the ‘WP_Signup’ table and 9 users in the ‘WP_Users’ table. I thought BP might pull the number of users from WP-user table, but I’m still curious why it’s 10 not 9.

    I’m guessing BP has its own cache system. Does anyone have idea?


    I added a Post Tab to my Buddypress Navigation Tab Menu which displays the latest Posts and Custom Posts for each user.

    Now I want to add the total number of all Posts (standard wordpress posts and CPT posts) but only standard posts get counted. What am I doing wrong?

    function bpck_post_profile_setup_nav() {
    	global $bp;
    	$parent_slug = 'post';
    	$child_slug = 'post_sub';
        $post_count = count_user_posts(  bp_displayed_user_id(), array('video','discography','post' ) );
    	bp_core_new_nav_item( array(
    	'name' => 'My Posts <span>'.$post_count.'</span>',
    	'slug' => $parent_slug,
    	'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/',
    	'screen_function' => 'profile_page_show_screen',
    	'position' => 40,
    	'default_subnav_slug' => $child_slug
    	) );
    	function profile_page_show_screen() {
    	add_action( 'bp_template_content', 'profile_post_page_screen_content' );
    	bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    	function profile_post_page_screen_content() {
    		do_action( my_profile_post);
    add_action( 'bp_setup_nav', 'bpck_post_profile_setup_nav' );

    What’s even more confusing if I add

    function my_custom_userpostcount() {
    echo '<span>' . count_user_posts( bp_displayed_user_id(), array('video','discography','post' ) ) . ' Posts</span>';
    add_action( 'bp_before_member_header_meta', 'my_custom_userpostcount');

    to the user header, the total count number is correct, it counts all post types in the array.

    Don’t know what I’m doing wrong.


    My member numbers since the recent upgrade are wrong. I have tried the Repair total members count tool and it’s had no effect. I have no caching software installed and I have tried using a different theme.

    Any help much appreciated.



    Hi all,
    I’ve been trying to use a function to limit or remove the use of private messaging for certain user groups. Im using the latest WP and BP and also pmpro to manage my memberships.
    I realise this has been asked before but none of the functions that have been posted in previous threads have worked (however, as a complete novice i may be doing something wrong).
    Ideally i would like to limit the number of private messages per week for a certain membership level, but would be happy to just remove the option to pm altogether if limiting isn’t a option.
    Thank you in advance for any suggestions or advice you can offer me


    Hello guys,

    I have a problem in members directory it counts wrong.
    Viewing 1-n from n members shows wrong number .

    Is there any way to remove this ? (viewing….)

    i use buddypress 2.3.5 and wordpress 4.3.1 with kleo theme

    thanks a lot



    I’m new to wordpress/buddypress and I’m having trouble displaying field names.
    I have a field named “Age:” and using the following code:

    bp_member_profile_data( 'field=Age:' );

    in the members-loop file, the members age is displayed. I would like to add “Age: ” in front of the number, I searched and found this thread:

    but all the suggestions leave me with a blank members page???
    If I remove the opening and closing php tags for the bp_member_profile_data section and use

    <p>Age: <php bp_member_profile_data( 'field=Age:' );?><p>

    I get the following under all profiles despite only one having an age value set:

    /*** * If you want to show specific profile fields here you can, * but it’ll add an extra query for each member in the loop * (only one regardless of the number of fields you show): * * bp_member_profile_data( ‘field=the field name’ ); */


    the one profile with an age value set isn’t shown.
    Can anyone see where I’m going wrong with this?


    Please i need help, all member count on my website is showing 3 instead of 1. i am the only registered member. i have checked my database to see that i am the only one registered. i have deactivated all plugins and changed my theme to Twenty Fifteen but still showing the wrong number. Please i need help i am going crazy here

    wordpress version: 4.3.1–en_GB
    buddypress version: 2.4.0

    link to my site


    Hi, struggling to get any of the the code in post #190874 to work. I have created a bp-custom.php file which I have uploaded to the root of the buddpress folder and my code looks like this:

    // deny access to admins profile. User is redirected to the homepage
    function bpfr_hide_admins_profile() {
    	global $bp; 
    	if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) :
    		wp_redirect( home_url() );
    add_action( 'wp', 'bpfr_hide_admins_profile', 1 );
    // Remove admin from the member directory
    function bpdev_exclude_users($qs=false,$object=false){
        $excluded_user='1'; // Id's to remove, separated by comma
        if($object != 'members' && $object != 'friends')// hide admin to members & friends 
        return $qs;
        return $qs;	
    		$args['exclude'] = $args['exclude'].','.$excluded_user;
    		$args['exclude'] = $excluded_user;
        $qs = build_query($args);
        return $qs;
    // once admin is removed, we must recount the members !
    function bpfr_hide_get_total_filter($count){
        return $count-1;
    // hide admin's activities from all activity feeds
    function bpfr_hide_admin_activity( $a, $activities ) {	
    	// ... but allow admin to see his activities!
    	if ( is_site_admin() )	
    		return $activities;	
    	foreach ( $activities->activities as $key => $activity ) {	
    		// ID's to exclude, separated by commas. ID 1 is always the superadmin
    		if ( $activity->user_id == 1  ) {			
    			unset( $activities->activities[$key] );			
    			$activities->activity_count = $activities->activity_count-1;			
    			$activities->total_activity_count = $activities->total_activity_count-1;			
    					$activities->pag_num = $activities->pag_num -1;				
    	// Renumber the array keys to account for missing items 	
    	$activities_new = array_values( $activities->activities );		
    	$activities->activities = $activities_new;	
    	return $activities;
    add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );

    Not sure what I am doing wrong. All help gratefully received! Thanks


    I’d like to display the latest Posts, Images and Videos posted by a User in Subtabs of My Contributions tab in the profile of each member. Images and Videos are both custom post types.

    I found an example how to set up a Tab with a single subtab. I got this working:
    But I’m stuck how to add the custom post types images and videos in seperate sub tabs. These should be displayed as thumbnails. Not sure how to achieve this. I tried to copy the given code for a second sub tab but what happens then that all the latest posts disappear and only the latest images of the current logedin member get displayed in the subtab, not the images of the specfici author. So I must be doing something completely wrong.

    That’s what I tried:`

    function bpfr_get_post() {
    	 * to get all post, comment the line 'author'
    	$myposts = get_posts(  array(
    	'posts_per_page' => 25, // set the number of post to show
    	'author'         => bp_displayed_user_id(), // show only this member post
    	'post_type'      => 'post',
    	'orderby'          => 'post_date',
    	'order'            => 'DESC',
    	'post_status'      => 'publish'
    	if( ! empty( $myposts ) ) { 
    		foreach($myposts as $post) {
    			setup_postdata( $post );
    			$page_object = get_post( $post );			
    			 * uncomment next line to show only a list of titles linked to full post
    			 * if you uncomment, you have to comment the 2 echo below
    		echo '<a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a><br />';			
    			 * comment the 2 following echo (or remove them) if you use the above
    		 // echo '<h3 class="profile_post">'. $page_object->post_title .'</h3>';
    		 // echo $page_object->post_content;
    	} else { 
    		echo '<div class="info" id="message">No post to show actually.</div>';
    add_action ( 'my_profile_posts', 'bpfr_get_post' );
    function bpfr_get_image() {
    	$myimages = get_posts(  array(
    	'posts_per_page' => 25, // set the number of post to show
    	'author'         => bp_displayed_user_id(), // show only this member post
    	'post_type'      => 'image',
    	'orderby'          => 'post_date',
    	'order'            => 'DESC',
    	'post_status'      => 'publish'
    	if( ! empty( $myimages ) ) { 
    		foreach($myimages as $post) {
    			setup_postdata( $post );
    			$page_object = get_post( $post );			
    			 * uncomment next line to show only a list of titles linked to full post
    			 * if you uncomment, you have to comment the 2 echo below
    		echo '<a title="' . get_the_title($post->ID) . '" href="' . get_permalink($post->ID) . '">' . get_the_post_thumbnail($post->ID, 'thumbnail') . '</a>';			
    	} else { 
    		echo '<div class="info" id="message">No images to show actually.</div>';
    add_action ( 'my_profile_image', 'bpfr_get_image' );
    function bpfr_post_profile_setup_nav() {
    	global $bp;
    	$parent_slug = 'posts';
    	$child_slug = 'posts_sub';
    	$child_slug2 = 'images_sub';	
    	bp_core_new_nav_item( array(
    	'name' => __( 'My contributions' ),
    	'slug' => $parent_slug,
    	'screen_function' => 'bpfr_profile_post_screen',
    	'position' => 50,
    	'default_subnav_slug' => $child_slug 
    	) );
    	//Add subnav item 	 
    	bp_core_new_subnav_item( array( 
    	'name' => __( 'Latest posts' ), 
    	'slug' => $child_slug, 
    	'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 
    	'parent_slug' => $parent_slug, 
    	'screen_function' => 'bpfr_profile_post_screen'
    	) );
    	//Add subnav item 	 
    	bp_core_new_subnav_item( array( 
    	'name' => __( 'Latest images' ), 
    	'slug' => $child_slug2, 
    	'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 
    	'parent_slug' => $parent_slug, 
    	'screen_function' => 'bpfr_profile_image_screen'
    	) );
    function bpfr_profile_post_screen() {	
    	add_action( 'bp_template_content', 'bpfr_profile_post_screen_content' );
    	bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    function bpfr_profile_post_screen_content() {
    	do_action( my_profile_post);
    function bpfr_profile_image_screen() {	
    	add_action( 'bp_template_content', 'bpfr_profile_image_screen_content' );
    	bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    function bpfr_profile_image_screen_content() {
    	do_action( my_profile_image);
    add_action( 'bp_setup_nav', 'bpfr_post_profile_setup_nav' );

    I’m really new to this, so please forgive me if I’m asking help for something that might be obvious for anyone else. I really would appreciate if someone could guide me to a solution. Thanks a lot!


    Hey all,

    The “members” tab on my site-wide activity stream is showing the wrong member count and member are not showing up in the members list. It says 22 on BP, but according to my WP dashboard subscribers list I have 28.

    I had two new registers in the past hour and neither one will show up in the members list on the front end although they do show up in the backend. The activity stream does show they registered as a member as well. I just did a major design change but I’ve been creating fake accounts and they showed up the member list although I didn’t notice the number glitch until today.

    What could be going on that new registers would populate under members two days ago with no changes but not today? I did remove my caching plugin (W3) because it was glitching the HTML on my registration page. But I’m not sure how not having a caching plugin would interfere with how BP runs.

    I’ve been digging around the members-functions file but I honestly don’t know where to start. Any pointers. I want to get this fixed asap, as you can imagine.


    @shanebp – Thank you this works really well. Weird, bug though. If you use the text search box, this breaks the pagination (without me editing any of your code). I’m guessing it has something to do with the URL parameters?


    This doesn’t break the pagination on the first page, but on page 2 and then when clicking back to page 1. The label displaying the number of members etc. is wrong and also the number of results per page is then wrong as it displays all results.

    Interestingly, is it not possible to pass additional parameters either via members-loop.php? e.g.

    if ( bp_has_members( bp_ajax_querystring( 'members' ).'member_type=expert' ) ) :

    or via your code in bp-custom.php? I’m thinking I’m getting something mixed up when trying to add these additional parameters. It’s because I wanted to make use of the new ‘member_type’ in the latest version of BuddyPress but using a ‘member_type=exampletype’ doesn’t seem to work.


    Most likely the reason for that discrepancy is because the users may have activated their account but have yet to login for the first time. I think this is default behavior but I could be wrong. I have noticed they do not get added to the directory until they login the first time.


    >how is this ‘too complicated’?
    Can you code it?
    How would you explain it to membership?

    >the user doesn’t know that they are in a sandbox
    lol, and that won’t lead to a flurry of support submissions?

    For public sites, there has to be a balance between driving membership numbers and ‘protecting’ existing members.
    An abuse / spam flag system strikes that balance & members will recognize it & admins only deal with flags. If admins handle the flags in a timely fashion, the membership response will be very positive.

    Your idea is kinda interesting, but dev’ing a generic solution will be impossible.
    If you release it as a plugin, damn near everyone using it will ask for some kind of tweak.

    That said, prove me wrong, please!

    Hugo Ashmore

    @emeraldryan Their advice was wrong, why come here, what are we to suggest? You have a huge user base they are saying their server config can’t handle the processes being spawned /run   or timing out trying to load those members, this is a server issue, and even if it’s a case that BP may not be well written in terms of caching member objects that for the moment is how it works.


    Are these all genuine members as it is a surprisingly large number, few independent social sites do truly ever get anywhere near those sorts of numbers.



    I have had a look at a number of different posts which detail different ways and snippets of code to get buddy press working with themes. The instructions seem to be different for each one, as the theme

    tags are different, I assume.

    I’ve tried to edit the files to make them the same as my page.php in the theme but I can’t work out how to do it.

    Can anyone help me please? If I post up the page.php output, would that be sufficient for someone to tell me where I’m going wrong? I’ve seen some really helpful posts from @mercime so I’d be very grateful if you would be able to help.

    Thanks in advance,


    Did you check the link I gave?
    Here is the post from that link:
    “Not a bbPress problem. Looks like your theme is a child theme of BuddyPress’s bp-default, and it uses hardcoded relative paths in its @import rules. Any number of things could be going wrong here, but it wasn’t updating bbPress that caused this to happen.”

    This reply is blaming the problem on BuddyPress & not bbPress. Surely both bbPress & BuddyPress should integrate together?
    So whether it was bbPress or BuddyPress plugin update that has caused my theme to lose its format does anyone know how I can fix this please?

Viewing 25 results - 1 through 25 (of 44 total)
Skip to toolbar