Allows you to attach photos to articles
Make sure you're using PHP 5 and the ImageMagick extension installed.
Once the plugin is active, you use
the_article_image($size); function, which echoes an
img tag for the image and caption associated with that article, at the width defined by the
$size parameter. If there is no image, nothing is returned.
Other functions include a
get_the_article_img($size) variant, which returns, rather than echoes the
img tag. Also,
get_the_article_photo_caption() which get the caption associated with that article.
get_the_article_photo($size) works like
get_the_article_img($size) but just returns a URL, rather than an
img tag, and
the_article_photo($size) returns the URL to the image, or if no image exists, to a placeholder image in the template directory called
Requires: 2.7 or higher
Compatible up to: 2.7.1
Last Updated: 8 years ago
Active Installs: 30+
Got something to say? Need help?