Category If Then Statement
-
Hello,
I’d like to add a function into my pages so that if the viewer is looking at a category page, it will add the name of the category to the top of the page header.
For example if the viewer is looking at this category page for ‘Episode Guide’ : http://www.sopranos.foochuck.com/category/episode-guide/
In the header of the page in an <h1> tag I’d like it to say, “Episode Guide”.
I’m just not sure what PHP markup I can use to test to see if it’s a category page the viewer is looking at rather than my ‘main index’ page – since they both run off the same .php file.
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Category If Then Statement’ is closed to new replies.