Add content between Wordpress queried posts
Posted
by zac
on Stack Overflow
See other posts from Stack Overflow
or by zac
Published on 2009-10-09T20:24:43Z
Indexed on
2010/04/06
5:03 UTC
Read the original article
Hit count: 244
I am wondering how I can add something between posts being queried in Wordpress through this method:
<?php $the_query = new WP_Query('category_name=name&showposts=2');
while ($the_query->have_posts()) : $the_query->the_post();?>
Is there a way I could add something simple, like say a <hr>
between the two posts being pulled?
© Stack Overflow or respective owner