1. Home
  2. Knowledge Base
  3. Posts Table Pro
  4. Posts Table Pro Shortcode Options
  5. Customising the “No Posts” message

Customising the “No Posts” message

Posts Table Pro lets you add 2 custom messages that will appear in the table if no posts are found. We recommend adding both types of message to the posts table shortcode.

No posts message

The no_posts_message option controls the text that displays in the table if no posts are found when the table first loads (for example, because you have set it to display a category with no posts). Set this to any text you like. For example, if you’re displaying events you could use:

[posts_table no_posts_message="Sorry, no events available." post_type="event"]

WordPress Table Plugin No Posts Message

Please note: this option will have no effect if you have set a custom language using the posts_table_supported_languages filter.

No posts filtered message

The no_posts_filtered_message controls the text that displays if there are no results after the user has entered a search term. For example:

[posts_table no_posts_filtered_message="Sorry, no products match these search criteria." post_type="product"]

WordPress table plugin no search results message

Please note: this option will have no effect if you have set a custom language using the posts_table_supported_languages filter.

Was this article helpful?

Related Articles