Remove description in custom taxonomy edit screen

check out this thread – I’m afraid nothing has changed since then, there is still no way of filtering the description field (it’s just html hardcoded in the file https://github.com/WordPress/WordPress/blob/master/wp-admin/edit-tags.php#L484, so you can’t remove it with php without editing the core files, which is never a right way to go). The hook you’re using, {$taxonomy}_edit_form_fields … Read more

Exclude Custom Taxonomies

Your tax_query is incorrect. taxonomy does not take an array. taxonomy (string) – Taxonomy. http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters You will need to rewrite your arguments to be more like the following from the Codex: $args = array( ‘post_type’ => ‘post’, ‘tax_query’ => array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘movie_genre’, ‘field’ => ‘slug’, ‘terms’ => array( ‘action’, ‘comedy’ … Read more

Dynamically tax_query

Just needs a little array manipulation. $def = array( ‘taxonomy’ => ‘cities’, ‘field’ => ‘slug’, ‘operator’ => ‘NOT IN’ ); $cities = array( ‘boston’, ‘chicago’ ); $args = array(‘relation’ => ‘OR’); foreach ($cities as $c) { $args[] = wp_parse_args(array(‘terms’=>$c),$def); } print_r($args); The $cities array you need to build from your $_POST or $_GET form data, … Read more

Custom taxonomy template loop

The way I read you question is that you need 12 posts per page in this taxonomy regardless of the current term been displayed. This can be easily done with pre_get_posts. You should never change the main query for a custom query on archive pages. Have a read on this answer I’ve recently done on … Read more