Default post thumbnail
I wanted to add a default thumbnail to my homepage wiki style site to liven it up a bit but the usual plugins didn’t work, they posted double pictures and the like so I found a plugin called Automatic post thumb bit there were some errors in there that I had to sort first.
Add thumbnail call to loop
<div>
<span style=”float: left”>
<?php post_thumb(); ?>
</span>
</div>
On my theme WikiWP theme this is entered on the index page loop after
div class = ‘summary’ /div
Unfortunately this plugin had an error in the file so you will need to edit it
wp-content/plugins/post_thumb/default image is incorrect ( this at the end of the edit plugins file) and you must change that url to one that works like the homepage/default-image.png and upload it there
Alternatively if yoy just want the same image you can use
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<img src=”world.png” alt=”<?php the_title(); ?>” width=”75″ height=”75″/></a>
</div>
in place of <?php post_thumb(); ?> and that wil give you a static thumbnail for every post but has good alt and title values.
Change world.png to any file you want in your root directory
Remember wordpress alters “ in any code represented here so change before you insert!













