Disable automatic p tag insertion in WordPress

Add this code at the top of your templates pages:

<?php
remove_filter ('the_content', 'wpautop');
remove_filter ('the_excerpt', 'wpautop');
?>