Understading conditional tags?
-
I use WP as CMS, but I have blog there too. I use Pages and Posts to display the website stuff, without the possibility to comment, of course.
In the blog I would like to have the comments. So I did a new template file blog.php where I show all the comment stuff and called it in the archive.php with an if statement:
<?php if (is_category('18')) {include(TEMPLATEPATH . '/blog.php'); } ?>
The blog posts appears there like it should, with the comment possibility. But the problem is, the blog posts show in double now, the one with the comments and the one without (the without is hanging there on the side).
Do I need to exclude the other one somehow?
Help appreciated. Thanks.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Understading conditional tags?’ is closed to new replies.