描述:
显示当前文章ID
用法:
<?php the_ID(); ?>
示例:
<p>Post Number: <?php the_ID(); ?></p>
源文件:
/**
* Display the ID of the current item in the WordPress Loop.
*
* @since 0.71
*/
function the_ID() {
echo get_the_ID();
}
显示当前文章ID
<?php the_ID(); ?>
<p>Post Number: <?php the_ID(); ?></p>
/**
* Display the ID of the current item in the WordPress Loop.
*
* @since 0.71
*/
function the_ID() {
echo get_the_ID();
}