Title: [Plugin: Display Posts Shortcode] &quot;Wrapper&quot; option not available
Last modified: August 20, 2016

---

# [Plugin: Display Posts Shortcode] "Wrapper" option not available

 *  Resolved [FaffeF](https://wordpress.org/support/users/faffef/)
 * (@faffef)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-wrapper-option-not-available/)
 * The “wrapper” option is not available in 1.6, as stated in the documentation.
 * Also, it would be nice to be able to display the list of posts as a comma-separated
   list of linked titles, to save some screen-estate.
 * [http://wordpress.org/extend/plugins/display-posts-shortcode/](http://wordpress.org/extend/plugins/display-posts-shortcode/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-wrapper-option-not-available/#post-2384684)
 * Are you sure you’re using it correctly?
 * [display-posts] or [display-posts wrapper=”ul”] displays an unordered list.
 * [display-posts wrapper=”ol”] displays an ordered list
 * [display-posts wrapper=”div”] displays nested divs
 * I’ve just tested and confirmed with the current version of the plugin.
 * For other display options, like a comma-separated list, you’ll need to use the
   filters. There’s one filter for the opening wrapper (so set that to <p>), one
   wrapper for the closing wrapper (so set that to </p>), and one for the markup
   of each individual post. Here’s an example ( [https://gist.github.com/1342863](https://gist.github.com/1342863)).
   For the individual posts, I wrapped each one in a span and only included the 
   title. I’ve left all the parameters of the filter in place in case you want to
   add other content to the list.
 *  Thread Starter [FaffeF](https://wordpress.org/support/users/faffef/)
 * (@faffef)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-wrapper-option-not-available/#post-2384707)
 * Pretty sure. A search of the source show no hit on ‘wrapper’, specifically there
   no mention of it in the shortcode_atts array. It says 1.6 at the top.
 * Thanks for the filter!
 *  Thread Starter [FaffeF](https://wordpress.org/support/users/faffef/)
 * (@faffef)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-wrapper-option-not-available/#post-2384709)
 * So, I updated manually. Still 1.6, but now the wrapper option is there.
 *  Thread Starter [FaffeF](https://wordpress.org/support/users/faffef/)
 * (@faffef)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-wrapper-option-not-available/#post-2384713)
 * And, by the way, it’s unbelievably easy to just paste the filter in to the functions.
   php of a child theme, that way no modifications are lost on either wordpress,
   plugin or theme upgrade!
 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-wrapper-option-not-available/#post-2384733)
 * Here’s the actual plugin code: [http://plugins.svn.wordpress.org/display-posts-shortcode/trunk/display-posts-shortcode.php](http://plugins.svn.wordpress.org/display-posts-shortcode/trunk/display-posts-shortcode.php)
 * If you search, you’ll see ‘wrapper’ is mentioned 18 times. If you try the three
   shortcodes listed above you’ll get the desired result.
 * Yes, it is easy to put the filter in a child theme so it isn’t lost on update.
   That’s the purpose of the filters 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Display Posts Shortcode] "Wrapper" option not available’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-wrapper-option-not-available/#post-2384733)
 * Status: resolved