{"id":263,"date":"2016-11-06T07:27:08","date_gmt":"2016-11-06T07:27:08","guid":{"rendered":"https:\/\/buddydev.com\/docs\/?p=263"},"modified":"2016-11-06T07:31:39","modified_gmt":"2016-11-06T07:31:39","slug":"buddypress-members-friends-count-shortcode","status":"publish","type":"post","link":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/","title":{"rendered":"BuddyPress Members &#038; Friends Count Shortcode"},"content":{"rendered":"<p>Community Builder helps\u00a0you to list all members count or just active members count or the friends count of a user easily with the shortcode.<\/p>\n<p><strong>[bp-members-count]<\/strong><\/p>\n<h3>Usage:-<\/h3>\n<p>Display\u00a0all active members count<\/p>\n<p>[bp-members-count]<\/p>\n<p>Display\u00a0all members count<\/p>\n<p>[bp-members-count\u00a0type=all ]<\/p>\n<h3>Options<\/h3>\n<h4>type<\/h4>\n<p>(string) (optional) Which type of count to display. If not included it will display the active members count. You can use the following options to use specific types:<\/p>\n<ul>\n<li>active\u00a0:- show\u00a0all active members count.<\/li>\n<li>all:- show all members count. It include inactive users too.<\/li>\n<li>friends:- Display the friends count of logged in user(by default, see the &#8216;user&#8217; option to show friend count for the displayed user).<\/li>\n<\/ul>\n<h4>user<\/h4>\n<p>(string) (optional) Only valid when type=&#8217;friends&#8217;. helps decide whose friends count should be displayed. By default, the logged in user&#8217;s friend count is displayed.<\/p>\n<ul>\n<li>logged :- Show friends count for current logged user<\/li>\n<li>displayed:- Show friends count for displayed user.<\/li>\n<\/ul>\n<h4>class<\/h4>\n<p>(string) (optional) CSS class you want to apply to the count span element..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Community Builder helps\u00a0you to list all members count or just active members count or the friends count of a user easily with the shortcode. [bp-members-count] Usage:- Display\u00a0all active members count [bp-members-count] Display\u00a0all members count [bp-members-count\u00a0type=all ] Options type (string) (optional) Which type of count to display. If not included it will display the active members &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9298],"tags":[],"class_list":["clearfix","post-263","post","type-post","status-publish","format-standard","hentry","category-buddypress-shortcodes"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>BuddyPress Members &amp; Friends Count Shortcode &#8226; BuddyDev Help Center<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"BuddyPress Members &amp; Friends Count Shortcode &#8226; BuddyDev Help Center\" \/>\n<meta property=\"og:description\" content=\"Community Builder helps\u00a0you to list all members count or just active members count or the friends count of a user easily with the shortcode. [bp-members-count] Usage:- Display\u00a0all active members count [bp-members-count] Display\u00a0all members count [bp-members-count\u00a0type=all ] Options type (string) (optional) Which type of count to display. If not included it will display the active members ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/\" \/>\n<meta property=\"og:site_name\" content=\"BuddyDev Help Center\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-06T07:27:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-11-06T07:31:39+00:00\" \/>\n<meta name=\"author\" content=\"Brajesh Singh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brajesh Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/\",\"url\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/\",\"name\":\"BuddyPress Members & Friends Count Shortcode &#8226; BuddyDev Help Center\",\"isPartOf\":{\"@id\":\"https:\/\/buddydev.com\/docs\/#website\"},\"datePublished\":\"2016-11-06T07:27:08+00:00\",\"dateModified\":\"2016-11-06T07:31:39+00:00\",\"author\":{\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\"},\"breadcrumb\":{\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/buddydev.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"BuddyPress Members &#038; Friends Count Shortcode\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/buddydev.com\/docs\/#website\",\"url\":\"https:\/\/buddydev.com\/docs\/\",\"name\":\"BuddyDev Help Center\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/buddydev.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\",\"name\":\"Brajesh Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/image\/\",\"url\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"contentUrl\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"caption\":\"Brajesh Singh\"},\"sameAs\":[\"http:\/\/buddydev.com\/members\/sbrajesh\/\",\"https:\/\/x.com\/sbrajesh\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"BuddyPress Members & Friends Count Shortcode &#8226; BuddyDev Help Center","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/","og_locale":"en_US","og_type":"article","og_title":"BuddyPress Members & Friends Count Shortcode &#8226; BuddyDev Help Center","og_description":"Community Builder helps\u00a0you to list all members count or just active members count or the friends count of a user easily with the shortcode. [bp-members-count] Usage:- Display\u00a0all active members count [bp-members-count] Display\u00a0all members count [bp-members-count\u00a0type=all ] Options type (string) (optional) Which type of count to display. If not included it will display the active members ...","og_url":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/","og_site_name":"BuddyDev Help Center","article_published_time":"2016-11-06T07:27:08+00:00","article_modified_time":"2016-11-06T07:31:39+00:00","author":"Brajesh Singh","twitter_misc":{"Written by":"Brajesh Singh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/","url":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/","name":"BuddyPress Members & Friends Count Shortcode &#8226; BuddyDev Help Center","isPartOf":{"@id":"https:\/\/buddydev.com\/docs\/#website"},"datePublished":"2016-11-06T07:27:08+00:00","dateModified":"2016-11-06T07:31:39+00:00","author":{"@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb"},"breadcrumb":{"@id":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-friends-count-shortcode\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/buddydev.com\/docs\/"},{"@type":"ListItem","position":2,"name":"BuddyPress Members &#038; Friends Count Shortcode"}]},{"@type":"WebSite","@id":"https:\/\/buddydev.com\/docs\/#website","url":"https:\/\/buddydev.com\/docs\/","name":"BuddyDev Help Center","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/buddydev.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb","name":"Brajesh Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/image\/","url":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","contentUrl":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","caption":"Brajesh Singh"},"sameAs":["http:\/\/buddydev.com\/members\/sbrajesh\/","https:\/\/x.com\/sbrajesh"]}]}},"_links":{"self":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":3,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/263\/revisions\/266"}],"wp:attachment":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/tags?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}