Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wpquery search taxonomy

//WP QUERY SEARCH TAXONOMY 
$args = array(
    'tax_query' => array(
        array(
            'taxonomy' => 'my-taxonomy',
            'field' => 'slug',
            'terms' => 'my-term-slug',
        )
    )
);
Source by code.tutsplus.com #
 
PREVIOUS NEXT
Tagged: #wpquery #search #taxonomy
ADD COMMENT
Topic
Name
7+9 =