{"id":250,"date":"2016-11-06T06:56:09","date_gmt":"2016-11-06T06:56:09","guid":{"rendered":"https:\/\/buddydev.com\/docs\/?p=250"},"modified":"2018-06-25T01:36:04","modified_gmt":"2018-06-25T01:36:04","slug":"buddypress-members-list-shortcode","status":"publish","type":"post","link":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/","title":{"rendered":"BuddyPress Members List Shortcode"},"content":{"rendered":"<p>Community Builder allows you to embed list of BuddyPress users using simple shortcode in the WordPress editor.<\/p>\n<p><strong>[bp-members-list]<\/strong><\/p>\n<h3>Usage:-<\/h3>\n<p>Display 10 recently active members<\/p>\n<p>[bp-members-list max=10]<\/p>\n<p>Display 10 recent active members with avatar size 90px<\/p>\n<p>[bp-members-list max=10\u00a0avatar_size=90]<\/p>\n<p>Here is a screenshot:-<\/p>\n<p><a href=\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-288\" src=\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png\" alt=\"bp-member-list-shortcode-10-users\" width=\"781\" height=\"287\" srcset=\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png 781w, https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users-300x110.png 300w, https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users-768x282.png 768w, https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users-272x100.png 272w, https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users-480x176.png 480w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/a><\/p>\n<h3><\/h3>\n<p>Here is another screenshot showing the display=extended option being used.<\/p>\n<p><a href=\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-extended-shortcode.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-289 size-medium\" src=\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-extended-shortcode-300x149.png\" alt=\"bp-member-list-extended-shortcode\" width=\"300\" height=\"149\" srcset=\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-extended-shortcode-300x149.png 300w, https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-extended-shortcode-768x382.png 768w, https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-extended-shortcode-1024x510.png 1024w, https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-extended-shortcode-480x239.png 480w, https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-extended-shortcode.png 1232w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h3>Options<\/h3>\n<h4>display<\/h4>\n<p>(string) (optional) The list display type. If not included it will display the members as list. You can use the following options to use specific display types:<\/p>\n<ul>\n<li>list :-show as an unordered list<\/li>\n<li>links :- show as list of links.<\/li>\n<li>extended:- use the theme&#8217;s members loop layout.<\/li>\n<\/ul>\n<h4>per_page<\/h4>\n<p>(int) (optional) How many items to display. Default is 20<\/p>\n<h4>include<\/h4>\n<p>(string) (optional) Comma separated list of user id&#8217;s to include in the list.<\/p>\n<h4>exclude<\/h4>\n<p>(string) (optional) Comma separated list of numeric user ids to exclude from the list.<\/p>\n<h4>user_id<\/h4>\n<p>(int) (optional) If you want to display friends list of a user, specify the user id.<\/p>\n<h4>member_type<\/h4>\n<p>(string) (optional) Comma separated list of one or more member types to restrict the list to.<\/p>\n<h4>member_type__not_in<\/h4>\n<p>(string) (optional) Comma separated list of member types which will not be included in the list.<\/p>\n<h4>meta_key<\/h4>\n<p>(string) (optional) Filter the list by specifying user meta key.<\/p>\n<h4>meta_value<\/h4>\n<p>(mixed) (optional) Filter the list by using meta key and value. meta key must be specified to use this option.<\/p>\n<h4>avatar_size<\/h4>\n<p>(int) (optional) Size of avatar to display in case of the display list,links. defaults to 32.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Community Builder allows you to embed list of BuddyPress users using simple shortcode in the WordPress editor. [bp-members-list] Usage:- Display 10 recently active members [bp-members-list max=10] Display 10 recent active members with avatar size 90px [bp-members-list max=10\u00a0avatar_size=90] Here is a screenshot:- Here is another screenshot showing the display=extended option being used. Options display (string) (optional) &#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-250","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 List 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-list-shortcode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"BuddyPress Members List Shortcode &#8226; BuddyDev Help Center\" \/>\n<meta property=\"og:description\" content=\"Community Builder allows you to embed list of BuddyPress users using simple shortcode in the WordPress editor. [bp-members-list] Usage:- Display 10 recently active members [bp-members-list max=10] Display 10 recent active members with avatar size 90px [bp-members-list max=10\u00a0avatar_size=90] Here is a screenshot:- Here is another screenshot showing the display=extended option being used. Options display (string) (optional) ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/\" \/>\n<meta property=\"og:site_name\" content=\"BuddyDev Help Center\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-06T06:56:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-25T01:36:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png\" \/>\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-list-shortcode\/\",\"url\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/\",\"name\":\"BuddyPress Members List Shortcode &#8226; BuddyDev Help Center\",\"isPartOf\":{\"@id\":\"https:\/\/buddydev.com\/docs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png\",\"datePublished\":\"2016-11-06T06:56:09+00:00\",\"dateModified\":\"2018-06-25T01:36:04+00:00\",\"author\":{\"@id\":\"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\"},\"breadcrumb\":{\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#primaryimage\",\"url\":\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png\",\"contentUrl\":\"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png\",\"width\":781,\"height\":287},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/buddydev.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"BuddyPress Members List 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 List 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-list-shortcode\/","og_locale":"en_US","og_type":"article","og_title":"BuddyPress Members List Shortcode &#8226; BuddyDev Help Center","og_description":"Community Builder allows you to embed list of BuddyPress users using simple shortcode in the WordPress editor. [bp-members-list] Usage:- Display 10 recently active members [bp-members-list max=10] Display 10 recent active members with avatar size 90px [bp-members-list max=10\u00a0avatar_size=90] Here is a screenshot:- Here is another screenshot showing the display=extended option being used. Options display (string) (optional) ...","og_url":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/","og_site_name":"BuddyDev Help Center","article_published_time":"2016-11-06T06:56:09+00:00","article_modified_time":"2018-06-25T01:36:04+00:00","og_image":[{"url":"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png","type":"","width":"","height":""}],"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-list-shortcode\/","url":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/","name":"BuddyPress Members List Shortcode &#8226; BuddyDev Help Center","isPartOf":{"@id":"https:\/\/buddydev.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#primaryimage"},"image":{"@id":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#primaryimage"},"thumbnailUrl":"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png","datePublished":"2016-11-06T06:56:09+00:00","dateModified":"2018-06-25T01:36:04+00:00","author":{"@id":"https:\/\/buddydev.com\/docs\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb"},"breadcrumb":{"@id":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#primaryimage","url":"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png","contentUrl":"https:\/\/buddydev.com\/docs\/files\/2016\/11\/bp-member-list-shortcode-10-users.png","width":781,"height":287},{"@type":"BreadcrumbList","@id":"https:\/\/buddydev.com\/docs\/buddypress-shortcodes\/buddypress-members-list-shortcode\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/buddydev.com\/docs\/"},{"@type":"ListItem","position":2,"name":"BuddyPress Members List 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\/250","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=250"}],"version-history":[{"count":7,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":1043,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/posts\/250\/revisions\/1043"}],"wp:attachment":[{"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buddydev.com\/docs\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}