Allow get_post*() and get_page*() functions to query by more than ID or using an post object.

Description

This is similar to ticket #12726 which I just submitted but is broader. There are many functions in post.php (and probably elsewhere) that accept a $post as a lookup parameter where $post is either an ID or an object with an attribute of "ID" containing a post ID, i.e. $post->ID. It would be nice if they could optionally accept other lookup criteria such as 'path' and 'title.'

Change History (7)

We have a get_user_by() function. Emulating that for pages/posts/post_types I think is what you're trying to get at with this ticket and #12726. Sounds like a good idea in theory, though strong doubts on 3.0 for it.

We have a get_user_by() function. Emulating that for pages/posts/post_types I think is what you're trying to get at with this ticket and #12726. Sounds like a good idea in theory, though strong doubts on 3.0 for it.

Cool. Wasn't really expecting it for 3.0, just wanted to get it into the queue... :-)