Created
June 11, 2012 15:43
-
-
Save takatoshi/2910748 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="content"> | |
/* 記事がある時 */ | |
<?php if (have_posts()) : ?> | |
<?php if (is_search()) : ?> | |
/* --検索結果メッセージ-- */ | |
<?php endif; ?> | |
/* --ここに記事を表示-- */ | |
/* 個別記事ではない時(記事一覧ページまたは検索結果ページの時) */ | |
<?php if (!is_single()) : ?> | |
/* --ページネートリンク-- */ | |
<?php endif; ?> | |
/* 記事が無い時 */ | |
<?php else: ?> | |
<?php if (is_search()) : ?> | |
/* --検索結果メッセージ-- */ | |
<?php elseif(is_404()) : ?> | |
/* --404メッセージ-- */ | |
<?php endif; ?> | |
<?php endif; ?> | |
</div><!-- /#content --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment