Microformats in a single post – layout conflict

If you’re on a page by default The Loop will only run once so why not wrap your title and content in a container where you can have post_class() available? Start your loop at the top and end it before you get to your footer (or where ever you need to end it).

If you are on a blog format and are running the loop multiple times, you’ll need to be in the loop anyway to use the_title() properly anyway so you should have access to post_class() anyway.

You could probably set it manually but then you would need to remove it from the post class which you can do by using the following:

function remove_from_posts_class( $classes ) {
    $classes = array_diff( $classes, array( "hentry" ) );
    return $classes;
}
add_filter( 'post_class', 'remove_from_posts_class' );

[1] Credits jrandomh