I want to have two different methods of displaying single posts:
1. H1 headers, and with no meta tags and comments
(this will be a specific group of child categories under one parent category)
2. H2 headers, and with meta tags and comments
(this will be every other post)
Here's my conditional tag code for the headers portion:
<?php if(in_category('55')) : ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1>
<?php else :?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<?php endif;?>
I'm testing a single page using a post under category 55. Category 55 is a second-child level category, two levels under a parent category of 25. I try 25 and it uses the h2 header style. I try the second level category of 16 and still get the h2 header style. But I try 55 and I get the h1 style.
Any tips on how I can get the top level parent of 25 to be used so I can cover all the child levels below with one category id?