Skip to content

Instantly share code, notes, and snippets.

@j-gardner
Last active December 22, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j-gardner/6529691 to your computer and use it in GitHub Desktop.
Save j-gardner/6529691 to your computer and use it in GitHub Desktop.
Add Comment support to the Portfolio CPT
<?php // DO NOT include the opening php tag
add_action( 'init', 'arconix_post_type_supports' );
function arconix_post_type_supports() {
add_post_type_support( 'portfolio', 'comments' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment