<?php echo get_the_post_thumbnail( $post->ID, ‘thumbnail’ ); ?>
を試してみてください。
$post->ID
の部分はコードによって変わるので、
もしよければ、該当箇所のループ部分のコードを教えて下さい。
ishihara takashiさんありがとうございます。
試行錯誤で固定ページをカスタムにして、カテゴリーのURLを記入ますと左にアイキャッチ 右にタイトルと記事の抜粋になりました。
3件最新の記事をアイキャッチ無しの全文表示で下に、左にアイキャッチ 右にタイトルと記事の抜粋をやりたいのですが出来ません・・・
ご教授よろしくお願いいたします。
content.phpは下記になります
<?php
/*@package _s */
?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(”); ?>>
<div class=”row”>
<div class=”large-3 small-3 columns thumbnail”>
” title=”<?php echo esc_attr( sprintf( __( ‘Permalink to %s’, ‘_s’ ), the_title_attribute( ‘echo=0’ ) ) ); ?>” rel=”bookmark”>
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail( ‘top-thumb’ ); ?>
<?php else : ?>
<img src=”<?php echo get_template_directory_uri(); ?>/assets/img/no_image.gif” alt=”” title=”” />
<?php endif; ?>
</div> <!– thumbnail –>