ログインしないと見れない場所

×マルチサイトだとダメ。各子サイトにログインでめんどくさい   only members page <?php if(current_user_can(‘read_private_pages’)) : // メンバーページここから ?> ログインしないと見れない場所 <?php endif;// メンバーページここまで ?>     kachibito.net…...

[WordPress] コメント欄の名前だけを必須に。

ichi.fool.jp/blog/?p=23… まんまだと、『名前とメールアドレスの入力を必須にする』でメアドも必須になっちゃうから。 %inst-dir%/wp-comments-post.php 『if ( ” == $comment_content )』のある行の上に以下を追加。 //名前だけ必須 if(!$user->ID){ if (” == $comment_author) wp_die(‘名前を入力して下さい。’); }...