这是我在这里找到的解决方案:http: //www.jeffalytics.com/adding-custom-post-types-to-genesis-wordpress-framework/
/** Add Custom Post Types */
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'the_video',
array(
'labels' => array(
'name' => __( 'Videos' ),
'singular_name' => __( 'Video' )
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'videos'),
)
);
}
/**
* 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( 'the_video', 'genesis-layouts' );