Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DalavanCloud/5fa6efc25cd1426310b40eecd1150fc8 to your computer and use it in GitHub Desktop.
Save DalavanCloud/5fa6efc25cd1426310b40eecd1150fc8 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