Title: Condition for &#8220;Temporary closure&#8221;
Last modified: July 21, 2021

---

# Condition for “Temporary closure”

 *  Resolved [breyo](https://wordpress.org/support/users/breyo/)
 * (@breyo)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/condition-for-temporary-closure/)
 * Hi,
    First, thank you for your work ! 🙂
 * I just have one “issue”..
    I just set up “Temporary closure” for the next 7 days
   and wish to use “%days_change” to indicate when i’ll be back at office.
 * But, actually, i don’t know how to display the text :
    “I’ll be back in %days_change%
   days” Or something like that only when “temporary closure” is set.
 * The code i actually use :
 *     ```
       <p class="open-text-intro">[open_text]
       %if_open_now% Office is open util %today_end%.%end%
       %if_open_later% We're closed for the moment, but we'll be back at %today_next%. %end%
       %if_closed_now%
           %if_not_open_later% We're closed today
               %if_open_tomorrow%, but will open tomorrow at %tomorrow_start%.
               %else% %space% and tomorrow. %end%
           %end%
       %end% 
       %if_closed_now%
       %if_closed_tomorrow%
       %end%
       %end%
       <br>Closed for %days_change% days.
       [/open_text]</p>
       ```
   
 * I wish to have a condition for this part :
    `<br>Closed for %days_change% days.`
 * Thank you again !

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

 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/condition-for-temporary-closure/#post-14684811)
 * [@breyo](https://wordpress.org/support/users/breyo/) Thanks for letting me know
   about this.
 * From memory, there is a 7 day limit to the _X to change_ functionality so it 
   may not work in your case. My reason for adding this was to limit the process
   to a reasonable time frame – so if a business was _always_ closed it would not
   just keep looking forever. Perhaps I can extend this to two weeks instead as 
   this may be a more reasonable duration in instances such as yours?
 * Please get back to me if this applies to your issue?
 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/condition-for-temporary-closure/#post-14684827)
 * [@breyo](https://wordpress.org/support/users/breyo/) Actually, I did spot something
   relevant to the answer – a condition: “temporary closure” (true and false) – 
   so new functionality.
 * Currently, this does not exist. So, this would be additional functionality within
   the conditional text. I will look into adding this soon and perhaps something
   similar for regular, special, temporary closure. It will be quite a large extension
   because this will add 6 new conditional statements if I just check the _current_
   day. It may be necessary to also include _tomorrow_, meaning 12 additional logic
   statements.
 *  Thread Starter [breyo](https://wordpress.org/support/users/breyo/)
 * (@breyo)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/condition-for-temporary-closure/#post-14684884)
 * [@designextreme](https://wordpress.org/support/users/designextreme/) Thanks for
   your quick answer !
    For your 1st proposition : would be great to extend it to
   two weeks (for me)
 * I would love to see this evolution with these new conditions
    I can imagine that
   it will not be easy to implement (i’m web dev)
 * Let me know if i can help in any way
    Thank you again for your availability !
 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/condition-for-temporary-closure/#post-14685475)
 * [@breyo](https://wordpress.org/support/users/breyo/) I’ve spent the last couple
   of hours working on the plugin and launched a new version with the new two week
   limit _and_ all of the new conditional statements that you requested!
 * Please download version 1.29 – this one is for you.
 * Thank you for the suggestion! 🙂
 *  Thread Starter [breyo](https://wordpress.org/support/users/breyo/)
 * (@breyo)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/condition-for-temporary-closure/#post-14685634)
 * Already ?!
    You’re the boss !
 * I will download it tomorrow at office and give you a feedback
 * Thank you very much !
 *  Thread Starter [breyo](https://wordpress.org/support/users/breyo/)
 * (@breyo)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/condition-for-temporary-closure/#post-14686312)
 * Finally, i tested it right now
    It looks amazing ! Just what i wanted ! It’s 
   perfect !!
 * I saw the update for “14 days” in settings but, when i add like 7 days for holidays
   the var that count still says 6 days on the frontend ..
    Do i forgot something?
 * Thank you again !
 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/condition-for-temporary-closure/#post-14686560)
 * [@breyo](https://wordpress.org/support/users/breyo/) I will perform a test, make
   corrections and fix this for the subsequent version.

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

The topic ‘Condition for “Temporary closure”’ is closed to new replies.

 * ![](https://ps.w.org/opening-hours/assets/icon.svg?rev=2706372)
 * [We’re Open!](https://wordpress.org/plugins/opening-hours/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/opening-hours/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/opening-hours/)
 * [Active Topics](https://wordpress.org/support/plugin/opening-hours/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/opening-hours/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/opening-hours/reviews/)

## Tags

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

 * 7 replies
 * 2 participants
 * Last reply from: [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * Last activity: [4 years, 12 months ago](https://wordpress.org/support/topic/condition-for-temporary-closure/#post-14686560)
 * Status: resolved