Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PhongGCS/6e077b744736b1f92bad4469f95e564c to your computer and use it in GitHub Desktop.
Save PhongGCS/6e077b744736b1f92bad4469f95e564c to your computer and use it in GitHub Desktop.
$data['args']['tax_query'] = [
[
'taxonomy' => 'brand',
'field' => 'id',
'terms' => get_field('brands', $id)
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment