Skip to content

Instantly share code, notes, and snippets.

@gabhi
Created March 26, 2014 09:06
Show Gist options
  • Save gabhi/9779302 to your computer and use it in GitHub Desktop.
Save gabhi/9779302 to your computer and use it in GitHub Desktop.
get wordpress post by id
$mypost = get_post($_GET['post_id']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment