Q.記事がない場合にトピックスを非表示にする
A.下記のphpファイルの該当箇所を編集します
編集するファイル:index.php
編集する箇所:
<div class="post_list clearfix" id="topics_list">
<h3 class="headline1"><?php echo ($options['headline_topics']); ?></h3>
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li class="clearfix"><span class="date"><?php the_time('Y.m.d');
?></span><a class="title" href="<?php the_permalink() ?>"><?php
the_title(); ?></a></li>
<?php endwhile; else: ?>
<li><p class="title"><?php _e("There is no registered
post.","tcd-w"); ?></p></li>
<?php endif; ?>
</ul>
<div class="archive_link"><?php next_posts_link(__('Older Entries',
'tcd-w')) ?></div>
</div><!-- END #topics_list -->
この記事は役に立ちましたか?
もし参考になりましたら、下のボタンで教えてください。
今後の記事作成の参考とさせて頂きます!