How to make a term belong to multiple taxonomies?
How to make a term belong to multiple taxonomies?
How to make a term belong to multiple taxonomies?
How to change default taxonomy for CPT only (not posts)
How to Filter the Custom term loop based on dropdown
When using get_terms with hide_empty = true, terms that only contain scheduled posts are not returned. How to override this?
One custom taxonomy with unique sets of labels for two post types?
Having many sub-urls on the same custom taxonomy term
wp_insert_term is extremely slow
I have finally found a solution and for anyone interested, here is the working code : <?php // The Query if (is_tax() || is_category() || is_tag() ){ $qobj = $wp_query->get_queried_object(); // concatenate the query $args = array( ‘post_type’ => ‘houses’, ‘posts_per_page’ => -1, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ‘tax_query’ => array( array( ‘taxonomy’ => … Read more
Can try this: $terms = get_the_terms ($post->id, ‘skills’); if ( !is_wp_error($terms)) : ?> <?php $skills_links = wp_list_pluck($terms, ‘name’); $skills_yo = implode(“, “, $skills_links); ?> <span><?php echo $skills_yo; ?></span>
Try adding include_children parameter as false to your first example (tested): $args = array( ‘post_type’ => ‘workshops’, ‘posts_per_page’ => -1, ‘fields’ => ‘ids’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘workshop_categories’, ‘field’ => ‘slug’, ‘terms’ => array( ‘crafts’, ‘jewellery’ ), ‘operator’ => ‘AND’, ‘include_children’ => false, ) ) ); $posts = get_posts( $args ); Unfortunately I … Read more