php - Custom post format for custom post type : Wordpress -
i have custom post type floors , need make dropdown several templates (2templates) standard floors , garage floors. in posts can make several .php files code in head /* template name posts: # article post */
, dropdown automatically creating in backend. in custom post type add in head
/* single post template: floors */
this code , no dropdown creating, no reaction. how can same custom post types, , in format must .php file. have 1 single-floors.php , need garage-singlefloors.php. happy every answer!
you can use built-in post formats custom post types using add_post_type_support( $post_type, $supports )
.
see related documentation in codex.
Comments
Post a Comment