Hey Everyone. I have some "exclusive news" on the side of one my pages that is pulling this code:
<?php $posts = get_posts('numberposts=6&offset=0&category=13'); foreach($posts as $post){ ?>
<p><a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a><br>
<?php the_excerpt(); ?>
<?php } ?>
What I want to do is after each post to just have a simple <HR> tag inserted to help separate each listing.
I've looked everywhere and just can't seem to find what I'm looking for...
Thank you for your help as these forums have been a great bit of help!
-Mark
Have your tried:
<?php $posts = get_posts('numberposts=6&offset=0&category=13'); foreach($posts as $post){ ?>
<p><a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a><br>
<?php the_excerpt(); ?>
<hr />
<?php } ?>
Yes that was actually the first thing I did. I know a bit about how the Loop works and all that jazz, but can't seem to figure this somewhat "simple" thing out...any other thoughts?
When I view the source code of the page "<hr />" does show up, but doesn't appear on the page? Strange!
I guess I'll just play around with it and if anyone as any ideas just let me know :)
Then the issue is with the css for the theme you're using. Look through your style.css for any reference to hr, especially where it might have a property of:
display: none;