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 } The file /var/www/html/meubless.club/wp-content/themes/jef_themes/functions.php is corrupted.