I'd like to exclude Tag ID: 26 from my homepage. I've figured out how to do it with categories, but not with tags.
function exclude_posts( $query ) {
if ( $query->is_home ) { $query->set( 'cat', '-13' );
} } add_action( 'pre_get_posts', 'exclude_posts' );