Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom Post Types and Comments in Activity Stream


  • BOW
    Participant

    @bofw

    Hi Guys

    Working on custom post types at the moment, but can’t get comments on them to appear in the activity stream.

    This code will have the post appear but not the comments.

    `function activity_publish_custom_post_types($cpts) {
    $cpts[] = ‘galleries’;
    $cpts[] = ‘downloads’;
    return $cpts;
    }
    add_filter ( ‘bp_blogs_record_post_post_types’, ‘activity_publish_custom_post_types’ );
    add_filter ( ‘bp_blogs_record_comment_post_types’, ‘activity_publish_custom_post_types’ );`

    Any IDeas?

    2) Is it possible to change the text is posts such ass User added a new Gallery (rather than blog post)

    Cheers Guys!

  • The topic ‘Custom Post Types and Comments in Activity Stream’ is closed to new replies.
Skip to toolbar