Title: Fetch Feed
Author: JR Tashjian
Published: <strong>22 janvier 2009</strong>
Last modified: 11 août 2009

---

Recherche d’extensions

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

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

# Fetch Feed

 Par [JR Tashjian](https://profiles.wordpress.org/jrtashjian/)

[Télécharger](https://downloads.wordpress.org/plugin/fetch-feed.1.5.zip)

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

 [Support](https://wordpress.org/support/plugin/fetch-feed/)

## Description

This plugin was created to retrieve and cache an RSS feed for use in a template.

What you do is pass the url to the feed you would like returned and the number of
minutes you would like the feed cached for. The
 plugin will cache the RSS xml and
return the feed as an object which you can loop through and output however you please.

New As Of Version 1.5:
 – Fixed a typo that caused the feed to be retrieved and 
cached every time. Credit: Binny V A (http://www.bin-co.com/blog/) – Thanks man!

### General Usage

fetch_feed_cache() is the only function you will be using with this plugin. fetch_feed_cache()
accepts 2 parameters.

 1. (string) $url – This is the URL to the feed you would like to parse
 2. (int) $cache_min – This is the amount of time in minutes you would like the feed
    cached for.

Here is an example of the plugin being used in a template:

    ```
    <?php $xml = fetch_feed_cache("http://jrtashjian.com/feed/", 60); ?>
    <h3><?=$xml->channel->title?></h3>
    <ul>
        <?php if( ! empty($xml)) : ?>
            <?php foreach($xml->channel->item as $item) : ?>
                <li><a href="<?=$item->link?>"><?=$item->title?></a></li>
            <?php endforeach; ?>
        <?php else : ?>
            <p>Delicious doesn't seem to be working at the moment...</p>
        <?php endif; ?>
    </ul>
    ```

Remeber, every feed could be different. If you need to see the structure of the 
object returned just use print_r().
 Example: `<?php print_r(fetch_feed_cache("http://
jrtashjian.com/feed/", 25)); ?>`

## Installation

 1. Upload the `fetch-feed/` directory to the `/wp-content/plugins/` directory
 2. Make sure the `fetch-feed/cache/` directory is writeable
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## Avis

Il n’y a aucun avis pour cette extension.

## Contributeurs/contributrices & développeurs/développeuses

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

Contributeurs

 *   [ JR Tashjian ](https://profiles.wordpress.org/jrtashjian/)

[Traduisez « Fetch Feed » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/fetch-feed)

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

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

## Méta

 *  Version **1.5**
 *  Dernière mise à jour **il y a 17 ans**
 *  Installations actives **10+**
 *  Version de WordPress ** 2.5 ou plus **
 *  Testé jusqu’à **2.8**
 *  Langue
 * [English (US)](https://wordpress.org/plugins/fetch-feed/)
 * Étiquettes
 * [cache](https://fr.wordpress.org/plugins/tags/cache/)[feeds](https://fr.wordpress.org/plugins/tags/feeds/)
   [rss](https://fr.wordpress.org/plugins/tags/rss/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/fetch-feed/advanced/)

## Évaluations

Aucun avis n’a encore été envoyé.

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

[Voir tous les avis](https://wordpress.org/support/plugin/fetch-feed/reviews/)

## Contributeurs

 *   [ JR Tashjian ](https://profiles.wordpress.org/jrtashjian/)

## Support

Quelque chose à dire ? Besoin d’aide ?

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