• Resolved nolaandy

    (@nolaandy)


    Plugin works great. Only problem I have is that the featured image Meta box is not there.

    I have checked my screen options above and it is not unchecked.
    I’ve made sure that Featured Image ? is allowed in the custom post type creation screen.

    Where does the code go for these created post types so I can check it and edit if needed?

    https://wordpress.org/plugins/custom-post-type-ui/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The code used to register things is stored as an option in the wp_options table. Are you able to deactivate all other plugins to test and make sure there’s not some sort of conflict going on there?

    Hi,

    I have the same error.

    I’m running WordPress 4.0 on a local server (wampserver) and have desactivated all plugins except “Custom Post Type UI”.

    Here is my custom type code generated by the plugin if it can help :

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

    In my case both “post-formats” and “thumbnail” aren’t displayed.

    Edit :

    Don’t worry about ‘post-formats’ it’s correctly displayed, the only issue seems to be with the ‘thumbnail’.

    Fixed!

    It wasn’t a bug at all.

    My custom theme just doesn’t support the feature… :/

    @michael Beckwith: Sorry for the mistake.

    @nolaandy: to unable thumbnails in post/page and any custom_post_type, simply add this code to your theme ‘function.php’ page :
    add_theme_support( 'post-thumbnails' );

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    good catch improvedline. a line I take for granted these days, and forget about.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Featured Image Meta Box does not show up’ is closed to new replies.