Display Post Divider Between Posts


/ Published in: PHP
Save to your folder(s)

From CSS-Tricks.com


Copy this code and paste it in your HTML
  1. <?php
  2. if (($wp_query->current_post + 1) < ($wp_query->post_count)) {
  3. echo '<div class="post_divider"></div>';
  4. }
  5. ?>

URL: http://css-tricks.com/snippets/wordpress/post-divider/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.