Custom Post Type UI
[resolved] add thumbnail option is not showing (8 posts)

  1. Kuldeep007
    Posted 2 years ago #

    Hello friends, i seriously need help on this. M unable to figure out how to add a thumbnail option in custom post.

    Please help.


  2. Michael Beckwith
    Plugin Author

    Posted 2 years ago #

    click the "Advanced options" link and verify that you have "Featured image" checked towards the bottom of the page. If it is, and you're still not seeing anything about it, make sure that your custom post type screen editor is showing the metabox for it. You can confirm that in the "Screen options" tab at the top. It should be along the right when checked.

  3. Kuldeep007
    Posted 2 years ago #

    Thanks for the reply Michael. Is it possible, can i chat with you regarding this issue ? I would be glad if you give me your gmail id.

    or may be add me : kuldeep.singh@learnnovators.com.


  4. Michael Beckwith
    Plugin Author

    Posted 2 years ago #

    I'd prefer it stay here on the forum. You never know when someone else may have the same issue. If we kept everything private, they'd miss out on the solution.

  5. Kuldeep007
    Posted 2 years ago #

    Everything is marked Michael, but still the option for thumbnail is not showing up.

    Custom code for that page is :

    add_action('init', 'cptui_register_my_cpt_courses');
    function cptui_register_my_cpt_courses() {
    register_post_type('courses', array(
    'label' => 'courses',
    'description' => '',
    'public' => true,
    'show_ui' => true,
    'show_in_menu' => true,
    'capability_type' => 'post',
    'map_meta_cap' => true,
    'hierarchical' => false,
    'rewrite' => array('slug' => 'courses', 'with_front' => true),
    'query_var' => true,
    'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes','post-formats'),
    'labels' => array (
      'name' => 'courses',
      'singular_name' => 'courses',
      'menu_name' => 'courses',
      'add_new' => 'Add courses',
      'add_new_item' => 'Add New courses',
      'edit' => 'Edit',
      'edit_item' => 'Edit courses',
      'new_item' => 'New courses',
      'view' => 'View courses',
      'view_item' => 'View courses',
      'search_items' => 'Search courses',
      'not_found' => 'No courses Found',
      'not_found_in_trash' => 'No courses Found in Trash',
      'parent' => 'Parent courses',
    ) ); }

    do you find any issue ?

  6. Michael Beckwith
    Plugin Author

    Posted 2 years ago #

    Nope, that part checks out, which leads me back to the idea that the metabox simply isn't being displayed on screen, or maybe you're not quite recognizing in.

  7. eria86
    Posted 1 year ago #

    try adding smthn like this in your functions.php

    add_action( 'after_setup_theme', 'enable_thumbs' );
    function enable_thumbs() {
    add_theme_support( 'post-thumbnails', array( 'post', 'custom_post_type', 'another_custom_post_type', 'one_more_cpt' ) );
  8. Michael Beckwith
    Plugin Author

    Posted 1 year ago #

    what eria86 said should cover the rest of the case. Otherwise if you're able to set the images and whatnot, but it's not showing up on the frontend, you'll need to edit your theme to use a function like the_post_thumbnail, http://codex.wordpress.org/Function_Reference/the_post_thumbnail, or so to actually display them

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.