다른 추천 이미지를 모두 표시 할 수있는 워드 프레스 페이지를 만들었지 만 실제로는 작은 이미지가 아닌 실제 크기로 표시하는 방법에 대한 도움이 필요합니다. 내 코드는 지금 페이지가 http://rickwarren.veracitycolab.com/banners/wordpress 페이지의 축소판 그림 크기를 변경하십시오.
감사하다
<?php
$the_query = new WP_Query();
$the_query->query("cat=4&nopaging=true");
if ($the_query->have_posts()) :
while($the_query->have_posts()) : $the_query->the_post();
if(has_post_thumbnail()) :
the_post_thumbnail();
endif;
endwhile;
endif;
wp_reset_postdata();
$image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'single-post-thumbnail');
?>
<img src='<?php echo $image[0]; ?>' />
!
내 새 코드는 어떻게 생겼으며 이미지는 여전히 동일합니다.
<?php
$the_query = new WP_Query();
$the_query->query("cat=4&nopaging=true");
if ($the_query->have_posts()) :
while($the_query->have_posts()) : $the_query->the_post();
if(has_post_thumbnail()) :
the_post_thumbnail();
endif;
endwhile;
endif;
wp_reset_postdata();
$image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
?>
감사합니다. 나는 그것을 발사 할 것이다! :디 – jrojas