wordpress - set featured image option not appearing after adding theme support for custom post -
i using custom post type ui , advance custom field plugins crate custom post type , fields.
i created custom post type , fields. did use add_theme_support( 'post-thumbnails' );
in functions.php file set featured image option not appearing in custom post type option.
for clarity have attached images here:
as can see below mentioned image shows custom post type not allowing me set featured image.(no "set featured image" option on right side)
this image shows custom fields created custom post type. check correct.
i have set rules show field group if post type equal portfolio.and have set style standard wp metabox.
the third image here make clear have enabled featured image option custom post type.
so, can please why not getting featured image option custom post types here?
am missing something?
below functions.php file adding theme support post-thumbanils. need register post-thumbanails custom post types?
functions.php:
<?php add_theme_support('menus'); add_theme_support( 'post-thumbnails'); function register_theme_menus(){ register_nav_menus( array('primary-menu' => 'primary menu') ); } add_action('init','register_theme_menus'); ?>
add thumbnail in array in register_post_type()
function
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
$args = array(......., 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ) ); register_post_type( 'your_post_type', $args );
Comments
Post a Comment