4.25.2012
wordpress サイトURLを正規に
①管理画面の左メニュー「設定」「一般」を選択
②WordPress のアドレス (URL) ⇒ そのまま
③サイトのアドレス ⇒ http://example.com/ に変更
④「設定を保存」を押下
⑤ http://example.com/wp/ 直下にある index.php を編集
require('./wp-blog-header.php');
↓
require('./wp/wp-blog-header.php');
⑥ http://example.com/wp/ 直下にある index.php(⑤で編集したファイル) と .htaccess を http://example.com/ 直下にコピー
4.19.2012
4.09.2012
ギャラリー画像にクラス名追加
functions.phpに追加
add_filter( 'wp_get_attachment_link', 'my_get_attachment_link', 10, 6 );
function my_get_attachment_link( $link, $id, $size, $permalink, $icon, $text ) {
return str_replace( '<img ', '<img class="hover" ', $link);
}
登録:
投稿 (Atom)