Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cobaltapps/6170174 to your computer and use it in GitHub Desktop.
Save cobaltapps/6170174 to your computer and use it in GitHub Desktop.
Use this code snippet to add Genesis Simple SIdebars meat options to Custom Post Types (Genesis Simple Sidebars Plugin required, of course)
add_action( 'init', 'custom_add_ss_post_type_support' );
/**
* Add Genesis Simple Sidebars In-Post options into Custom Post Types.
*/
function custom_add_ss_post_type_support() {
foreach( get_post_types( array( 'public' => true ) ) as $post_type )
add_post_type_support( $post_type, 'genesis-simple-sidebars' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment