Title: Replacement for wp_rss
Last modified: August 19, 2016

---

# Replacement for wp_rss

 *  Resolved [Saronsongs](https://wordpress.org/support/users/saronsongs/)
 * (@saronsongs)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/replacement-for-wp_rss/)
 * If wp_rss has been deprecated, what is the replacement?
 * [http://codex.wordpress.org/Function_Reference/wp_rss](http://codex.wordpress.org/Function_Reference/wp_rss)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Saronsongs](https://wordpress.org/support/users/saronsongs/)
 * (@saronsongs)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/replacement-for-wp_rss/#post-1824362)
 * Found a nice fix here:
 * [http://www.dangayle.com/import-feeds-wordpress-fetch-feed/](http://www.dangayle.com/import-feeds-wordpress-fetch-feed/)
 * <?php
    include_once(ABSPATH . WPINC . ‘/rss.php’); $feed = ‘[http://example.com/feed/&#8217](http://example.com/feed/&#8217);;
   $rss = fetch_feed($feed); if (!is_wp_error( $rss ) ) : $maxitems = $rss->get_item_quantity(
   3); $rss_items = $rss->get_items(0, $maxitems); if ($rss_items): echo ”
    - \n”;
       foreach ( $rss_items as $item ) : echo ‘
    - ‘;
       echo ‘get_permalink() . ‘”>’ . $item->get_title() . “
      \n”;
       echo ‘<p>’.
      $item->get_description() . “
    - \n”;
       endforeach; echo “
 * \n”;
    endif; endif; ?>

Viewing 1 replies (of 1 total)

The topic ‘Replacement for wp_rss’ is closed to new replies.

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)
 * [wp_rss](https://wordpress.org/support/topic-tag/wp_rss/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Saronsongs](https://wordpress.org/support/users/saronsongs/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/replacement-for-wp_rss/#post-1824362)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
