|Update Time||May 17, 2009, 7:17 a.m.|
|PHP Version:||2.7 +|
the_article_image()function in your theme to show the image whereever you want on your theme, at whatever size (dynamically rescaled and cached using ImageMagick so no dodgy browser rescaling or sending huge photos out). An example of it in use is on http://www.nouse.co.uk/, where the photo alongside each post is attached, and then shown on the front page, and on the single page itself in the theme.
the_article_image($size);function, which echoes an
imgtag for the image and caption associated with that article, at the width defined by the
$sizeparameter. If there is no image, nothing is returned. Other functions include a
get_the_article_img($size)variant, which returns, rather than echoes the
get_the_article_photo_caption()which get the caption associated with that article.
get_the_article_img($size)but just returns a URL, rather than an
the_article_photo($size)returns the URL to the image, or if no image exists, to a placeholder image in the template directory called
Ensure that the ImageMagick PHP extension is installed.