Wrap every two posts in div
-
I would like to wrap every two blog posts in a div(to make it easier to style in old browsers) like this:
<div class="wrap"> <div class="post">post-1…</div> <div class="post">post-2…</div> </div> <div class="wrap"> <div class="post">post-3…</div> <div class="post">post-4…</div> </div>
Any clean PHP snippets or similar that does the job?
I found this thread on the subject, but since it was tagged as resolved I thought there was a better chance getting an answer writing a new post. [Moderator gives you thumbs up]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Wrap every two posts in div’ is closed to new replies.