Custom Post Type Not Displaying Featured Image
-
I’ve created a custom post type associations
function create_associations_post_type() { register_post_type( 'associations', array('labels' => array('name' => __( 'Associations' ), 'singular_name' => __( 'Association' )), 'public' => true, 'has_archive' => true)); } add_action( 'init', 'create_associations_post_type' );
and added theme support for the custom type and posts
function cse_setup() { add_theme_support('post-thumbnails', array('post', 'associations')); } add_action( 'after_setup_theme', 'cse_setup' );
but featured images are only appearing in post type not associations. Does anyone know why or what I’m missing?
- The topic ‘Custom Post Type Not Displaying Featured Image’ is closed to new replies.