admin管理员组文章数量:1130349
I recently updated my website after a while, and the custom fields meta box is not showing in the editor anymore. It isn't showing under "Screen Options" either. Any ideas why this could be, and how to get it back?
I recently updated my website after a while, and the custom fields meta box is not showing in the editor anymore. It isn't showing under "Screen Options" either. Any ideas why this could be, and how to get it back?
Share Improve this question asked Oct 20, 2018 at 22:41 PimPim 1,1521 gold badge11 silver badges26 bronze badges 7- Is that screenshot coming from the edit page for a CPT? Maybe the CPT doesn't have custom fields enabled, or you need to re-enable it back after the update. There might also be a plugin which hides/disables the meta box on that page. – Sally CJ Commented Oct 20, 2018 at 23:09
- It is from a CPT, but it's just the same on regular posts. – Pim Commented Oct 20, 2018 at 23:17
- Try to disable all plugins? And sorry, I meant "custom fields" when I said "meta box". – Sally CJ Commented Oct 20, 2018 at 23:26
- 1 It's the ACF plugin that removes default custom fields display, but I haven't found a way around it. I need both ACF and default custom fields metaboxes. – Pim Commented Oct 21, 2018 at 18:36
- 1 +1 for both the helpful answer and question. =) – Sally CJ Commented Oct 22, 2018 at 3:16
2 Answers
Reset to default 7It turns out the latest Advanced Custom Fields update (from version 5.6.0 on) removes the core custom fields metaboxes by default.
The way to restore it was to add a filter in functions.php:
add_filter('acf/settings/remove_wp_meta_box', '__return_false');
When registering a custom post type you have to declare that it supports the custom fields meta box to get it, e.g.:
'supports' => array( 'title', 'editor', 'custom-fields' )
But most people don't do this, and build real metaboxes instead. This way instead they can put in radio buttons and drop downs etc
I recently updated my website after a while, and the custom fields meta box is not showing in the editor anymore. It isn't showing under "Screen Options" either. Any ideas why this could be, and how to get it back?
I recently updated my website after a while, and the custom fields meta box is not showing in the editor anymore. It isn't showing under "Screen Options" either. Any ideas why this could be, and how to get it back?
Share Improve this question asked Oct 20, 2018 at 22:41 PimPim 1,1521 gold badge11 silver badges26 bronze badges 7- Is that screenshot coming from the edit page for a CPT? Maybe the CPT doesn't have custom fields enabled, or you need to re-enable it back after the update. There might also be a plugin which hides/disables the meta box on that page. – Sally CJ Commented Oct 20, 2018 at 23:09
- It is from a CPT, but it's just the same on regular posts. – Pim Commented Oct 20, 2018 at 23:17
- Try to disable all plugins? And sorry, I meant "custom fields" when I said "meta box". – Sally CJ Commented Oct 20, 2018 at 23:26
- 1 It's the ACF plugin that removes default custom fields display, but I haven't found a way around it. I need both ACF and default custom fields metaboxes. – Pim Commented Oct 21, 2018 at 18:36
- 1 +1 for both the helpful answer and question. =) – Sally CJ Commented Oct 22, 2018 at 3:16
2 Answers
Reset to default 7It turns out the latest Advanced Custom Fields update (from version 5.6.0 on) removes the core custom fields metaboxes by default.
The way to restore it was to add a filter in functions.php:
add_filter('acf/settings/remove_wp_meta_box', '__return_false');
When registering a custom post type you have to declare that it supports the custom fields meta box to get it, e.g.:
'supports' => array( 'title', 'editor', 'custom-fields' )
But most people don't do this, and build real metaboxes instead. This way instead they can put in radio buttons and drop downs etc
本文标签: Custom field metabox not showing in backend
版权声明:本文标题:Custom field metabox not showing in back-end 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749243556a2338500.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论