Images in sidebar
-
Hi,
I’ve been looking around the support forums and have come across a few entries on how to achieve getting images to replace your recent posts by using post-image plugin.
I have so far tried to get the images to work alas all i get is the default image in the sidebar (www.digitalencore.co.uk) when you use the post image plugin. Eaach time I upload the image file via the upload secion of post it stays as image not linked – is this correct? or do i have to change it – if so how do i make the change stick as currently if i change the options it defualts back to not linked.
The php and the loop info i am using the sidebar is
<?php $thumbs = new WP_Query(“cat=3&showposts=5”);
while($thumbs->have_posts()) : $thumbs->the_post(); ?>
<div id=”reviews”>
<div class=”reviewbox”>“><img src=”<?php post_image(‘https://www.digitalencore.co.uk/wp-content/themes/DE2/images/sidebar/noimagesb.gif’, true, false); ?>” width=”120″ height=”80″ alt=”<?php the_title(); ?>”/></div></div>
<?php endwhile; ?>do i need to change this code to get it to work, is there somehting missing?
thanks in advance for any advice
- The topic ‘Images in sidebar’ is closed to new replies.