Title: Conditional Display
Last modified: August 24, 2016

---

# Conditional Display

 *  [Jayson T Cote](https://wordpress.org/support/users/askjayson/)
 * (@askjayson)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/conditional-display-5/)
 * I’m using the shortcode in my themes single.php template and only want the campaign
   to display when the post type status is published. Currently, even when the campaign
   is a draft the shortcode still displays the campaign. What would be the proper
   markup to show only if published? i.e. `if ( $campaign['post_status'] == 'draft')`
 * [https://wordpress.org/plugins/icegram/](https://wordpress.org/plugins/icegram/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Icegram](https://wordpress.org/support/users/icegram/)
 * (@icegram)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/conditional-display-5/#post-5965335)
 * Hi askjayson,
 * Thank you for reporting this issue.
    Yes, shortcode display campaign even it 
   is in draft mode. We will fix this issue soon and include this fix in next release
   of Icegram.
 * Can you please write us mail at “hello@icegram.com” so that we will provide you
   a quick fix there.
 * Hope this helps you.
 * Thanks,
    Team Icegram

Viewing 1 replies (of 1 total)

The topic ‘Conditional Display’ is closed to new replies.

 * ![](https://ps.w.org/icegram/assets/icon-128x128.gif?rev=3469073)
 * [Icegram Engage – Popups, Optins, CTAs & Lead Generation](https://wordpress.org/plugins/icegram/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/icegram/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/icegram/)
 * [Active Topics](https://wordpress.org/support/plugin/icegram/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/icegram/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/icegram/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Icegram](https://wordpress.org/support/users/icegram/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/conditional-display-5/#post-5965335)
 * Status: not resolved