Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created October 11, 2016 20:45
Show Gist options
  • Save hellofromtonya/e44d0837bc6ec3d53e1fc5c98d1207c7 to your computer and use it in GitHub Desktop.
Save hellofromtonya/e44d0837bc6ec3d53e1fc5c98d1207c7 to your computer and use it in GitHub Desktop.
Filtering content with WHERE
SELECT ID, post_title
FROM wp_posts
WHERE post_type = 'portfolio' AND post_status = 'publish';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment