BuddyDev

Search

Community Builder helps you to list all BuddyPress blogs count or just user blogs count easily with the shortcode.

[bp-blogs-count]

Usage:-

Display all blogs count

[bp-blogs-count]

Display total blogs of the logged in user

[bp-blogs-count type=user ]

Options

type

(string) (optional) Which type of count to display. If not included it will display the total blogs count. You can use the following options to use specific types:

  • all:- show all blogs count. It is default.
  • user:- shows count of blogs for logged in user(by default), see the ‘user’ option to show blog count for the displayed user.

user

(string) (optional) Only valid when type=’user’. Helps decide which blog count should be displayed. By default, the logged in user’s blog count is displayed.

  • logged :- Show group count for current logged user
  • displayed:- Show blogs count for displayed user.

class

(string) (optional) CSS class you want to apply to the count span element..