我有一个元框,其中显示了名为football_player
作为下拉列表。现在我想在另一个名为football_team
模板<一切;除了permalink外,名字、形象、队号对我来说都很好。代码如下:
$home_starting_player_names = rwmb_meta( \'pb_select_players\', array( \'multiple\' => true ) ); ?>
<?php
foreach ( $home_starting_player_names as $home_starting_player ){?>
<li class ="clearfix" style="width: 100%; margin-top: 10px;">
<aside class="starting-player-image clearfix" style="width: 100px; height: 100px;"><?php echo get_the_post_thumbnail($home_starting_player); ?></aside>
<aside class="starting-player-name" style="width: 100px; height: 100px; margin-left: 50px; margin-top: 20px;"><?php echo get_the_title($home_starting_player); ?></aside>
<aside class="starting-player-number" style="width: 100px; height: 100px;"><?php echo get_post_meta( $home_starting_player, \'pb_squad_number\', true );?></aside>
<aside class="team-match-centre-details">
<div class="team-match-details" data-toggle="tooltip" data-placement="top" title="Click for details">
<a href="<?php echo get_permalink( \'football_player\' ); ?>"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
</div>
</aside>