the “if it’s not tag” problem
-
I’ve created an archive.php. The file is getting different designs for each category. I also want to make a design for tags page in blog.
Please look at the following codes which is in archive.php:
$category = get_the_category(); $cat_id = $category[0]->cat_ID; if ( cat_id == 1 and !is_tag() ) {TEMPLATE FOR CATEGORY 1} if ( is_tag() ) {TAG PAGE TEMPLATE}
I know the “!is_tag” doesn’t work. But, what should i use instead of it? That’s all problem. If i resolve this, i could be resolved all of the other “if not” problems as “is_day()”, “is_month()” and “is_year()”.
I hope i could explain my problem. Thanks in advance.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘the “if it’s not tag” problem’ is closed to new replies.