WordPress ID PHP
In WordPress, has identifier in ID. , WordPress tags, the_ID easily ’ ID . , the_content , $id $id ID.
the_ID in :
<?php the_ID(); ?>
, in in templates WordPresss’ blog, the_ID() a . , $ ->ID ID ( declaring $ ). $ a . $ ->ID ID . $ a , $ has a . :
function_name() {
$ ;
$thePostID = $ ->ID;
}
:
in
function_name() {
$wp_query;
$thePostID = $wp_query-> ->ID;
}
$->ID in a , <?php $ ->ID ?> ’ ID .
In , its’ earliest ID using an , 1.
, :
ID
$->ID post_date ASC 1
earliest ID
$->ID post_date 1
: a ? " " . . English .
My .
- Paginating WordPress NextPage in WordPress
- in WordPress 2.6
- WordPress An
- WordPress MySQL SQL in WPDB
- WordPress / /
- ( )
- - in WordPress Versions
- 3 WordPress -paged.php - WordPress
- WordPress /
- WordPress bbPress using bbSync

































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