admin管理员组文章数量:1130349
I registered 3 taxonomies for a custom post type, but they show up in 2 places when editing a custom post type.
I would like to only display the input boxes on the right of the editor. How to remove the drop down input under my custom fields?
3x input under the custom field AND on the right:
When I remove my registration code from functions.php, and refresh this is the result:
My registration code from functions.php:
function ledensubsector_init() {
register_taxonomy(
'subsector',
'leden',
array(
'label' => __( 'Sub-sector' )
)
);
}
add_action( 'init', 'ledensubsector_init' );
function ledensupplychain_init() {
register_taxonomy(
'supplychain',
'leden',
array(
'label' => __( 'Supply chain' )
)
);
}
add_action( 'init', 'ledensupplychain_init' );
function ledentechnology_init() {
register_taxonomy(
'technology',
'leden',
array(
'label' => __( 'Technology' )
)
);
}
add_action( 'init', 'ledentechnology_init' );
I registered 3 taxonomies for a custom post type, but they show up in 2 places when editing a custom post type.
I would like to only display the input boxes on the right of the editor. How to remove the drop down input under my custom fields?
3x input under the custom field AND on the right:
When I remove my registration code from functions.php, and refresh this is the result:
My registration code from functions.php:
function ledensubsector_init() {
register_taxonomy(
'subsector',
'leden',
array(
'label' => __( 'Sub-sector' )
)
);
}
add_action( 'init', 'ledensubsector_init' );
function ledensupplychain_init() {
register_taxonomy(
'supplychain',
'leden',
array(
'label' => __( 'Supply chain' )
)
);
}
add_action( 'init', 'ledensupplychain_init' );
function ledentechnology_init() {
register_taxonomy(
'technology',
'leden',
array(
'label' => __( 'Technology' )
)
);
}
add_action( 'init', 'ledentechnology_init' );
Share
Improve this question
asked Dec 18, 2018 at 11:08
LudoLudo
612 silver badges11 bronze badges
2
- Have you added custom fields for them with ACF? Looks like you have. You won’t need those. WordPress adds them for you. – Jacob Peattie Commented Dec 18, 2018 at 11:16
- Indeed, I did that with ACF- totally forgot it. I'll just have to remove it. Thanks! – Ludo Commented Dec 18, 2018 at 11:19
1 Answer
Reset to default 0WP adds the inputs automatically. I forgot that I added the inputs for the taxonomies also with AFC. So I just had to remove them from my custom fields.
I registered 3 taxonomies for a custom post type, but they show up in 2 places when editing a custom post type.
I would like to only display the input boxes on the right of the editor. How to remove the drop down input under my custom fields?
3x input under the custom field AND on the right:
When I remove my registration code from functions.php, and refresh this is the result:
My registration code from functions.php:
function ledensubsector_init() {
register_taxonomy(
'subsector',
'leden',
array(
'label' => __( 'Sub-sector' )
)
);
}
add_action( 'init', 'ledensubsector_init' );
function ledensupplychain_init() {
register_taxonomy(
'supplychain',
'leden',
array(
'label' => __( 'Supply chain' )
)
);
}
add_action( 'init', 'ledensupplychain_init' );
function ledentechnology_init() {
register_taxonomy(
'technology',
'leden',
array(
'label' => __( 'Technology' )
)
);
}
add_action( 'init', 'ledentechnology_init' );
I registered 3 taxonomies for a custom post type, but they show up in 2 places when editing a custom post type.
I would like to only display the input boxes on the right of the editor. How to remove the drop down input under my custom fields?
3x input under the custom field AND on the right:
When I remove my registration code from functions.php, and refresh this is the result:
My registration code from functions.php:
function ledensubsector_init() {
register_taxonomy(
'subsector',
'leden',
array(
'label' => __( 'Sub-sector' )
)
);
}
add_action( 'init', 'ledensubsector_init' );
function ledensupplychain_init() {
register_taxonomy(
'supplychain',
'leden',
array(
'label' => __( 'Supply chain' )
)
);
}
add_action( 'init', 'ledensupplychain_init' );
function ledentechnology_init() {
register_taxonomy(
'technology',
'leden',
array(
'label' => __( 'Technology' )
)
);
}
add_action( 'init', 'ledentechnology_init' );
Share
Improve this question
asked Dec 18, 2018 at 11:08
LudoLudo
612 silver badges11 bronze badges
2
- Have you added custom fields for them with ACF? Looks like you have. You won’t need those. WordPress adds them for you. – Jacob Peattie Commented Dec 18, 2018 at 11:16
- Indeed, I did that with ACF- totally forgot it. I'll just have to remove it. Thanks! – Ludo Commented Dec 18, 2018 at 11:19
1 Answer
Reset to default 0WP adds the inputs automatically. I forgot that I added the inputs for the taxonomies also with AFC. So I just had to remove them from my custom fields.
本文标签: theme developmentSee double taxonomy inputs in WP editor
版权声明:本文标题:theme development - See double taxonomy inputs in WP editor 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749088178a2314103.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论