Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can't get CPT front end activity filter to show CPT in BP 2.2


  • rossagrant
    Participant

    @rossagrant

    Hey guys,

    So after the new activity CPT feature in BP 2.2, I have registered a CPT I have on my site that deals with a site notice board.

    Using the example that is given in the codex, my code looks like this:

    /**
    	 * Register any post types
    	 *
    	 * @since 	Notice Board (1.0)
    	 * @access	public
    	 */
    	public function register_post_types() {
    		register_post_type(	$this->post_type, array(
    			'labels'              => array(
    				'name'               => __( 'Notices',                   'nb' ),
    				'menu_name'          => __( 'Notices',                   'nb' ),
    				'singular_name'      => __( 'Notice',                    'nb' ),
    				'all_items'          => __( 'All Notices',               'nb' ),
    				'add_new'            => __( 'New Notice',                'nb' ),
    				'add_new_item'       => __( 'Create New Notice',         'nb' ),
    				'edit'               => __( 'Edit',                      'nb' ),
    				'edit_item'          => __( 'Edit Notice',               'nb' ),
    				'new_item'           => __( 'New Notice',                'nb' ),
    				'view'               => __( 'View Notice',               'nb' ),
    				'view_item'          => __( 'View Notice',               'nb' ),
    				'search_items'       => __( 'Search Notices',            'nb' ),
    				'not_found'          => __( 'No notices found',          'nb' ),
    				'not_found_in_trash' => __( 'No notices found in Trash', 'nb' ),
    				'parent_item_colon'  => __( 'Notice:',                   'nb' ),
    				'bp_activity_admin_filter' => __('New Notice Published', 'nb'),
    				'bp_activity_front_filter' => __('Notices', 'nb'),
    				'bp_activity_new_post' => __('%1$s posted a new <a href="%2$s">notice</a>', 'nb'),
    				'bp_activity_new_post_ms' => __('%1$s posted a new <a href="%2$s">notice</a>', 'nb')

    EVERYTHING works fine EXCEPT the CPT DOES NOT show in the front-end activity filter.

    The backend filter in the activity dashboard is there and so are the activity items, referencing the CPT posts.

    There is just no front-end filter listed for ‘Notices’.

    Any ideas what i could be doing wrong?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't get CPT front end activity filter to show CPT in BP 2.2’ is closed to new replies.
Skip to toolbar