I have 2 websites, and I wish to show some posts from one on the other using an RSS feed.
Trouble is, the default seems to be order by publish date, where as I need them ordered by title. I'm using Wordpress, which uses SimplePie (which I believe is pretty common?).
Is there a way to reorder these items before I display them? Thanks.
/**
* $feed = the RSS feed to display (set via CMS option)
* $num_posts = the number of posts to display from the feed (set via CMS option)
*/
$max_items = 0;
if($feed !== '') :
$rss = fetch_feed($feed);
if(!is_wp_error($rss)) :
$max_items = $rss->get_item_quantity($num_posts);
$rss_items = $rss->get_items(0, $max_items);
endif;
endif;