Title: Custom post
Last modified: January 10, 2017

---

# Custom post

 *  [Iuda](https://wordpress.org/support/users/iuda/)
 * (@iuda)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/custom-post-21/)
 * You plugin not shos in activity when a user i’m folowing post a post, custom 
   post.
    Your plugin works with custom post ?
 * My dashboard [http://i.imgur.com/w6Yi28P.png](http://i.imgur.com/w6Yi28P.png)
 * User who i’m folowing [http://i.imgur.com/vfF1001.png](http://i.imgur.com/vfF1001.png)
 * and who posted a post [http://i.imgur.com/Bbdf4CS.png](http://i.imgur.com/Bbdf4CS.png)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [r-a-y](https://wordpress.org/support/users/r-a-y/)
 * (@r-a-y)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/custom-post-21/#post-8662551)
 * You have to make sure that your custom post is recorded in the activity stream.
 * Can you confirm that your custom post is recorded in the activity stream?
 *  Thread Starter [Iuda](https://wordpress.org/support/users/iuda/)
 * (@iuda)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/custom-post-21/#post-8663537)
 * can you give me a hint how to figure out if my themes custom post is recorded
   in activity stream ?
 *  Plugin Author [r-a-y](https://wordpress.org/support/users/r-a-y/)
 * (@r-a-y)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/custom-post-21/#post-8665171)
 * I’m guessing from your response that you are not recording your custom post in
   the activity stream.
 * What you’ll need to do is use the `bp_activity_add()` function when you are recording
   your custom post:
    [https://buddypress.trac.wordpress.org/browser/tags/2.7.4/src/bp-activity/bp-activity-functions.php#L1753](https://buddypress.trac.wordpress.org/browser/tags/2.7.4/src/bp-activity/bp-activity-functions.php#L1753)
 * If you are registering your own custom post type to WordPress with `register_post_type()`,
   then you can also try adding the following:
 *     ```
       register_post_type( 'YOUR_POST_TYPE', array(
       	// add your custom post type arguments as usual
       	// for the 'labels' argument, add some new values so BuddyPress can customize the activity item entry:
       	'labels' => array(
       		// change the following to whatever you want
       		'bp_activity_admin_filter' => 'New custom post',
       		'bp_activity_front_filter' => 'Custom Posts',
       		'bp_activity_new_post'     => __( '%1$s posted a new <a href="%2$s">custom post</a>', 'your-text-domain' ),
       		'bp_activity_new_post_ms'  => __( '%1$s posted a new <a href="%2$s">custom post</a>', 'your-text-domain' ),
       	),
   
       	// now add a special argument to tell BuddyPress about your custom activity type:
       	'bp_activity' => array(
       		'component_id' => 'YOUR_CUSTOM_COMPONENT', // should be unique, could be the same as your custom post type
       		'action_id'    => 'new_custom_post', // change 'new_custom_post' to whatever you like
       		'comment_id'   => 'new_custom_comment', // change 'new_custom_comment' to whatever you like
       		'contexts'     => array( 'activity', 'member' ), // this adds a custom dropdown filter to the "Show" activity dropdown menu filter to both the Activity Directory and on a member's activity page.
       	)
       ) );
       ```
   
 * Then, you probably won’t need to use `bp_activity_add()` and whenever someone
   posts a new custom post, BuddyPress should automatically record an item into 
   the activity stream.
    -  This reply was modified 9 years, 5 months ago by [r-a-y](https://wordpress.org/support/users/r-a-y/).
    -  This reply was modified 9 years, 5 months ago by [r-a-y](https://wordpress.org/support/users/r-a-y/).
 *  Thread Starter [Iuda](https://wordpress.org/support/users/iuda/)
 * (@iuda)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/custom-post-21/#post-8794913)
 * where to add `register_post_type()` , in theme functions ?
    -  This reply was modified 9 years, 5 months ago by [Iuda](https://wordpress.org/support/users/iuda/).
 *  Plugin Author [r-a-y](https://wordpress.org/support/users/r-a-y/)
 * (@r-a-y)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/custom-post-21/#post-8794987)
 * View this codex article:
    [https://codex.buddypress.org/plugindev/post-types-activities/#adding-the-buddypress-support-and-specific-labels-at-post-type-registration](https://codex.buddypress.org/plugindev/post-types-activities/#adding-the-buddypress-support-and-specific-labels-at-post-type-registration)
 * If you do not know how to use `register_post_type()`, then you’ll need to do 
   some further research.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Custom post’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-followers_ffe5b1.svg)
 * [BuddyPress Follow](https://wordpress.org/plugins/buddypress-followers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-followers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-followers/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-followers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-followers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-followers/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [r-a-y](https://wordpress.org/support/users/r-a-y/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/custom-post-21/#post-8794987)
 * Status: not a support question