Possible to get feed to return latest updated posts rather than latest published?

Currently the RSS feed of my WordPress blog gives me the latest published posts. Is it possible to change this so that it returns the ones that are latest updated instead? So that the latest published are still in the feed, but if I update an old post it would pop up in a feed reader.

Related posts

Leave a Reply

1 comment

  1. Try this (not tested) add to your functions.php of active Theme

    function wpse49312_alter_the_query( $request ) {
        $dummy_query = new WP_Query();
        $dummy_query->parse_query( $request );
    
        if ( $dummy_query->is_feed() )
            $request['orderby'] = 'modified';
    
        return $request;
    }
    add_filter( 'request', 'wpse49312_alter_the_query' );
    

    From Alternative to query_posts for main loop?