Feb 11 2009

Auto inserted intro image on Wordpress

Today we are going to do some simple Wordpress programming. I would like to show how easy it is to get attachment from a post, in our case images, and display them how we want.

The idea is to display an image floated right at the beginning of each post without having to insert it into the WYSIWYG editor of  Wordpress.  The reason is tinyMCE doesn’t always show it how I want it and may add some useless code around the picture. The only thing you will have to do it upload the picture with wordpress built in feature and name it ‘thumbnail’.

upload

Read the rest of this entry »

Benoit Gilloz
Programmer, Research and Development