[wp-hackers] Post Id Question

Ryan Duff ryan at ryanduff.net
Mon Apr 4 15:14:40 GMT 2005

Bill Smith wrote:
> I have a filter for "the_content". Inside the filter function, I need 
> the post id. What is the best way to obtain it?

$post_id = the_ID();


Ryan Duff
AIM: ryancduff
irc.freenode.net #wordpress

---------------------[ Ciphire Signature ]----------------------
From: ryan at ryanduff.net signed email body (245 characters)
Date: on 04 April 2005 at 15:13:14 UTC
To:   wp-hackers at lists.automattic.com
: Ciphire has secured this email against identity theft.
: Free download at www.ciphire.com. The garbled lines
: below are the sender's verifiable digital signature.
------------------[ End Ciphire Signed Message ]----------------

More information about the wp-hackers mailing list