public static function getByTerm($taxonomy, $terms, $field = 'slug', $args = array(), $load_terms = true)
    {
        $args = array_merge($args, array(
            'tax_query'=>array(
                array(
                    'taxonomy'=>$taxonomy,
                    'terms'=>$terms,
                    'field'=>$field
                )
            ),
        ));
        return static::getWhere($args, $load_terms);
    }
public static function getByTerm($taxonomy, $terms, $field = 'slug', $args = array(), $load_terms = true)
    {
        $args = array_merge($args, array(
            'tax_query'=>array(
                array(
                    'taxonomy'=>$taxonomy,
                    'terms'=>$terms,
                    'field'=>$field
                )
            ),
        ));
        return static::getWhere($args, $load_terms);
    }
public static function getByTerm ( $ taxonomy , $ terms , $ field = 'slug' , $ args = array ( ) , $ load_terms = true ) { $ args = array_merge ( $ args , array ( 'tax_query' => array ( array ( 'taxonomy' => $ taxonomy , 'terms' => $ terms , 'field' => $ field ) ) , ) ) ; return static :: getWhere ( $ args , $ load_terms ) ; }
Get by a taxonomy and term
@param string $taxonomy
@param mixed $terms
@param string $field
@param array $args
@param bool $load_terms
@return array
Get by a taxonomy and term