テニスにはプレヤーが埋め込まれていて、音源はそれを通じて視聴できたのだが、FMとやまの番組アーカイブ方式がradikoに変更されて音源がmp3でなくなったので、プレイヤーで再生紐づけができなくなった。ヨガの方はプレイヤーはなく、音源へリンクするスタイルなので問題はない。
list_cell-fm01.phpを修正
変更前
<?php
/**
* @package Centia
* センティア用
**/
?>
<!-- list_cell-campaign.php -->
<?php
$id = get_the_ID();
$get_title = get_the_title($id);
$get_text = get_post_meta(get_the_ID(), 'edText', true);
$get_date = get_post_meta(get_the_ID(), 'edDate', true);
$get_url = get_post_meta(get_the_ID(), 'edLinkUrl', true);
?>
<tr>
<td><?php echo $get_date; ?></td>
<td><span class="hidden-xs"><? echo $get_title; ?></span><span class="visible-xs"><?php echo $get_text; ?></span></td>
<td>
<audio pleload="auto" controls>
<source src="<?php echo $get_url; ?>" type="audio/mp3">
</audio>
</td>
</tr>
<!-- / list_cell-campaign.php -->
変更後
<?php
/**
* @package Centia
* センティア用
**/
?>
<!-- list_cell-campaign.php -->
<?php
$id = get_the_ID();
$get_title = get_the_title($id);
$get_text = get_post_meta(get_the_ID(), 'edText', true);
$get_date = get_post_meta(get_the_ID(), 'edDate', true);
$get_url = get_post_meta(get_the_ID(), 'edLinkUrl', true);
?>
<tr>
<td><?php echo $get_date; ?></td>
<td><span class="hidden-xs"><? echo $get_title; ?></span><span class="visible-xs visible-sm visible-md visible-lg"><?php echo $get_text; ?></span></td>
<td>
<a href="<?php echo $get_url; ?>" target="_blank"><img src="<?php echo esc_url(home_url('/')); ?>images/btn_radio01.png" class="img-responsive hidden-xs" alt="" /><img src="<?php echo esc_url(home_url('/')); ?>images/btn_radio01_sp.png" class="img-responsive visible-xs" alt="" /></a>
</td>
</tr>
<!-- / list_cell-campaign.php -->