if( is_home ) {}
if( is_single ) {}
if( is_page ) {}
などのWordpressの条件分岐が効かない!ということが起こったのでメモメモ。
問題は have_post や query_post を使ったせいで条件がおかしくなってました。
なので、if( is_home ) {} を入れる前に以下のwp関数を入れてあげましょう!
<?php wp_reset_query();if( is_home ) { //ホームだったら }; ?>
if( is_home ) {}
if( is_single ) {}
if( is_page ) {}
などのWordpressの条件分岐が効かない!ということが起こったのでメモメモ。
問題は have_post や query_post を使ったせいで条件がおかしくなってました。
なので、if( is_home ) {} を入れる前に以下のwp関数を入れてあげましょう!
<?php wp_reset_query();if( is_home ) { //ホームだったら }; ?>
以下を.htaccess内に記載する。
尚、サーバーが対応していない場合はエラーが出力される。
# BEGIN Browser Cache
ExpiresActive on
ExpiresByType image/png “access plus 1 months”
ExpiresByType image/jpeg “access plus 1 months”
ExpiresByType image/gif “access plus 1 months”
ExpiresByType text/css “access plus 1 months”
ExpiresDefault “access plus 1 days”
# END Browser Cache
Control + E コードの展開
Control+/ コメントの切り替え
Control+M 1行にまとめる
Control+Shift + A タグを付加する
最後に「*」をつけると行ごとに繰り返し(ul>li*)
最後に「$*」をつけると行ごとに連番を付加する(ul>li.item$*)