使用WordPress的TwentyTen主题的特色图片区域是什么?

我正在使用TwentyTen主题作为父母在Wordpress中创建一个子主题。我在管理部分的“页面”区域下看到,有一个“特色图片”区域,但我看不到页面上显示特色图片的位置。 特色图片区域是什么?理想情况下,我希望使用该上传器将图像放在页面上的指定位置。 在哪个文件中我可以找到页面管理区域中显示的特色图像区域的代码php代码?我查看了functions.php文件。我猜它是核心文件中的一个函数,它在20世纪主题中的functions.php文件中被调用,但我似乎无法看到它发生在哪里。有人能帮我吗?     
已邀请:
特色图像有时称为后缩略图。显示的位置取决于您的主题,但对于TwentyTen,它将替换默认的标题图像。您可以在
header.php
中看到正在使用的代码:
<?php
// Check if this is a post or page, if it has a thumbnail, and if it's a big one
if ( is_singular() &&
        has_post_thumbnail( $post->ID ) &&
        ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
        $image[1] >= HEADER_IMAGE_WIDTH ) :
    // Houston, we have a new header image!
    echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
else : ?>
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
<?php endif; ?>
    

要回复问题请先登录注册