Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 自定义本机标记元框_Php_Wordpress_Tags_Wordpress Theming - Fatal编程技术网

Php 自定义本机标记元框

Php 自定义本机标记元框,php,wordpress,tags,wordpress-theming,Php,Wordpress,Tags,Wordpress Theming,我添加了一个标记元框和分类法,以允许在我的CPT上使用标记。但是,我在法典中找不到用逗号编辑单独的标签并从最常用的标签中进行选择的参数。有人知道这些的过滤器或寄存器分类参数吗 我找到了一个参数列表,其中包含这些字段的正确参数。我能够将这些添加到现有的register\u分类法函数的标签中 register_taxonomy( 'domain_tag', array('domain_profiles'), /* if you change the name of register_pos

我添加了一个标记元框和分类法,以允许在我的CPT上使用标记。但是,我在法典中找不到用逗号编辑单独的标签并从最常用的标签中进行选择的参数。有人知道这些的过滤器或寄存器分类参数吗


我找到了一个参数列表,其中包含这些字段的正确参数。我能够将这些添加到现有的register\u分类法函数的标签中

register_taxonomy( 'domain_tag', 
    array('domain_profiles'), /* if you change the name of register_post_type( 'domain_profiles', then you have to change this */
    array('hierarchical' => false,    /* if this is false, it acts like tags */
        'labels' => array(
            'name' => __( 'Related Domains', 'bonestheme' ), /* name of the custom taxonomy */
            'singular_name' => __( 'Domain', 'bonestheme' ), /* single taxonomy name */
            'search_items' =>  __( 'Search Domains', 'bonestheme' ), /* search title for taxomony */
            'all_items' => __( 'All Related Domains', 'bonestheme' ), /* all title for taxonomies */
            'parent_item' => __( 'Parent Domain', 'bonestheme' ), /* parent title for taxonomy */
            'parent_item_colon' => __( 'Parent Domain:', 'bonestheme' ), /* parent taxonomy title */
            'edit_item' => __( 'Edit Domain', 'bonestheme' ), /* edit Domain taxonomy title */
            'update_item' => __( 'Update Domain', 'bonestheme' ), /* update title for taxonomy */
            'add_new_item' => __( 'Add New Domain', 'bonestheme' ), /* add new title for taxonomy */
            'new_item_name' => __( 'New Domain Name', 'bonestheme' ), /* name title for taxonomy */
            // See get_taxonomy_labels for more arguments (below)
            'separate_items_with_commas' => __( 'Separate domains with commas', 'bonestheme' ),
            'choose_from_most_used' => __( 'Choose from the most used', 'bonestheme' ),
        ),
        'show_admin_column' => true,
        'show_ui' => true,
        'query_var' => true,
    )
);