[wp-hackers] Finding post ID while in header

Andy Skelton skeltoac at gmail.com
Tue Mar 21 20:25:10 GMT 2006


On 3/21/06, CaptSolo <captsolo at gmail.com> wrote:
> Hi!
>
> Could you suggest how to find out what the post ID is while in header?
> E.g., how to display a post ID (if this is a single post page) within
> HTML comments.

$posts[0] should have what you're looking for.

Andy


More information about the wp-hackers mailing list