/ Published in: PHP

URL: http://wplift.com/22-handy-wordpress-code-snippets
Expand |
Embed | Plain Text
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); $loopcounter++; ?> // the loop stuffs <?php if ($loopcounter <= 1) { include (TEMPLATEPATH . '/ad.php'); } ?> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
You need to login to post a comment.