Reply To: Custom Post Type Support for Activity
1/ I don’t understand why you are switching to the page post type ?
2/ Where is registered the sd_article post type ?
3/ if you’re the one registering the post type, maybe you should define the BuddyPress activity support directly when registering it. eg:
function plugin_registers_post_type() {
$args = array(
'public' => true,
'labels' => array(
'name' => __( 'Artikel', 'your-plugin-textdomain' ),
'singular_name' => __( 'Artikel', 'sozialdynamik' ),
'bp_activity_admin_filter' => __( 'Neuer Artikel veröffentlicht', 'sozialdynamik' ),
'bp_activity_front_filter' => __( 'Artikel', 'sozialdynamik' ),
'bp_activity_new_post' => __( '%1$s hat den neuen <a href="%2$s">Artikel</a>', 'sozialdynamik' ),
'bp_activity_new_post_ms' => __( '%1$s hat den neuen <a href="%2$s">Artikel</a>, on the site %3$s', 'sozialdynamik' ),
),
'supports' => array( 'title', 'editor', 'buddypress-activity' ),
'bp_activity' => array(
'component_id' => 'activity',
'action_id' => 'new_sd_article',
'contexts' => array( 'activity', 'member' ),
'position' => 100,
),
);
register_post_type( 'sd_article', $args );
}
add_action( 'init', 'plugin_registers_post_type' );
Just like it’s explained here: https://codex.buddypress.org/plugindev/post-types-activities/#adding-the-buddypress-support-and-specific-labels-at-post-type-registration