Trying to get custom post of a custom taxonomy
I can’t get the first bit to work, I can’t get the taxonomy to return the post. So the following is the first bit which queries posts in a single taxonomy term: $posts_array = get_posts( array( ‘showposts’ => -1, ‘post_type’ => ‘treatment’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘treatment_type’, ‘field’ => ‘term_id’, ‘terms’ => $term->slug, … Read more