Multiple custom post types in activity stream
-
I have posted the comment on support forum yesterday, but I have never see it published maybe because the thread was marked as (resolved) so I will ask again:
I am succesfuly using @rogercoathup ‘s snippet in bp_custom.php to display custom post type in activity stream, 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? When replicating this code it does nothing, does exist some code how to do display multiple Custom Post 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; }
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Multiple custom post types in activity stream’ is closed to new replies.