Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Subscribers Portfolio in Buddypress Activity Stream


  • shahidjaszle
    Participant

    @shahidjaszle

    Hello everyone,

    Currently im using Bp Portfolio plugin and on my activity stream, when subscribers update on their latest portfolio didn’t show up on the stream. (Only for admin role it works fine)

    So, i added custom post type for the portfolio on custom.php, here are the code:

    add_post_type_support( ‘bb_project’, ‘buddypress-activity’ ); function customize_page_tracking_args() {

    // Check if the Activity component is active before using it.
    if ( ! bp_is_active( ‘activity’ ) ) { return; }

    bp_activity_set_post_type_tracking_args(
    ‘page’, array( ‘action_id’ => ‘new_blog_page’,
    ‘bp_activity_admin_filter’ => __( ‘Published a new page’, ‘boss’ ),
    ‘bp_activity_front_filter’ => __( ‘Pages’, ‘boss’ ),
    ‘contexts’ => array( ‘activity’, ‘member’ ), ‘activity_comment’ => true,
    ‘bp_activity_new_post’ => __( ‘%1$s posted a new page‘, ‘boss’ ), ‘bp_activity_new_post_ms’ => __( ‘%1$s posted a new page, on the site %3$s’, ‘boss’ ), ‘position’ => 100, ) ); }

    add_action( ‘bp_init’, ‘customize_page_tracking_args’ );

    It works however it didn’t display the featured image for the portfolio. Maybe im missing some code here plus im not really good at php.

    Is there any help for me to fix this?

  • You must be logged in to reply to this topic.
Skip to toolbar