您可以通过pre_get_posts 措施:
function wpa85668_ascending_order( $query ) {
if ( $query->is_home() && $query->is_main_query() )
$query->set( \'order\', \'ASC\' );
}
add_action( \'pre_get_posts\', \'wpa85668_ascending_order\' );
如果是自定义查询,只需设置
order 查询var到
ASC 在传递给查询的参数中。