ketanco
11-25-2009, 11:55 PM
Hello,
<li class="first <? if(is_home()) echo 'current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
I was trying to put the whole thing in a comment, so that I could test the file without this code being there. So I put comment tags before and after the whole thing:
<!--
<li class="first <? if(is_home()) echo 'current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
-->
However, it is not including everything within the comment as a comment. Why is that? I mean I thought everything with the <!-- and --> would be totally omitted as a comment. But it is not. Why?
<li class="first <? if(is_home()) echo 'current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
I was trying to put the whole thing in a comment, so that I could test the file without this code being there. So I put comment tags before and after the whole thing:
<!--
<li class="first <? if(is_home()) echo 'current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/">Home</a></li>
-->
However, it is not including everything within the comment as a comment. Why is that? I mean I thought everything with the <!-- and --> would be totally omitted as a comment. But it is not. Why?