wordpress comment削除する方法

 

ぐぐってみたら「comments_template」を削除すればいいっていう話だったが、、俺のテマ

「comments_template」が多すぎ(テマ:Theme Horse

 

./attitude/library/structure/content-extensions.php:                    do_action( ‘attitude_before_comments_template’ );
./attitude/library/structure/content-extensions.php:         comments_template();
./attitude/library/structure/content-extensions.php:         do_action ( ‘attitude_after_comments_template’ );
./attitude/library/structure/content-extensions.php:                    do_action( ‘attitude_before_comments_template’ );
./attitude/library/structure/content-extensions.php:         comments_template();
./attitude/library/structure/content-extensions.php:         do_action ( ‘attitude_after_comments_template’ );
./attitude/library/structure/content-extensions.php:                                    do_action( ‘attitude_before_comments_template’ );
./attitude/library/structure/content-extensions.php:                     comments_template();
./attitude/library/structure/content-extensions.php:                     do_action ( ‘attitude_after_comments_template’ );
./twentyfourteen/image.php:                     <?php comments_template(); ?>
./twentyfourteen/single.php:                                            comments_template();
./twentyfourteen/page-templates/contributors.php:                                               comments_template();
./twentyfourteen/page-templates/full-width.php:                                         comments_template();
./twentyfourteen/page.php:                                              comments_template();
./twentythirteen/image.php:                     <?php comments_template(); ?>
./twentythirteen/single.php:                            <?php comments_template(); ?>
./twentythirteen/page.php:                              <?php comments_template(); ?>
./twentytwelve/image.php:                               <?php comments_template(); ?>
./twentytwelve/single.php:                              <?php comments_template( ”, true ); ?>
./twentytwelve/page-templates/full-width.php:                           <?php comments_template( ”, true ); ?>
./twentytwelve/page.php:                                <?php comments_template( ”, true ); ?>
[root@negabaro themes]#

 

その中でも以下の部分をコメントアウトすることで解決した

[root@negabaro themes]# grep -R comments_template ./*
./attitude/library/structure/content-extensions.php:       //           do_action( ‘attitude_before_comments_template’ );
./attitude/library/structure/content-extensions.php:         //comments_template();
./attitude/library/structure/content-extensions.php:         //do_action ( ‘attitude_after_comments_template’ );
./attitude/library/structure/content-extensions.php:    //              do_action( ‘attitude_before_comments_template’ );
./attitude/library/structure/content-extensions.php:         //comments_template();
./attitude/library/structure/content-extensions.php:         //do_action ( ‘attitude_after_comments_template’ );
./attitude/library/structure/content-extensions.php:                                    //do_action( ‘attitude_before_comments_template’ );
./attitude/library/structure/content-extensions.php:                     //comments_template();
./attitude/library/structure/content-extensions.php:                     //do_action ( ‘attitude_after_comments_template’ );

 

以下のページではコメント許可の設定も可能

http://comajava.blogspot.jp/2013/12/wordpress-reply.html

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です