Recently, Wordpress added in the Trac that you can fetch posts by title using:
get_page_by_title
Instead of querying the database straight up. If I wanted to get post titled "my farm", how would I change the parameters so it is searching for a post (or a post type?):
$page_title='Joey in the forest';
'character' is a post type. But don't know how to work this. I assume the default return is the id, which would be $post->ID. Not sure what would be the equivalent if I use a post type.
Thanks for anyone's help on this