I wanted to have my home page with the posts that are updated. For example, I wrote a post which could be 5 years back and I feel that I need to update the post with the current status and I do it, but it does not show up on the home page. I thought that I need to modify the default home page query and show those posts too.

/** Ordery by modified date posts on homepage **/

add_action( 'pre_get_posts',  'order_by_modified_date'  );
function order_by_modified_date( $query ) {
    if ( is_home() )
        $query->set( 'orderby', 'modified' );
    return $query;
}

On the functions.php file of your theme, you can add this. Please note this is for Genesis theme as well as for regular themes

%d bloggers like this: