Skip to content

Instantly share code, notes, and snippets.

@whatjackhasmade
Created July 21, 2017 11:03
Show Gist options
  • Save whatjackhasmade/15c63bb84638104718ffd84893a99411 to your computer and use it in GitHub Desktop.
Save whatjackhasmade/15c63bb84638104718ffd84893a99411 to your computer and use it in GitHub Desktop.
Get Posts With A Specific Custom Field And Specific Value
<?php query_posts('meta_key=review_type&meta_value=movie'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment