Support » Themes and Templates » Horizontal Rule between posts

Viewing 7 replies - 1 through 7 (of 7 total)
  • In your index.php file, just before the close of The_Loop you can add the horizontal rule. That way after each post, it places the rule. If you have a hard time finding the loop after reading the link, check back.

    I’ve looked at the ‘The Loop’ and have tried ading <hr> but its not appearing in my posts. Where exactly do I place the <hr> to get it to display at the end of a post?

    You should be able to place it before <?php endforeach; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>

    make sure your theme doesn’t have hr {display: none} in the style sheet, otherwise, you won’t see the rule.


    Thanks for your help, I’m still can’t find the code you mentioned.

    I’ve pasted in a copy of the Loop template, Could you take a look at it?

    <snip>template code from K2</snip>

    I don’t appear to have an Index.php file with K2

    You better get one then. :>)
    Go to admin -> Presentation -> Theme editor
    lick on “Main Index Template”. That is your index.php.

    You should check with the folks at and get the lowdown on the custom loop used in K2. The code I offered is for more traditional themes.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Horizontal Rule between posts’ is closed to new replies.