摘录将只获取文本,修剪标记。您需要为该iframe的ID创建一个新的自定义字段(可以使用高级自定义字段)。然后,您需要编辑content\\u摘录。php(我不知道使用的是哪个主题),取而代之的是那个字段,或者在你的摘录下面。
例如:(使用高级自定义字段和二十三主题)
<?php 
// fetch my custom field call it "player"
$player = get_field(\'player\');
?>
<article id="post-<?php the_ID(); ?>">
  <div class="entry-summary">
    <h3 class="entry-title">
   <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( \'Permalink to %s\', \'twentytwelve\' ), the_title_attribute( \'echo=0\' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h3>
    <?php the_excerpt(); ?>
    <iframe src="https://w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/<?php echo $player;?>&show_artwork=true&maxwidth=620&maxheight=930&wmode=transparent"></iframe>
  </div>
</article>
 希望你能理解我的英语:D