WordPress 中 WP_Query 函数限制查询数量的参数并不是常见的limit,而是posts_per_page。使用示例:

$args = array(
        'posts_per_page' => '5',
);

$query = new WP_Query($args);