[vc_row][vc_column][vc_column_text]

By default, the latest posts list on the front page gets displayed in reverse chronological order and that is what latest posts is. Can you customize it further?

[/vc_column_text][vc_column_text]Can you display random posts on the front page?[/vc_column_text][vc_column_text]

Add this small bit of code to your child theme’s functions.php and you can indeed display random posts on your front page.

[/vc_column_text][/vc_column][/vc_row][vc_row css=”.vc_custom_1492863573802{margin-top: 20px !important;border-top-width: 1px !important;border-right-width: 1px !important;border-bottom-width: 1px !important;border-left-width: 1px !important;padding-top: 5px !important;padding-right: 5px !important;padding-left: 5px !important;background-color: #f5f5f5 !important;border-left-color: #cccccc !important;border-left-style: solid !important;border-right-color: #cccccc !important;border-right-style: solid !important;border-top-color: #cccccc !important;border-top-style: solid !important;border-bottom-color: #cccccc !important;border-bottom-style: solid !important;border-radius: 10px !important;}”][vc_column][vc_column_text]
add_action(‘pre_get_posts’,‘alter_query’);
function alter_query($query){
    if ($query->is_main_query() &&  is_home())
        $query->set(‘orderby’, ‘rand’); //Set the order to random
}
[/vc_column_text][/vc_column][/vc_row]