Title: Using wrapper=&quot;div&quot; to separate posts?
Last modified: August 21, 2016

---

# Using wrapper="div" to separate posts?

 *  Resolved [PaulDoesWP](https://wordpress.org/support/users/pauldoeswordpress/)
 * (@pauldoeswordpress)
 * [12 years ago](https://wordpress.org/support/topic/using-wrapperdiv-to-separate-posts/)
 * I’ve managed to get this shortcode to display my ten most recent posts using 
   this:
    `[display-posts include_content="true" posts_per_page="10" image_size="
   thumbnail" wrapper="div"]` …but the text all wraps around any images in the posts.
   If post 1 has some text and an image, I’d like the text of post 2 to _not_ wrap
   around post 1’s image, but start underneath it (maybe even with an `<hr>` between
   them). I could probably achieve this using `<div style="clear:both">`, but I’m
   not sure how to get this into the shortcode. Should I create a div style in my
   style.css file? How would that look in the shortcode? Or do I need to do something
   along the lines of this chunk of code: [http://www.billerickson.net/code/display-posts-shortcode-outer-markup/](http://www.billerickson.net/code/display-posts-shortcode-outer-markup/)…
   and if so, where does that go? In my theme’s functions.php perhaps?
 * Thanks in advance for any suggestions!
 * – Paul
 * [https://wordpress.org/plugins/display-posts-shortcode/](https://wordpress.org/plugins/display-posts-shortcode/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [12 years ago](https://wordpress.org/support/topic/using-wrapperdiv-to-separate-posts/#post-4915116)
 * Try adding this to your stylesheet:
 * `.display-posts-listing .listing-item { overflow: hidden; width: 100%; }`
 * That should clear it without requiring any additional markup

Viewing 1 replies (of 1 total)

The topic ‘Using wrapper="div" to separate posts?’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

## Tags

 * [div](https://wordpress.org/support/topic-tag/div/)
 * [separate posts](https://wordpress.org/support/topic-tag/separate-posts/)
 * [wrapper](https://wordpress.org/support/topic-tag/wrapper/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/using-wrapperdiv-to-separate-posts/#post-4915116)
 * Status: resolved