This will add the Genesis layout options to custom post types.
Only tricky part is change “your_custom_post_type” in the code below to match the name of your custom post type.
[cc]/**
* add Genesis layout options to custom posts types
*
* @author Brian Lis
* @link http://dev.studiopress.com/genesis-layout-options-for-custom-post-types.htm
*/
add_post_type_support( ‘your_custom_post_type’, ‘genesis-layouts’ );
[/cc]
*** Tip, if your unsure what you called your custom post type you can find it by clicking it in the WP admin menu. You’ll go to a link similar to this, http://domain-name.com/wp-admin/edit.php?post_type=my-cpt. In this example “my-cpt” would be what I’d use for “your_custom_post_type”.
Thanks brain for this simple and handy tip…
Where do I add this code? functions.php or in genesis? I’m a NOOB.
In the functions.php file in your child theme (not in Genesis). You could use the editor found under appearance. Its always better to change the file on text or html editor and .ftp the file to your server in case you make a mistake, which allows you to undo mistakes.
Brian,
Good tip! What would be the cleanest way to do this for multiple CPTs? Obviously, I wouldn’t want to write that block of code three times if I didn’t h ave to.
Thanks.
Nevermind. I was over thinking this. I just added the lines and it worked fine. Blonde moment. +)
Thank you very much Brian! It helps me save a lot of time.