Skip to:
Content
Pages
Categories
Search
Top
Bottom
Codex Home

Moderate Activity Streams

Published on November 9th, 2014 by @mercime

BuddyPress provides admin dashboard panels to help you manage all the different activities throughout the site, similar to the way you manage comments and other content. This screen is customizable in the same ways as other management screens, and you can act on activities using the on-hover action links or the Bulk Actions. There are […]

Twenty Ten Theme

Published on December 6th, 2013 by @mercime

A. One column Layout If you prefer to have a one column layout for all your BuddyPress pages, follow the steps below. 1. Create a child theme of the Twenty Ten theme. 2. Create a new file in your new child theme folder and name it buddypress.php. 3. The Twenty Ten theme has a one […]

Twenty Thirteen Theme

Published on December 5th, 2013 by @mercime

A. One column Layout This is the default layout of the Twenty Thirteen theme if and only if you do not add any widget in the Secondary Widget area in Appearance > Widgets. Otherwise, the Twenty Thirteen theme will automatically have a two-column layout if you add widget to the Secondary Widget area. If you […]

Twenty Twelve Theme

Published on December 5th, 2013 by @mercime

A. One column Layout 1. Create a child theme of the Twenty Twelve theme. 2. Create a new file in your new child theme folder and name it buddypress.php. 3. Copy over the content of Twenty Twelve’s full-width.php file into the new buddypress.php file. 4. The buddypress class is generated in the body tag automatically […]

Twenty Eleven Theme

Published on December 5th, 2013 by @mercime

A. One Column Layout This is the default page layout of the Twenty Eleven theme. There’s no need to do anything else if this is the layout you prefer for all your BuddyPress pages. B. Full-width page If you prefer to have a full-width layout for all your BuddyPress pages, follow the steps laid out […]

Add custom filters to loops and enjoy them within your plugin

Published on December 3rd, 2013 by Mathieu Viet

BuddyPress uses loops to display the content of its components. In this article you will focus on how to “rearrange” the content displayed in four of its major components : Members, Groups, Blogs and finally Activity. You will achieve this thanks to the type or action argument of the init functions of each of these […]

Playing with the user’s ID in different contexts

Published on November 23rd, 2013 by Mathieu Viet

BuddyPress Core is first taking care of the members. As a result, when you write a BuddyPress plugin, there is a very good chance that you’ve got to play with the finest element identifying the users : their ID. There are two scenarios: the logged in user and the user whose profile is displayed. Thankfully, […]

Enqueueing Scripts or Styles only when your plugin needs it

Published on November 17th, 2013 by Mathieu Viet

Using Javascipt or CSS in BuddyPress plugins are interesting ways to take care of the user experience. I think, as a plugin author, you need to have two concerns : you might not be the only one to use Javascript, other plugins can be activated in the community website, your CSS rules might not get […]

Adding Plugin’s Options to BuddyPress Settings Page

Published on November 9th, 2013 by Mathieu Viet

When writing your plugin you may need to give the community administrator the ability to set some options about it to eventually let him customize some behaviors. When you have a lot options, you would use the WordPress built in add_options_page() or add_submenu_page() functions to create your plugin’s settings page. But, If your plugin only […]

Group Meta Queries: Usage Example

Published on November 4th, 2013 by Mathieu Viet

Since version 1.8, it is possible to filter groups by Metadata. For instance you can add a meta_query parameter to the bp_has_groups() function. To make this possible, BuddyPress uses a built-in WordPress class : WP_Meta_Query (you will find a link to its WordPress codex page at the bottom of this article). This feature can help […]

Skip to toolbar