How to group non-hierarchical tags?

The examples i quote in my answer can be found here, i also recommend you read that page carefully to help you with this. But lets grab an existing example there and change it a bit. <?php //you must change the parameters in the get_terms function to get exactly the terms you want $terms = … Read more

unable to save custom taxonomy terms in a custom-built metabox in wp-admin

Rather than ‘returning’ on a failure of authentication check, die with an appropriate message: For example: if ( !wp_verify_nonce( $_POST[‘states_noncename’], plugin_basename( __FILE__ ) ) ) wp_die(“Nonce-check failure”); This will indicate on what check (if any) that you are failing. In most cases, I would advise doing this rather than returning as it gives the user … Read more

Disable a Custom Taxonomies default save mechanism

Like Bainternet suggested – remove_meta_box( ‘tagsdiv-custom_taxonomy_id’, ‘post’, ‘side’ ); to remove the default Metabox. If you want to still see the terms. Then re-register the metabox with your own custom callback. This callback function can then mimic the function used to display the default metabox – but simply omitting any input forms /checkboxes which send … Read more

Chaining Taxonomy Queries

Use get_categories to return the terms in each taxonomy then loop through each getting the posts. $args = array( ‘taxonomy’ => ‘meal_time’ ); $meal_times = get_categories( $args ); foreach ( $meal_times as $meal ) { echo ‘<h3 class=”meal-title”>’ . $meal->cat_name . ‘</h3>’; //Shows the term name as the title then loops through courses $child_args = … Read more