how to echo a custom taxonomy term from an array of term

You’re checking if a product_type has a term using has_term(). Now you need to actually get the terms using get_terms(). That function can technically return from 1 to 4 terms. If more than one of the terms is set, you’ll need to pick one. In the following code, I chose the first since there’s guaranteed … Read more

Custom category page with taxonomy filters

The solution: Add ‘operator’ => ‘AND’, to the tax_query. ‘tax_query’ => array( ‘relation’ => ‘OR’, array( ‘taxonomy’ => ‘offer’, ‘field’ => ‘slug’, ‘terms’ => array($offer), ‘operator’ => ‘AND’, ), array( ‘taxonomy’ => ‘network’, ‘field’ => ‘slug’, ‘terms’ => array($network), ‘operator’ => ‘AND’, ),

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)