Last active
January 9, 2017 11:22
-
-
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //* 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' ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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