3.01
functions.php
add_theme_support( ‘post-thumbnails’ );
add_filter( ‘the_content’, ‘add_thumbs’ );
function add_thumbs( $content ) {
the_post_thumbnail( ‘thumbnail’ );
return $content;
}
ワードプレスをカスタマイズしよう
3.01
functions.php
add_theme_support( ‘post-thumbnails’ );
add_filter( ‘the_content’, ‘add_thumbs’ );
function add_thumbs( $content ) {
the_post_thumbnail( ‘thumbnail’ );
return $content;
}