Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom Post Type to Activity stream

  • @jwind

    Participant

    Seems at some point there was an if statement that prevented the activity stream that excluded anything but the WP native posts from being called.

    `if (‘post’ != $post->post_type){return false;}`

    Ok, that makes sense. From what i’ve gathered, there was a ticket created. I’m un clear on how it was adressed. Either way, I’m struggling with making it happen.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @etivite

    Member

    https://buddypress.trac.wordpress.org/ticket/3460

    otherwise – use the lower level bp-core function for add activity entries (or just copy the blog activity add function and change the cpt check)

    @r-a-y

    Keymaster

    In BP 1.5, the “bp_blogs_record_post_post_types” filter was added so you can add additional post types by hooking into the filter:
    https://buddypress.trac.wordpress.org/browser/tags/1.5.1/bp-blogs/bp-blogs-functions.php#L168

    @etivite

    Member

    i’m getting rusty if i can’t remember all the filters :-P

    @revolutionfrance

    Participant

    Hello, having the same problem here both for comments ant posts on custom posts, trying the following code (for comments) in functions.php, but to no avail:
    function bbg_record_my_custom_post_type_comments( $post_types ) {
    $post_types[] = 'videos'; // Add your custom post type name to the array. If you have a post type called 'dolphin' then you have a weird plugin
    return $post_types;
    }
    add_filter( 'bp_blogs_record_comment_post_types', 'bbg_record_my_custom_post_type_comments' );

    I am running Bp 1.5.2 and Wp 3.3… Any kind of help would be really appreciated :-) Thx

    @revolutionfrance

    Participant

    Anyone?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Post Type to Activity stream’ is closed to new replies.
Skip to toolbar