WordPress 函数文档

the_ID()

在 WordPress Loop 中显示当前项目的 ID。

wp_reset_postdata()

在遍历一个单独的查询后,此函数将 $post 全局变量恢复到主查询中的当前文章。