There are different ways to add comments to files. For HTML, when the browser sees "<!--" it considers everything up to "-->" as a comment (still visible in view-source but not rendered). For PHP you can comment several ways. When the PHP parser sees either "//" or "#" it considers everything after that up to the end of the line as a comment. It also considers everything between "/*" and "*/" as a comment. PHP comments are not parsed, and so will not be visible in view-source or be rendered. Depending on your preference you could use something like
HTML Code:
<!-- Original line
<?php the_content(); ?>
-->
<?php the_excerpt; ?>
HTML Code:
<!-- Original line -->
<?php # the_content(); ?>
<!-- New line -->
<?php the_excerpt; ?>
HTML Code:
<!-- Original line -->
<?php // the_content(); ?>
<!-- New line -->
<?php the_excerpt; ?>
or
HTML Code:
<!-- Original line -->
<?php /* the_content(); */ ?>
<!-- New line -->
<?php the_excerpt; ?>
Bookmarks