Created
June 19, 2014 06:56
-
-
Save hitsujixgit/7325e5d25f8dff7c2b55 to your computer and use it in GitHub Desktop.
コメントフォームを設置する - index.phpをカスタマイズする#6
This file contains hidden or 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
| <?php | |
| if (post_password_required()) { | |
| return; | |
| } | |
| ?> | |
| <div id="comments"> | |
| <?php if (have_comments()) :?> | |
| <h3 id="comments-count"><?php echo get_comments_number().' 件のコメント'; ?></h3> | |
| <ul id="comments-list"> | |
| <?php wp_list_comments(array( | |
| 'avatar_size'=>48, | |
| 'style'=>'ul', | |
| 'type'=>'comment', | |
| //'callback'=>'mytheme_comments' | |
| )); ?> | |
| </ul> | |
| <?php if (get_comment_pages_count() > 1) : ?> | |
| <ul id="comments-pagination"> | |
| <li id="prev-comments"><?php previous_comments_link('<< 前のコメント'); ?></li> | |
| <li id="next-comments"><?php next_comments_link('次のコメント >>'); ?></li> | |
| </ul> | |
| <?php endif; endif; ?> | |
| <?php comment_form(); ?> | |
| </div><!-- comments --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment