php - Displaying the image in other div - wordpress -
i want display image of posts in other div content's one.
i mean this.
<div class="latest-posts"> <div class="latest-posts-info"> <div class="title"><h1>here title<h1></div> <div class="text">here content</div> <a href="#" class="read-more">read more...</a> <div class="clear"></div> </div> <div class="latest-posts-img">here want image</div> <div class="clear"></div> </div>
while adding post in wp admin, noticed way, displaying image in content.
thanks
check out page : http://codex.wordpress.org/function_reference/the_post_thumbnail
<div class="latest-posts-img"> <?php the_post_thumbnail( $size, $attr ); ?> </div>
Comments
Post a Comment