Query Taxonomy By Page Title

If you don’t define the field in the array then it defaults to ID. Your options are term_id, name and slug: http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters ‘tax_query’ => array( array( ‘taxonomy’ => ‘language’, ‘field’ => ‘name’, ‘terms’ => get_the_title() ) )

Query Posts that have Custom Taxonomy

Got help on Facebook and just needed to change this: <option value=”<?php echo $term->name; ?>” <?php if($_POST[‘mealtype’] == $term->name) { echo ‘selected’; } ?>><?php echo $term->name; ?></option> to this: <option value=”<?php echo $term->slug; ?>” <?php if($_POST[‘mealtype’] == $term->slug) { echo ‘selected’; } ?>><?php echo $term->name; ?></option>

Calling related posts to a custom post type, taxonomy & Tag id

get_the_term_list() returns HTML but you are trying to use it as if it returned a term ID — ‘blog_cats’ => $blogcats,. That is not going to work. You will need to use get_the_terms() and a tax_query (I think. I am not 100% sure). Something like: $blogcats = get_the_terms($post->ID,’category’); // var_dump($blogcats); $blogcats = wp_list_pluck($blogcats,’term_id’); // var_dump($blogcats); … Read more