hanuman6
7/13/2013 - 11:49 AM

アイキャッチ機能を使う

アイキャッチ機能を使う

<?php the_post_thumbnail('thumb-topinfo'); ?>
//サムネイル使用
function mysetup() {
  add_theme_support( 'post-thumbnails' );
}
add_action( 'after_setup_theme', 'mysetup' );

// カスタムサムネイル
add_image_size( 'thumb-topinfo', 202, 202 ,true );
add_image_size( 'thumb-s', 220, 220 ,true);
add_image_size( 'thumb-info', 220, 260 ,true);
add_image_size( 'thumb-brand', 235, 90 ,true);