WordPress ID PHP
WordPress, identifier ) ID. , WordPress ) , the_ID , the_content , $id $id ID.
the_ID :
<?php the_ID(); ?>
) ) , ) ) WordPresss’ blog, the_ID() = can . , $ ->ID ID ( ) $ ). $ . $ ->ID ID ) . $ , $ . :
function_name() {
$ ;
$thePostID = $ ->ID;
}
:
)
function_name() {
$wp_query;
$thePostID = $wp_query-> ->ID;
}
$->ID ) , <?php $ ->ID ?> ’ ID .
, ’ earliest ID ) using
, :
ID
$->ID post_date ASC 1
earliest ID
$->ID post_date , 1
- WordPress NextPage WordPress
- WordPress 2.6
- WordPress ,
- WordPress MySQL SQL WPDB
- , WordPress / /
- ( - )
- - WordPress
- 3 WordPress , -paged.php - WordPress
- WordPress /
- WordPress bbPress using bbSync

































1st, 2006 0606:
… ’ blog php .
3rd, 2007 0510:
, !
16th, 2007 1415:
Google. WP wiki: http:/codex.wordpress.org/Main_Page/
28th, 2007 1155:
. . update . .
21st, 2007 0751:
, using ‘ $id;’ id .
6th, 2007 0009:
comment_fashion
10th, 2007 2105:
[...] 使用post ID变量可以做到。post$->ID可以返回文章的唯一编号。 [...]
18th, 2008 1811:
’ . id wordpress ( ) .
6th, 2008 2002:
. ! dont wordpress.
16th, 2008 0327:
,
.
configure - - .
Im’ using wordpress blog blog.
. , relshadowboximageset=”[]” ) .
- ID ) .
?
16th, 2008 0327:
) . .
17th, 2008 1402:
. !
18th, 2008 0934:
.