title: In Wordpress, how to restrict posts to only one category checkbox?
body: <p>When posting, I want the user to be able to select only one category. How can I achieve something like that?</p>
  
  <p>Sorry, I should have been more clearer. When checking the boxes to select the categories the posts will go into, I'd like that to function as radio buttons where you get to select only one option.</p>
  
  <p>jQuery would be a quick fix for that and found the jquery following code online and I'm trying to figure out where to add it to the post.php head tag:</p>
  
  <pre><code>var $t = jQuery.noConflict();
  $t(document).ready(function() {   
    $t('#categorychecklist li input[type="checkbox"]').each(function(){
      $t(this).change(function(){
          //alert( $t('#categorychecklist li input[checked="checked"]').parent().html() );
          $t('#categorychecklist li input').attr('checked','');
          $t(this).attr('checked','checked');
      })
    })
  });
  </code></pre>