WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to remove the post content from the buddypress activity stream and would like to replace the content/body with a custom field that I've added in.

Any ideas where I should be looking? I've been looking around for a while and cant seem to figure it out.

I am using WordPress 3.4.1 & Buddypress 1.5.6

share|improve this question

closed as off-topic by toscho Aug 2 '14 at 20:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

You should state which versions of WP and BP you're using.

This should change the content part of what is recorded. You can put it in your theme's functions.php

add_filter( 'bp_blogs_activity_new_post_content', 'record_post_activity_content', 1, 3 );
function record_post_activity_content($activity_content, $post, $post_permalink ){
    if( $post->post_type == 'post' ) {
        $activity_content = 'your custom field';
        return $activity_content;
share|improve this answer
Sorry, my bad forgot about that! WordPress 3.4.1 & Buddypress 1.5.6 I'll try what you're recommending and get back to you, thanks! – Rob Sep 29 '12 at 23:23
Thanks, with your help I managed to get it all going :) – Rob Sep 30 '12 at 0:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.