This topic has 5 replies, 3 voices, and was last updated 10 years by guy_fraser.

  • Author

    Tagged: ,

  • #16207
     vasikgreif
    Participant

    Is there a setting to make new blog posts show in the Activity stream, as on the demo page?

    I’m also trying to add custom post type with the following code, but I guess that cannot work as long as the regular posts are not showing:

    COPY CODE
    add_filter ( 'bp_blogs_record_post_post_types', 'activity_publish_custom_post_types',1,1 );
    function activity_publish_custom_post_types( $post_types ) {
        $post_types[] = 'second-hand';
        return $post_types;
    }
    
    add_filter('bp_blogs_activity_new_post_action', 'record_cpt_activity_action', 1, 3);
    function record_cpt_activity_action( $activity_action, $post, $post_permalink ) {
        global $bp;
        if( $post->post_type == 'second-hand' ) {
    
            $activity_action = sprintf( __( '%1$s created a new second hand item, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '' . $post->post_title . '' );
    
        }
       return $activity_action;
    }
    #16350
     Abe
    Keymaster

    Buddypress is only going to show activity that has taken place after Buddypress has been installed. It will show you any activity after the plugin install

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #16353
     vasikgreif
    Participant

    Hi Gabriela, installing BuddyPress was the very first thing I did, but still after adding a new blog post, nothing is in the Activity…

    #16375
     guy_fraser
    Participant

    You have to turn on tracking of stuff external to BP, here’s how…

    Site Admin > Settings > BuddyPress > Components tab > Tick “Site Tracking” then Save

    Attachments:
    You must be logged in to view attached files.
    #16377
     vasikgreif
    Participant

    That was the problem, thanks!

    #16378
     guy_fraser
    Participant

    Awesome 🙂 Please mark the topic as Resolved (top of page)

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘New blog posts are not showing in the Activity stream’ is closed to new replies.

Log in with your credentials

Forgot your details?