wordpress - How to make custom pages for custom post types -


so made custom post type wordpress site using code:

add_action( 'init', 'register_cpt_bingo' );  function register_cpt_bingo() {      $labels = array(          'name' => _x( 'bingo sites', 'bingo' ),         'singular_name' => _x( 'bingo', 'bingo' ),         'add_new' => _x( 'add new', 'bingo' ),         'add_new_item' => _x( 'add new bingo site', 'bingo' ),         'edit_item' => _x( 'edit bingo', 'bingo' ),         'new_item' => _x( 'new bingo', 'bingo' ),         'view_item' => _x( 'view bingo site', 'bingo' ),         'search_items' => _x( 'search bingo sites', 'bingo' ),         'not_found' => _x( 'no bingo sites found', 'bingo' ),         'not_found_in_trash' => _x( 'no bingo sites found in trash', 'bingo' ),         'parent_item_colon' => _x( 'parent bingo:', 'bingo' ),         'menu_name' => _x( 'bingo sites', 'bingo' ),     );      $args = array(          'labels' => $labels,         'hierarchical' => true,          'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes' ),          'public' => true,         'show_ui' => true,         'show_in_menu' => true,          'menu_icon' => '/wp-content/themes/gamblingq/img/bingo.png',         'show_in_nav_menus' => true,         'publicly_queryable' => true,         'exclude_from_search' => false,         'has_archive' => true,         'query_var' => true,         'can_export' => true,         'rewrite' => true,         'capability_type' => 'page'     );      register_post_type( 'bingo', $args ); } 

it works perfectly. screen admin panel:

enter image description here

how can add option select custom page template same in following picture:

enter image description here

any advice helpful! thanks!

here solution problem. follow steps creating custom template dedicated custom post types


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -