Adding extra markup to query_posts
-
I’m using query_posts to create an unordered list (ul) of posts, where each post item is floated to the left to create a grid layout. However, as the post titles vary in length, the height of each list item (li) also varies, breaking the layout. This can be seen here:
https://is.quotebox.org/sports/football/
This wouldn’t occur if I could wrap every five list items in a separate div. Thus, is there a way to add extra markup to query_posts after it’s looped through a certain number of posts, in this case five?
Any help you could provide would be greatly appreciated, thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding extra markup to query_posts’ is closed to new replies.