这是我在函数中的代码。php
$custom_header_args=array(
\'default-image\' => \'\',
\'width\' => 500,
\'height\' => 500,
\'flex-height\' => true,
\'flex-width\' => true,
\'uploads\' => true,
\'random-default\' => false,
\'header-text\' => true,
\'default-text-color\' => \'\',
\'wp-head-callback\' => \'\',
\'admin-head-callback\' => \'\',
\'admin-preview-callback\' => \'\',
);
add_theme_support( \'custom-header\' ,$custom_header_args);
这是标题中的代码。php
<img src="<?php header_image(); ?>" height="<?php get_custom_header()->height ?>" width="<?php get_custom_header()->width; ?>" alt="">
<?php wp_nav_menu( array(\'theme_location\' => \'primary\') ); ?>
我的问题是它不会改变我头部图像的高度和宽度。问题是什么?