How To Assign “Taxonomy per Taxonomy”?

Essentially your issue is that you have extra data specific to the term and WP doesn’t natively store such data. On top of my head the low hanging ways to make it would be: Maintain the list of schools/colors and whenever school term is assigned automatically assign respective colors by code. Create term metadata tables … Read more

Creating a custom search form

Here’s an option. Give a more specific name e.g. custom_search_form to your submit button: (…) //First a submit button $output .= ‘<input type=”submit” class=”submit” name=”custom_search_form” id=”searchsubmit” value=”submit” />’.”\r\n”; Then you can add this to your functions.php file: add_action( ‘parse_request’, ‘my_custom_search_form’ ); function my_custom_search_form($query) { //return if it not our custom search form if ( ! … Read more

How do I taxonomy terms based on terms they are used alongside?

So my solution on this kind of problems where we have a very complex set of rules is to avoid doing new SQL just for my solution because if you have to explain it to a beginner it gets hairy. My solution: function get_term_union( $taxonomy, $tax_query, $post_type=”post” ){ $args = array( ‘post_type’ => $post_type, ‘tax_query’ … Read more