Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created October 11, 2016 20:09
Show Gist options
  • Save hellofromtonya/6eece849f18e17e27dea223338033565 to your computer and use it in GitHub Desktop.
Save hellofromtonya/6eece849f18e17e27dea223338033565 to your computer and use it in GitHub Desktop.
Fetches the revisions for post ID 8.
SELECT ID
FROM wp_posts
WHERE post_name = '8-revision-v1';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment