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

how to get the post id in the option tag

$post->id needs to be $post->ID You can also use get_the_ID() Since your calling setup_postdata() you need to call wp_reset_postdata() after your foreach loop. You also need to echo the value of $options somewhere. foreach( $myposts as $post ) : setup_postdata($post); $options .= ‘<option>’; $options .= ‘<option value=”‘.$post->id.'”>’; $options .= get_the_title(); $options .= ‘</option>’; echo $options; … Read more

How to filter Multiple taxonomies with radio buttons

Here’s how you do it, <form name=”filterby” action=”” method=”GET”> <input type=”radio” name=”cartype” value=”bentley” OnChange=”document.filterby.submit()” /> Bentley<br /> <input type=”radio” name=”cartype” value=”bmw” OnChange=”document.filterby.submit()”/> BMW <input type=”radio” name=”cartype” value=”bugatti” OnChange=”document.filterby.submit()”/> Bugatti </form> <?php $selection = $_GET[‘cartype’]?$_GET[‘cartype’]:’bentley’; $args = array_merge( $wp_query->query, array( ‘post_type’ => ‘cars’, ‘taxonomy’ => $selection, ‘order’ => desc ) ); query_posts( $args ); if (have_posts()) … Read more