I'm trying to achieve a similar effect to get_page($id), but with the current post acting as the argument for get_post(). Something like this pseudocode:
Seems simple, but I can't find the it in the docs.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
You can simply call
get_post(), it returns the current post if no ID is specified.
get_the_ID() actually does the same.
$id = get_the_ID(); var_dump(get_post($id));