Title: Article Photos
Author: chrisnorthwood
Published: <strong>16 mai 2009</strong>
Last modified: 16 mai 2009

---

Recherche d’extensions

Cette extension **n’a pas été testée avec les3 dernières versions majeures de WordPress**.
Elle pourrait ne plus être maintenue ou supportée et peut présenter des erreurs 
de compatibilité quand elle est utilisée avec des versions récentes de WordPress.

![](https://s.w.org/plugins/geopattern-icon/article-photo.svg)

# Article Photos

 Par [chrisnorthwood](https://profiles.wordpress.org/chrisnorthwood/)

[Télécharger](https://downloads.wordpress.org/plugin/article-photo.1.0.zip)

 * [Détails](https://fr-ca.wordpress.org/plugins/article-photo/#description)
 * [Avis](https://fr-ca.wordpress.org/plugins/article-photo/#reviews)
 *  [Installation](https://fr-ca.wordpress.org/plugins/article-photo/#installation)
 * [Développement](https://fr-ca.wordpress.org/plugins/article-photo/#developers)

 [Support](https://wordpress.org/support/plugin/article-photo/)

## Description

This plugin adds a form to your post screen that allows you to upload an image to
go with your blog post. You can then use `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.

## Installation

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, `the_article_photo_caption()` and `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 `img/box.png`.

## FAQ

  I get errors when the plugin is loaded

Ensure that the ImageMagick PHP extension is installed.

## Avis

Il n’y a aucun avis sur cette extension.

## Contributeurs & développeurs

« Article Photos » est un logiciel libre. Les personnes suivantes ont contribué 
à cette extension.

Contributeurs

 *   [ chrisnorthwood ](https://profiles.wordpress.org/chrisnorthwood/)

[Traduisez « Article Photos » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/article-photo)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/article-photo/), 
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/article-photo/), ou s’inscrire
au [journal de développement](https://plugins.trac.wordpress.org/log/article-photo/)
par [RSS](https://plugins.trac.wordpress.org/log/article-photo/?limit=100&mode=stop_on_copy&format=rss).

## Méta

 *  Version **1.0**
 *  Last updated **il y a 17 années**
 *  Active installations **10+**
 *  WordPress version ** 2.7 ou plus **
 *  Tested up to **2.7.1**
 *  Language
 * [English (US)](https://wordpress.org/plugins/article-photo/)
 * Tags
 * [admin](https://fr-ca.wordpress.org/plugins/tags/admin/)[image](https://fr-ca.wordpress.org/plugins/tags/image/)
   [images](https://fr-ca.wordpress.org/plugins/tags/images/)[post](https://fr-ca.wordpress.org/plugins/tags/post/)
   [posts](https://fr-ca.wordpress.org/plugins/tags/posts/)
 *  [Vue avancée](https://fr-ca.wordpress.org/plugins/article-photo/advanced/)

## Notes

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/article-photo/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/article-photo/reviews/)

## Contributeurs

 *   [ chrisnorthwood ](https://profiles.wordpress.org/chrisnorthwood/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/article-photo/)