COnditional Headers For Individual Entries
-
I use the following code as a mini-header of sorts for each entry.
<div class="allposts"><p>You are watching <?php the_title(); ?> from the <?php the_category(', '); ?> series. Watch <?php the_title(); ?> and the other episodes of <?php the_category(', '); ?> with online anime streaming only here at HiddenAnime. </p></div>
I have 5000 entries at my site and here is a sample page in a sandbox that you can view to see what I am trying to do:
http://plussizedfitness.com/blog/?p=1
The sandbox is not set up with fancy permalinks, but that will not matter for the purposes of this discussion.
What I need to do is exclude the above mini-header tag from a category called “old_anime” and because I am not educated in PHP very well, I sure could use some help.
The mini-header tag is in the single post,php content loop, so that it appears in every entry. So, how do I write a conditional statement to exclude it from the stated category?
Thank you
- The topic ‘COnditional Headers For Individual Entries’ is closed to new replies.