Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Last active January 9, 2017 11:22
Show Gist options
  • Select an option

  • Save SiGaCode/d0c1038e23a086f733ef to your computer and use it in GitHub Desktop.

Select an option

Save SiGaCode/d0c1038e23a086f733ef to your computer and use it in GitHub Desktop.
Adding support for Genesis SEO and other features to CPT entries in Genesis. https://sridharkatakam.com/adding-support-for-genesis-seo-and-other-features-to-cpt-entries-in-genesis/
//* Link "your-cpt-name" CPT to categories taxonomy
add_action( 'init', 'sk_add_category_taxonomy_to_events' );
function sk_add_category_taxonomy_to_events() {
register_taxonomy_for_object_type( 'category', 'your-cpt-name' );
}
add_post_type_support( 'portfolio', array( 'genesis-seo', 'genesis-scripts', 'genesis-layouts', 'genesis-rel-author' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment