在查询中添加偏移量并将值设为5,因此将跳过前5个。
下面是相同的代码段
$custom_args = array(\'post_type\' => \'your custom post type name\',
\'posts_per_page\' => \'20\',
\'orderby\' => \'id\',
\'offset\'=>5,
\'order\' => \'ASC\',);
$custom_query = get_posts($custom_args);
foreach ($custom_query as $value) {
//your data
}