I have a function retrieving ID's of posts by very specific means.
I need to be able to set the
global $post in order to use functions like
the_content(), which does not allow an ID as a parameter.
How can I achieve this?
To work with posts outta loop try using:
to get a post with a specific ID out of the loop,when you do this,the global object $post will hold the post which you'v just selected.Now you can get the content using :