似乎通过添加\'posts_per_page\' => -1
这迫使WordPress显示与参数匹配的所有帖子。这是我的最终代码:
array (
\'post_type\' => \'symposia_program\',
\'days\' => $progDay,
\'meta_key\' => \'class_number\',
\'orderby\' => \'meta_value_num\',
\'order\' => \'ASC\',
\'posts_per_page\' => -1
);