Skip to content

Instantly share code, notes, and snippets.

@rileypaulsen
Last active December 19, 2015 13:09
Show Gist options
  • Save rileypaulsen/5960537 to your computer and use it in GitHub Desktop.
Save rileypaulsen/5960537 to your computer and use it in GitHub Desktop.
taxonomy query for get_posts()
'tax_query'=> array(
array(
'taxonomy' => 'decade',
'field' => 'id',
'terms' => $decadesArray,
'operator' => 'NOT IN'
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment