Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Add Profile to Blog Posts


r-a-y
Keymaster

@r-a-y

You’d need to hook into “the_content” filter.

Something like this in wp-content/plugins/bp-custom.php will work:

function my_hook_into_blog_post( $content ) {
if( is_single() ) :
$profile = PROFILE STUFF; // look into bp-xprofile.php and bp-xprofile/bp-xprofile-templatetags.php to grab profile data

$content = $content . $profile;

endif;

return $content;
}
add_filter( ‘the_content’, ‘my_hook_into_blog_post’, 20 );

Skip to toolbar