Recent post thumbnail image sidebar
hi everyone, im newbie here with wp and php.. I already have the “Recent Posts” section to the sidebar that includes thumbnails with image.. my problem is this, i want the image and the post title to be clickable where the post is located… this is my current code
<?php foreach ( (array) get_posts(‘numberposts=2’) as $_post ) : ?>
<div><?php echo $_post->post_title; ?></div>
<div id=”imageThumb”><?php echo get_the_post_thumbnail ($_post->ID); ?> </div>
<?php endforeach; ?>
- The topic ‘Recent post thumbnail image sidebar’ is closed to new replies.