Skip to content

Instantly share code, notes, and snippets.

@technosailor
Created August 30, 2012 20:27
Show Gist options
  • Save technosailor/3540048 to your computer and use it in GitHub Desktop.
Save technosailor/3540048 to your computer and use it in GitHub Desktop.
<?php
global $wp_query;
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
query_posts(
array(
'post_status' => 'publish',
'paged' => $paged,
'posts_per_page' => 5,
'post_type' => 'reviews',
'meta_query' => array(
array(
'key' => 'review_type',
'value' => 'treatment'
)
),
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment