Title: no_posts_message not working as expected
Last modified: April 13, 2020

---

# no_posts_message not working as expected

 *  [hearttaylor](https://wordpress.org/support/users/hearttaylor/)
 * (@hearttaylor)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/no_posts_message-not-working-as-expected/)
 * I have a number of Display Posts lists that display search results to create 
   lists of posts based on common topics. I wanted to have a message display when
   there are no posts in the search results. An example of this is:
 * `[display-posts no_posts_message=”Message here” include_content=”false” orderby
   =”title” order=”ASC” category=”Cat1,Cat2″ s=”gl”]
 * Instead, nothing shows up on the page. I had the issue when I first started working
   with the plugin and solved it by making the no_posts_message be the first argument,
   but this no longer helps.
 * Any advice would be greatly appreciated!

The topic ‘no_posts_message not working as expected’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [hearttaylor](https://wordpress.org/support/users/hearttaylor/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/no_posts_message-not-working-as-expected/)
 * Status: not resolved