当我使用此代码时,它只显示ID,而不显示其内容。我想显示内容,如何解决这个问题?
array(
\'name\' => __( \'Select Home Team \', \'themepixels\' ),
\'id\' => "{$prefix}select_home_team",
\'type\' => \'post\',
\'post_type\' => \'football_team\' ,
\'options\' => array(
\'type\' => \'select_advanced\',
\'args\' => array()
),
\'multiple\' => false,
),
。。。。。
<div class="home-team">
<?php $home_team_name = rwmb_meta( \'pb_select_home_team\', \'type=select_advanced\', get_the_ID() ); ?>
<?php echo esc_html( $home_team_name ); ?>
</div>