シングル
<?php if ( is_single(3698) ): ?>
<?php $a3698yes = 'yes'; ?>
<?php else: ?>
<?php $a3698yes = ''; ?>
<?php endif; ?>
<?php
if ( have_posts () ) :
while ( have_posts() ) :
the_post();
?>
フッター
<?php //global $post;
if ( $a3698yes ): ?>
<a href="tel:0528013211" class="fmtel_base">
<div class="tel_numb2"><i class="icon-phone"></i>052-801-3211<br>
<div class="tel_okigaru2">お問い合わせは<br>平針運転免許試験場へ
</div>
</div>
</a>
<?php else: ?>
<a href="tel:<?php echo str_replace(array('-', 'ー', '−', '―', '‐'), '', $shop_tel);?>" class="fmtel_base">
<div class="tel_numb2"><i class="icon-phone"></i><?php echo $shop_tel ; ?><br>
<div class="tel_okigaru2">平日 10:00〜16:00 担当 渡邊<br>お気軽にお問合せください
</div>
</div>
</a>
<a href="<?php echo $contact_slug; ?>" class="mob_footer_mail_bt_wrap">
<div class="mfwrap">
<div class="mail_icon"><i class=" icon-mail-alt"></i></div>
<div class="mail_con">無料相談フォーム</div>
</div>
</a>
<?php endif; ?>
//global $post;も効かず、
is_single(3698)もフッターでは効かず。
たぶん yarppがかんでるからか
$postがリセットされて is_single(3698)が効かないので
シングル頭で値をもたせた。