Title: Don&#8217;t display when shortcode is empty
Last modified: May 30, 2018

---

# Don’t display when shortcode is empty

 *  Resolved [handig](https://wordpress.org/support/users/handig/)
 * (@handig)
 * [8 years ago](https://wordpress.org/support/topic/dont-display-when-shortcode-is-empty/)
 * Hi,
    If the content block doesn’t exist the short code is displayed.
 * Is it somehow possible to not display anything at all if the content block/short
   code id doesn’t exist.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [8 years ago](https://wordpress.org/support/topic/dont-display-when-shortcode-is-empty/#post-10346009)
 * If the content block shortcode is linked to a non-existing content block, nothing
   will be displayed. The shortcode is only displayed when the plugin is not installed
   or activated.

Viewing 1 replies (of 1 total)

The topic ‘Don’t display when shortcode is empty’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-widget/assets/icon.svg?rev=2884166)
 * [Content Blocks (Custom Post Widget)](https://wordpress.org/plugins/custom-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/dont-display-when-shortcode-is-empty/#post-10346009)
 * Status: resolved