記事詳細(single)でのみ指定の内容を表示する
イテル on 06 6, 2009
一覧の際は非表示、記事詳細になった時だけに指定した内容を表示する方法は次の通り。
<div class="storycontent"> <?php the_content(__('(more...)')); ?> </div>
これを↓
<?php if ($single) { ?> <div class="storycontent"> <?php the_content(__('(more...)')); ?> </div> <?php } ?>
と変更すると、記事詳細でのみ本文が表示されるようになった。
Popular Posts
Recent Posts
Recent Comments
- youngCaleb: I have noticed you d
- OAEKFEUDAPTXK: There are certainly
- XAUMBDOUUIGHPN: Generally I don't re
- VKXYQITEAITUE: Thanks for another
- WHDYOLHYYQVIJV: It's a shame you don