[wp-hackers] Post Id Question

Kimmo Suominen kim at tac.nyc.ny.us
Mon Apr 4 15:17:39 GMT 2005

On Mon, Apr 04, 2005 at 11:14:40AM -0400, Ryan Duff wrote:
> 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();

Wouldn't you need to use ob_start etc. around the_ID() ?

+ Kim
<A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A>

More information about the wp-hackers mailing list