[英]Feature image field is not showing in dashboard for custom post type
I think 'supports' parameter missed in your custom post type.我认为您的自定义帖子类型中缺少“支持”参数。 Just add following code where you registered your custom post type.只需在您注册自定义帖子类型的位置添加以下代码。
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ),
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.