In the codex for
WP_Query I see you can query by
page_id=7 for pages or by
p=7 for posts. Is there a way to get a post of any post type by ID? Like
id=7 that will get it no matter if it's a page, post or custom post type?
I can only get
p=7 to work if I add
&post_type=customposttype. Is there a way to get it from the ID regardless of the post type?