Skip to:
Content
Pages
Categories
Search
Top
Bottom
Codex Home

Member Types

Published on December 8th, 2014 by Boone Gorges

BuddyPress 2.2 introduced the concept of member types. This functionality is outlined below. Registering member types BuddyPress itself does not register any member types. Plugins and themes can register member types using the bp_register_member_type() or the bp_register_member_types() function: The first parameter of bp_register_member_type() is a string identifier for the member type, used internally by BP as […]

Useful Functions and Hacks When Using S2member w/ BuddyPress

Published on November 19th, 2014 by Myg0t

Hey there guys, i’m working on a website where i’m integrating s2member functionality with buddypress. I thought some of the things I’ve come across may be useful to other people. 1. Filter Users Displayed in Members Directory by s2member role. In your plugins/buddypress/bp-templates/bp-legacy/buddypress/members/ folder edit the file “members-loop.php”. Just under at the top 20 lines […]

Loops Reference

Published on February 28th, 2012 by Andy Peatling

Just as you use “The Loop” to loop through posts in WordPress, each content type in BuddyPress has its own custom loop. By using these loops in your template, you can output any kind of information and really customize how content is displayed within your BuddyPress theme. The default BuddyPress template files makes use of […]

Forum Topics Loop

Published on May 17th, 2010 by r-a-y

The forum topics loop can be used to output a list of forum topics. Standard Loop Accepted Parameters The bp_has_forum_topics() function will accept a number of parameters that will manipulate the data being returned. type optional List forum topics by type. Accepted arguments: newest,popular,unreplied,tags (if type equals “tags”, define the “search_terms” argument and list the […]

Profile Fields Loop

Published on April 29th, 2009 by Andy Peatling

The profile data loop is the most complex out of all the custom BuddyPress loops. It’s actually two loops in one, the first is to loop through profile field groups, and the second to loop through profile fields in that profile field group. Standard Loop Accepted Parameters The bp_group_has_profile() function will accept a number of […]

Private Messages Loop

Published on April 29th, 2009 by Andy Peatling

The private messages loop can be used to output a user’s private messages, both from their inbox and sentbox. Standard Loop Accepted Parameters The bp_has_message_threads() function will accept a number of parameters that will manipulate the data being returned. user_id optional The ID of the user to fetch messages for. By default this will be […]

Group Members Loop

Published on April 29th, 2009 by Andy Peatling

The group members loop can be used to display members that have joined a group. It can be used nested inside the bp_has_groups() loop, or on its own with a group_id parameter. Standard Loop Accepted Parameters The bp_group_has_members() function will accept a number of parameters that will manipulate the data being returned. group_id required The […]

Blogs Loop

Published on April 29th, 2009 by Andy Peatling

NOTE: This will only work with an installation of BuddyPress and WordPress MU or WordPress with multisite enabled. The site blogs loop can be used to output a list of blogs that have been created on your installation. Standard Loop Accepted Parameters The bp_has_blogs() function will accept a number of parameters that will manipulate the […]

Groups Loop

Published on April 29th, 2009 by Andy Peatling

The site groups loop can be used to output a list of groups created on your site. Standard Loop Accepted Parameters The bp_has_groups() function will accept a number of parameters that will manipulate the data being returned. type optional Defines the type of groups to return. Accepted arguments: active, newest, popular, random, alphabetical, most-forum-topics, most-forum-posts […]

Members Loop

Published on April 28th, 2009 by Andy Peatling

The site members loop can be used to output a list of users that are registered on your site. Standard Loop Accepted Parameters The bp_has_members() function will accept a number of parameters that will manipulate the data being returned. type optional Defines the type of users to return. Accepted arguments: active, newest, popular, online, alphabetical, […]

Skip to toolbar