Title: Exceptions not working
Last modified: August 22, 2016

---

# Exceptions not working

 *  Resolved [donnytree](https://wordpress.org/support/users/donnytree/)
 * (@donnytree)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/exceptions-not-working-1/)
 * Hello,
 * The exceptions are not working for me in the Business Hours plugin, I am using
   version 2.0. All of my exceptions are holidays where we are closed, so they have
   no time and are left blank. This is the code I am using in my header.php file:
   `
   <?php echo do_shortcode('[businesshours closed="Visitor Center Hours: CLOSED"]
   Visitor Center Hours - TODAY: {{TodayOpen}} to {{TodayClose}}[/businesshours]');?
   >`
 * Thank you in advance.
 * [https://wordpress.org/plugins/business-hours-plugin/](https://wordpress.org/plugins/business-hours-plugin/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [davematcha](https://wordpress.org/support/users/davematcha/)
 * (@davematcha)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/exceptions-not-working-1/#post-5474389)
 * Was getting the same issue with exceptions not working, then quickly tested the
   github version here which does seem to be working:
    [https://github.com/MZAWeb/business-hours-plugin](https://github.com/MZAWeb/business-hours-plugin)
 * Note I didn’t test exceptions in the shortcode itself
 *  Thread Starter [donnytree](https://wordpress.org/support/users/donnytree/)
 * (@donnytree)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/exceptions-not-working-1/#post-5474390)
 * Thanks! So you just downloaded and replaced the plugin folder with the one from
   github?
 *  [davematcha](https://wordpress.org/support/users/davematcha/)
 * (@davematcha)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/exceptions-not-working-1/#post-5474391)
 * I probably compressed/zipped the folder and uploaded that way – make sure to 
   remove the existing plugin first though
 *  Thread Starter [donnytree](https://wordpress.org/support/users/donnytree/)
 * (@donnytree)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/exceptions-not-working-1/#post-5474392)
 * OK, thanks so much!
 *  [hillaryharris1635](https://wordpress.org/support/users/hillaryharris1635/)
 * (@hillaryharris1635)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/exceptions-not-working-1/#post-5474436)
 * I know this is many months later, but I cannot get the exceptions to show up 
   with this shortcode. I’ve put it in my header and it is successfully showing 
   opening times for today, but today should show the exception of being closed.
   I am using the plugin on other areas of the site as widgets and it is showing
   my exceptions fine so I know the plugin is working, just not showing exceptions
   in the header where I’ve put in the shortcode.
 * This is what I have put in:
    <?php echo do_shortcode(‘[businesshours closed=”
   Today is closed.”]Today we work from {{TodayOpen}} to {{TodayClose}}[/businesshours]’);?
   >
 * I also downloaded the latest version from GitHub as suggested above, and removed
   the other plugin.
 * Anyone else come across this for the Business Hours plugin?
 *  [hillaryharris1635](https://wordpress.org/support/users/hillaryharris1635/)
 * (@hillaryharris1635)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/exceptions-not-working-1/#post-5474437)
 * Resolved!
 * [https://wordpress.org/support/topic/exceptions-not-displaying-in-shortcode?replies=4#post-7534047](https://wordpress.org/support/topic/exceptions-not-displaying-in-shortcode?replies=4#post-7534047)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Exceptions not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/business-hours-plugin_5f605f.svg)
 * [Business Hours Plugin](https://wordpress.org/plugins/business-hours-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-hours-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-hours-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/business-hours-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-hours-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-hours-plugin/reviews/)

## Tags

 * [exceptions](https://wordpress.org/support/topic-tag/exceptions/)

 * 6 replies
 * 3 participants
 * Last reply from: [hillaryharris1635](https://wordpress.org/support/users/hillaryharris1635/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/exceptions-not-working-1/#post-5474437)
 * Status: resolved