Reply To: [Resolved] custom post type – activity stream thumbnail
Hello, I am succesfuly using @rogercoathup ‘s snippet in bp_custom.php to display custom post type activity, but I would like to use more then ONE CPTs in my activity stream, how can I use it for 2 or more Custom Post Types? Do I have to replicate this code or does exist some hack how to do it for multiple Types?
add_filter( ‘bp_blogs_record_post_post_types’, ‘inspired_record_more_types’ );
function inspired_record_more_types( $types ) {
$types[] = ‘my-cpt-name’;
return $types;
}