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 get_header(); ?> | |
header.phpを読み込む | |
<?php get_sidebar(); ?> | |
sidebar.phpを読み込む | |
<?php get_footer(); ?> | |
footer.phpを読み込む | |
<?php comments_template(); ?> |
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 bloginfo('name'); ?> 「一般設定」管理画面で指定したブログのタイトル | |
<?php bloginfo('description'); ?> 「一般設定」管理画面で指定したブログの説明文 | |
<?php bloginfo('url'); ?> サイトURL | |
<?php bloginfo('stylesheet_url'); ?> 使用中のメインCSSファイルのURL |
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
var week = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'][date.getDay()]; |
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
$elm.addClass('scale-up').on('webkitTransitionEnd.scale-up transitionend.scale-up',function() { | |
$(this).removeClass('scale-up').off('.scale-up'); | |
}); |
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
#SSI | |
Options +Includes | |
AddType text/html html | |
AddHandler server-parsed html |
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
#UTF8に変換 | |
nkf -w --overwrite readme.txt |
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
grep | |
-v 一致したものを除外 | |
xargs | |
標準入力をパラメータにわたす |
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
$image_url = wp_get_attachment_image_src(get_post_thumbnail_id( get_the_ID()))[0]; |
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
Advanced Custom Fields | |
表示名、key,valueを決めて入力するだけ。 | |
本来カスタムフィールドはthe_metaみたいなので取ってくるけど、 | |
ACFがfield()って関数を定義してくれてる。 | |
display | |
<p><?php the_field('fieldname'); ?></p> | |
get |
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
1.FTPでWPの全ファイルをアップロード | |
2.SQLをエクスポート→インポート | |
3.パスが違うのでツールで一括置換する | |
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ | |
4.パスワードを変更する |