Title: Multiple Shortcodes with diff attributes all showing same as first shortcode
Last modified: July 3, 2019

---

# Multiple Shortcodes with diff attributes all showing same as first shortcode

 *  Resolved [formerfatguy](https://wordpress.org/support/users/formerfatguy/)
 * (@formerfatguy)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/multiple-shortcodes-with-diff-attributes-all-showing-same-as-first-shortcode/)
 * I use DPS along with Content Aware Sidebars to show related posts below the post
   content related to the categories the post is in.
 * If the post is in multiple categories, Content Aware Sidebars puts in a DPS shortcode
   pulling related posts for each category. and stacks them with applicable heading
   above each.
 * This was setup and worked just fine for a few months.
 * Recently, I updated from WP 4.9.10 to 5.2.2 and then noticed now that each shortcode
   shows exactly the same articles and featured images. And.. they’re not recent
   at all.
 * Very odd. Dont even know where to start troubleshooting what has happened
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultiple-shortcodes-with-diff-attributes-all-showing-same-as-first-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/multiple-shortcodes-with-diff-attributes-all-showing-same-as-first-shortcode/#post-11701355)
 * I’m sorry to hear about your issue. I’m not aware of any changes in WP 5.0, 5.1,
   or 5.2 that would affect Display Posts.
 * It sounds like some custom code (either a plugin or something in your theme) 
   is modifying the queries so they don’t perform as expected. Here’s a guide to
   troubleshooting the issue: [https://displayposts.com/2019/04/20/using-health-check-plugin-to-find-theme-and-plugin-conflicts/](https://displayposts.com/2019/04/20/using-health-check-plugin-to-find-theme-and-plugin-conflicts/)
 * Alternatively, you could use the same shortcode to use the **current post’s category
   in the related posts query: [https://displayposts.com/2019/01/04/list-posts-in-the-current-category/](https://displayposts.com/2019/01/04/list-posts-in-the-current-category/)**

Viewing 1 replies (of 1 total)

The topic ‘Multiple Shortcodes with diff attributes all showing same as first shortcode’
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
 * 2 participants
 * Last reply from: [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/multiple-shortcodes-with-diff-attributes-all-showing-same-as-first-shortcode/#post-11701355)
 * Status: resolved