Hello BuddyDev Team,
I would like to know how one can make Buddypress All members counter counts all registered members not only members that at least logged in once.
Thank you in advance!
Hi,
You can usebp_core_get_total_member_count()
That will give you all count(even the users without any activity).
Regards
BrajeshHello Brajesh,
Thank you very much for your reply. Please, help me with a litle mor details, how can I use this function?
Hi,
Do you want to change it on the members directory page? If you can share a screenshot showing the location, I amy be able to assit you.Regards
BrajeshHello Brajesh,
Thank you very much for your reply. Here are the screenshot showing the location.
Thank you for the link.
I am sorry but that looks like some custom theme/template pack.I will suggest reaching out to the source of your theme/template pack to change the function as suggested above.
Regards
BrajeshHello Brajesh,
Thank you very much again for your reply and the suggestion you did. The theme used is OceanWP with Buddypress legacy template. I just customed the website with somme CSS code. Excuse me for disturbing you again with some questions : which function will I replace with the one you suggested and where can I find it ?
Thank you again for time !
Hello Brajesh,
It is okay now, thank you very much for your suggestion !
In /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/index.php
and
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.php
I replaced the function
bp_get_total_member_count()
with the one you suggested (bp_core_get_total_member_count()
)Hi,
Thank you for the replies.
It’s good to know.Have a great time building your site!
Regards
Brajesh
You must be logged in to reply to this topic.