Return to Snippet

Revision: 54081
at December 9, 2011 12:34 by wiryanm


Updated Code
<?php
if (($wp_query->current_post + 1) < ($wp_query->post_count)) {
   echo '<div class="post_divider"></div>';
}
?>

Revision: 54080
at December 9, 2011 12:28 by wiryanm


Initial Code
<?php
if (($wp_query->current_post + 1) < ($wp_query->post_count)) {
   echo '<div class="post-item-divider">Post Divider</div>';
}
?>

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

Initial Description
From CSS-Tricks.com

Initial Title
Display Post Divider Between Posts

Initial Tags
php, wordpress

Initial Language
PHP