I’ve seen this convention pretty much everywhere, and, at times, it comes close to driving me nuts:
<?php //The loop ?> <?php while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; // end of the loop. ?>
<?php and closing
?> are on every single line, even if there is no intervening HTML code.
My question is: Why? Why include all these extra tags?
To me, it seems this convention adds a significant amount of clutter to code, is annoying to follow in the first place, and adds that many more places to accidentally leave out an opening or closing tag.
This is code pulled from the Twenty-Twelve theme, the example given by WordPress.