Reply To: Custom post type archive template missing

#18501
bigdrobek
Participant

I got it, the mistake was in child theme functions.php

Here is my function php to activate featured image metabox:
Please check it, I just copy content form original and make small change.

<?php
/**
 * Load the theme options page if in admin mode
 */
if ( is_admin() && is_readable( get_template_directory() . '/includes/theme-options.php' ) )
	require_once( get_template_directory() . '/includes/theme-options.php' );

if ( ! function_exists( 'esplanade_theme_setup' ) ) :
/**
 * Set up theme specific settings
 *
 * @uses add_theme_support() To add support for post thumbnails and automatic feed links.
 * @uses register_nav_menus() To add support for navigation menus.
 * @uses add_editor_style() To style the visual editor.
 * @uses load_theme_textdomain() For translation/localization support.
 * @uses add_image_size() To set custom image sizes.
 *
 * @since Esplanade 1.0
 */
function esplanade_theme_setup() {
	// Add support for post thumbnails and custom image sizes specific to theme locations
	add_theme_support( 'post-thumbnails' );
	add_image_size( 'slider-thumb', 640, 395, 1 );
	add_image_size( 'blog-thumb', 268, 200, 1 );
	add_image_size( 'teaser-thumb', 310, 190, 1 );
	add_image_size( 'gallery-thumb', 100, 100, 1 );
	add_image_size( 'video-thumb', 640, 395, 1 );
	add_image_size( 'attachment-thumb', 700, 9999 ); // no crop flag, unlimited height
}
endif;
?>