Prevent users from adding taxonomy terms

For these situations build your own metabox for the tax terms and use radio or select. My fork of Jared Atchison’s Custom Meta Box class supports custom taxonomy metaboxes. After you get the metabox directory uploaded use this to create your meta box. $prefix = ‘xxx_’; //Add your own unique prefix. $meta_boxes = array(); $meta_boxes[] … Read more

Custom Taxonomy Tag Cloud?

What exactly do you mean by separated? If you want multiple tags clouds you will probably need to: fetch full list of terms; split it into groups by your criteria; call wp_tag_cloud() for each group, using include argument to use specific subset of terms.

Passing form inputs into multi-taxonomy query

You mention that with your first attempt you get the URL http://sitename.com/?brand=22 which is correct as you’ve used a get method, but you don’t say what code you’re using for the query. Personally I use this for my form and would agree with wdalhaj to use post instead of get <form id=”brandsearch” method=”post” action=””> <select … Read more

Query posts from a child taxonomy term id

i solved the problem if(isset($_POST[‘main_brand_id’])) { $term_id .= $_POST[‘main_brand_id’]; $term = get_term( $term_id, ‘state’ ); $slug = $term->slug; global $post; $post_id = $post->ID; $args = array( ‘post_type’ =>’dealers’,’taxonomy’=>’state’, ‘term’ => $slug ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); echo ‘<option value=”‘.$post->ID.'”>’ $options .= the_title(); echo ‘</option>’; endforeach; die(); } … Read more