Title: Re filter: Use section element for wrapper
Last modified: March 3, 2021

---

# Re filter: Use section element for wrapper

 *  [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/re-filter-use-section-element-for-wrapper/)
 * Hi. Question about this… I’d like the wrapper element to be an `<article>` tag.
   When I followed your tutorial and simply substituted article for section, the
   outer wrapper was indeed changed to an `<article>` tag.
 * Unfortunately, its immediate child was still a `<li>` element:
 *     ```
       <article class="display-posts-listing"><li class="listing-item"><div class="content">
       ```
   
 * Obviously not right. Anything I can do to fix that and remove or change the `
   <li>` element?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fre-filter-use-section-element-for-wrapper%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/re-filter-use-section-element-for-wrapper/#post-14131206)
 * Well here’s an in-elegant workaround:
    First, use the filter as described in 
   the tutorial. Second, _also_ use the “wrapper” markup parameter with “div” as
   the value: `[display-posts wrapper="div"`
 * The result will be:
 *     ```
       <article class="display-posts-listing"><div class="listing-item"><div class="content">
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Re filter: Use section element for wrapper’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [hommealone](https://wordpress.org/support/users/hommealone/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/re-filter-use-section-element-for-wrapper/#post-14131206)
 * Status: not resolved