wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

Add post divider in between two posts or more

wordpress snippet

Add this snippet right before the closing of the loop to auto insert a post divider “div” that you can style using the “post-item-divider” class.

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

Did you like this post? If so please share it with your friends. Thanks!

  • http://gadgetsnewsline.com/ GadgetsNews

    Luckily I found this, very confusion in this before I found this, now it’s clear….

  • http://big-face-watches.org/big-face-watches-for-women/ tracy

    This is my first time reading this blog. Definitely won’t be my last though, really enjoyed it.Thank you for the article. Exactly what I was looking for!

  • http://www.onlinepaydayloans.co.uk/ Payday Loan Company

    Well its good to
    read your article.Its a great shared information.I liked the conversation of
    you guys as well.Thanks for sharing.Keep sharing as like this always.

  • http://www.seoservicescanada.ca/ seo

    Among the different popular accessories laptop stand has gained high popularity.Really its amazing.I like this content.I like this post.Thanks to share this blog.

  • http://www.seoservicesamerica.com/ rinchan

    Great and excellent explained article.Really very descriptive.Many Thanks for sharing such article.

  • http://www.morplan.com/ Morplan

    Your way of presentation is really too good. I
    am totally impressed by your post. I am looking for your more updates. Keep
    them coming

  • http://www.fragranceexpert.com/perfume-store.aspx Bargain Perfume

    Great Blog. I add
    this Blog to my bookmarks.

  • http://www.creativebeans.co.uk/ wills

    For a blog to be
    successful it needs to be well written, frequently updated, well designed and
    honest.Well i liked your tips.Thanks for sharing.

  • http://www.fragranceexpert.com/mens-fragrances.html Mens Fragrances

    I like these all watch style.Thanks for sharing this post.

    • http://wpsnipp.com Kevin Chard

       no problem glad that I could help

jqsnipp.com | we just launched jquery snippets website