• hi
    I wrote code like this adds tabs. Now, I also want him to be classified. What should I do?

    // teach post type
    	$labelsTeach = array(
    		'name' => '?????',
    		'add_new' => '?????? ????',
    		'add_new_item' => '?????? ????',
    		'edit_item' => '?????? ????',
    		'new_item' => '???? ???? ',
    		'view_item' => '????? ????',
    		'search_items' => '?????? ????',
    		'not_found' => '???? ???? ???',
    		'not_found_in_trash' => '???? ?? ????????? ???? ???',
    		'menu_name' => '?????',
    	);
    	$argsTeach = array(
    		'labels' => $labelsTeach ,
    		'label' => '????? ',
    		'hierarchical' => false,
    		'description' => '?????',
    		'supports' => array( 'title', 'editor' ) ,
    		'public' => true,
    		'show_ui' => true,
    		'show_in_menu' => true,
    		'menu_position' => 5,
    		//'menu_icon' => get_template_directory_uri() . "/images/news.png",
    		'show_in_nav_menus' => true,
    		'publicly_queryable' => true,
    		'exclude_from_search' => true,
    		'has_archive' => true,
    		'query_var' => true,
    		'can_export' => true,
    		'rewrite' => array('slug' => 'teach'),
    		'_builtin' => false,
    		'capability_type' => 'post'
    	);
    
    	register_post_type( 'teach', $argsTeach );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘add category in page’ is closed to new replies.