You can use a function called add_post_type_support
Hook into init after the post types have been created, and add support for comments.
add_action('init', 'my_cpt_add_excerpt', 100);
function my_cpt_add_excerpt() {
add_post_type_support('mycpt', 'excerpt');
}
…where mycpt
is the name of your custom post type.
If you want to do it cleanly, you can always deregister the custom post type, and then register it again with the corrected supports
array.
Further reading: http://codex.wordpress.org/Function_Reference/add_post_type_support
Related Posts:
- Why are the comments disabled by default on my custom_post_types?
- Why are comments and trackbacks still getting through for custom post types?
- Display Authors Comments on Profile Page
- List all posts commented by current user
- Custom Comment Types
- modify all posts of a category to “no comments allowed”
- Custom comment status possible?
- feed links for custom post type pages
- Seperating custom post type comments from regular blog posts comments
- Add comments meta fields to comments metabox on post edit screen
- Exclude post_type from admin comments_list
- Recent comments on author page?
- wp_query and comment_parent – select only posts with top level comments
- changing default comment form arguments [duplicate]
- Comment moderation on custom post types
- Automatically check “Allow comments” for custom post type [duplicate]
- How could I create a ‘private comments’ section on a custom post type?
- Disable comments from showing up public for Custom Post Type
- Custom Post Type loops and Disqus
- “Allow Comments” box cannot be checked
- Separate comment section for post type in dashboard
- Count all comments of a custom post type
- custom comments on specific post type
- Insert data on comment post
- get_comments not working on custom post types
- Custom Post Type Set Comments ON by default without show METABOX
- WordPress comments_open for specific user role or post type
- Add custom field in comments form
- Create another comment system for CPT
- How can the recipients and content for comment email notifications on a custom post type be changed?
- Convert comments to Custom Post Type
- How to assign classes to all elements?
- custom comments form for custom post type
- What functions does WordPress use for filtering / sanitizing comments?
- comment_notification_text filter for custom post type
- get comments by current user inside page template
- User-submitted reviews of different custom post types
- Check if user has comment on current post
- Enable comments on custom page type – option not showing in “customize” for theme
- Allow anonymous comments just in a custom post type
- duplicate comment section functionality and call it something else for custom post types
- Send email messages after comment was submitted
- comments hooks on custom post type
- custom comment fields on CPT
- unapprove comments on custom post type
- Enable comments for post when comments meta box removed
- Get the latest comment from a custom post type where depth = 1?
- Why will comments not remain open on custom post types?
- How to add comments to my custom post type but hide it from default WordPress Comments section?
- How to change the comments form title based on post type
- Comments on posts with new custom post type redirected to another post
- Display custom posts, ordered by most commented, without duplicates
- get comments for custom post type
- How to create a discussion post when a custom post is created?
- Adding second comments.php for reviews
- Comments not enabled for custom post types
- Turn off comments for given CPT checkbox?
- Author profile comments system
- Custom post type: can’t enable comments by default
- Comment moderation with disqus comments
- add comments custom fields after user is logged in
- Comments are not working on Custom Post Type
- Error 403 when posting comments to a custom post type from a different page
- Comments not working (error not allowed) on posts with custom post status
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Add Settings to Custom Post Type
- Custom post type archive with pagination?
- Displaying Post Title on Post Edit page?
- Custom user role not working as expected
- Add common Post Actions to Custom Meta Column
- Make custom post type display as a page
- Custom post type with specific category structure
- Is it possible to make tag archive page specific to Custom Post Type?
- Multiple portfolios with one custom post type?
- XML-RPC and Custom Post Types
- How to enable a custom post type to custom user role in WordPress
- Show Post Thumbnail In Custom Post From Other CPT
- Is possible add class for last post of Custom Post Type?
- how to get URL of media uploaded to WordPress via media_handle_sideload()
- Archive for custom taxonomy lists all posts instead of current taxonomy
- modrewrite not working on my Apache setup
- Querying Two Custom Post Types with OR Not Working
- How can I get the number of custom post type posts that have a specific attachment image set?
- Removing all post statuses from a Custom Post Type
- Send notification to the admin when new custom post is submitted
- Adding Page Templates to post but it ignored it
- Building Forums with Custom Post Types
- Many to many to many custom post relationships
- Custom post type URL
- Custom Post Type nest under a normal WordPress Page
- How to save TinyMCE fields on WordPress custom post type?
- How to display list of custom post taxonomy terms and their posts (if any)?
- Create relationship between custom post types and users
- List taxonomies by post id
- Password protection template and automatic fall in post type
- Loop with Custom Post Type and Taxonomies
- wp_get_archives(); Change output of link
- Custom post type – columns order
- Custom taxonomy labels won’t display
- Query custom type posts by array of IDs