Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

tax query by term id

<?php
$args = array(
'post_type' => 'recipe_cpt',
'tax_query' => array(
    array(
    'taxonomy' => 'recipe_tx',
    'field' => 'term_id',
    'terms' => 37
     )
  )
);
$query = new WP_Query( $args ); ?>
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #tax #query #term #id
ADD COMMENT
Topic
Name
8+3 =