WordPress.org

Ready to get started?Download WordPress

Forums

Reorder posts from an RSS feed (1 post)

  1. David Gard
    Member
    Posted 2 years ago #

    Hey all,

    Is it possible to chnage the order of posts in an RSS feed that I wish to display on my website? They are ordered by date, where as I require them to be ordered by Post Title.

    $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;

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.