Title: Fetch Feed
Author: JR Tashjian
Published: <strong>22 ມັງກອນ 2009</strong>
Last modified: 11 ສິງຫາ 2009

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

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

# Fetch Feed

 ໂດຍ [JR Tashjian](https://profiles.wordpress.org/jrtashjian/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/fetch-feed.1.5.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/fetch-feed/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/fetch-feed/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/fetch-feed/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/fetch-feed/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/fetch-feed/)

## ຄຳອະທິບາຍ

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)); ?>`

## ການຕິດຕັ້ງ

 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

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Fetch Feed” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການພັດ
ທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “Fetch Feed” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/fetch-feed)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/fetch-feed/), ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/fetch-feed/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/fetch-feed/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/fetch-feed/?limit=100&mode=stop_on_copy&format=rss).

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.5**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **17 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **10+**
 *  ເວີຊັນ WordPress ** 2.5 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **2.8**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/fetch-feed/)
 * ແທັກ
 * [cache](https://lo.wordpress.org/plugins/tags/cache/)[feeds](https://lo.wordpress.org/plugins/tags/feeds/)
   [rss](https://lo.wordpress.org/plugins/tags/rss/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/fetch-feed/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

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

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/fetch-feed/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/fetch-feed/)