アイキャッチ画像をアップロードして、「アイキャッチ画像を設定」をするとサイズが変わります。
関連記事(下記の画像)ではぼやけるのですが、記事ページ(single.php)では、普通に表示されます。
全体的にサイズは1000×660前後なのですが、画像によって違います。
思い当たるものがないので、困っています。
他に必要な情報がありましたら、お答えしますのでよろしくお願いいたします。
追記↓
PHP
1<?php if(has_category() ) { 2$cats =get_the_category(); 3$catkwds = array(); 4foreach($cats as $cat){ 5 $catkwds[] = $cat->term_id; 6} 7} ?> 8<?php $args = array( 9 'post_type' => 'post', 10 'posts_per_page' => '8', 11 'post__not_in' =>array( $post->ID ), 12 'category__in' => $catkwds, 13 'orderby' => 'rand' 14); 15$my_query = new WP_Query( $args );?> 16<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?> 17 <a href="<?php the_permalink(); ?>"> 18 <div class="rcolumn cf"> 19 <img src="<?php the_post_thumbnail_url(); ?>"> 20 </div> 21 <h3 class="title"><?php the_title(); ?></h3> 22 </a> 23<?php endwhile;?>
あなたの回答
tips
プレビュー