Note: This guide is for use with BuddyPress 2.4+. The Cover Images feature uses the BP Theme Compat API to maximize its compatibility with most WordPress themes. It allows members of your community, and groups administrators to upload an image to prettify their headers. Themes using the BP Theme Compat API This is the […]
BuddyPress Cover Images
Published on October 9th, 2015 by Mathieu VietTemplate Overload from a Plugin
Published on May 22nd, 2014 by shanebpNote: overloading and / or adding templates from plugins can be quite complex. For more detailed discussion and examples, please see: Upgrading older plugins that bundle custom templates for BP 1.7 Using BP Theme Compat in Plugins Theme Compatibility & Template Files The purpose of this page is to provide a simple example of overloading […]
Using bp_parse_args() to filter BuddyPress template loops
Published on April 16th, 2014 by r-a-yPrologue In the past, it has been extremely difficult to filter any BuddyPress template loop. For example, let’s say I wanted all activity loops to show the last five entries instead of the default of 20. It was possible, but basically you’d either have to requery the activity loop to grab the last five entries […]
Playing with the user’s ID in different contexts
Published on November 23rd, 2013 by Mathieu VietBuddyPress 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, […]
bp_get_template_part Filter
Published on February 28th, 2013 by modemlooperUse the bp_get_template_part filter when you want to filter the template returned by BuddyPress’s bp_get_template_part() function. Your filter should accept three arguments ( $templates, $slug, $name ). The example below illustrates how you can use the bp_get_template_part filter to change the template that’s used to display the activity tab of a member’s profile. Note: For […]
bp_get_the_profile_field_value()
Published on December 17th, 2012 by modemlooperProfile fields have a filter that adds a link to certain words that are used to search members with. To remove this filter: Source File bp_get_the_profile_field_value() is located in bp-xprofile/bp-xprofile-template.php
bp_ajax_querystring()
Published on December 4th, 2012 by modemlooperYou can filter the output of the Activity loop using bp_ajax_querystring. Read about other queries you can pass the activity stream and learn more about the Activity loop here. To filter ajax: Source File bp_ajax_querystring() is located in bp-core/bp-core-template.php