functions.phpに直接記載する方法
①functions.phpに以下のコードを追加
function test_shortcode() {
return ‘This is URAWA.’;
}
add_shortcode( ‘code_01’, ‘test_shortcode’ );
②ショートコードを使ってPHPを読み込む
[code_01]
functions.phpに直接記載する方法
①functions.phpに以下のコードを追加
function test_shortcode() {
return ‘This is URAWA.’;
}
add_shortcode( ‘code_01’, ‘test_shortcode’ );
②ショートコードを使ってPHPを読み込む
[code_01]
コメント