WordPress模板标签the_ID用于输出当前文章的ID,需要用在The Loop主循环里。
the_ID()
使用示例:
<p>文章ID: <?php the_ID(); ?></p>
扩展阅读
the_ID()函数位于:wp-includes/post-template.php
相关函数:
- get_the_ID()
- the_title()
- the_title_attribute()
WordPress模板标签the_ID用于输出当前文章的ID,需要用在The Loop主循环里。
the_ID()
使用示例:
<p>文章ID: <?php the_ID(); ?></p>
the_ID()函数位于:wp-includes/post-template.php
相关函数:
之前
微码盒是一个收集并分享源码的网站,致力于服务器租用以及分享系统运维工作经验的知识库,由系统运维、脚本编程以及资源分享等分类组成,涵盖了操作系统教程、运维经验、脚本语言以及网络资源等。