Skip to content

Instantly share code, notes, and snippets.

@Sharifur
Created March 25, 2018 18:28
Show Gist options
  • Save Sharifur/d251c67a56a72d210b6f01f0c510c2eb to your computer and use it in GitHub Desktop.
Save Sharifur/d251c67a56a72d210b6f01f0c510c2eb to your computer and use it in GitHub Desktop.
custom taxonomy query
$arg = array(
'post_type' => 'xgenious_teams',
'posts_per_page'=> $count,
'tax_query' => array(
array(
'taxonomy' => 'xgenious_teams',
'field' => 'term_id',
'terms' => $category
)
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment