Template Tags is_open() Help!
-
Hi!
I’m (obviously) not amazing with PHP and basically I want to display the word OPEN if the shop is open, and CLOSED if it is closed based on the opening hours I’ve put in. Preferably in
<span>
classes so I can style them with CSS. This is currently hardcoded within my template file but if there is a way to do it via shortcode, then please tell me!I’ve tried using your is_open() tag but I’m unsure how to actually get this working. At the minute I’ve been doing
<?php is_open() ?>
and it’s not showing anything. I’ve tried within an if/else statement and it throws me a load of crap.Could you please provide the PHP/Shortcode to get this working? ??
Thanks
- The topic ‘Template Tags is_open() Help!’ is closed to new replies.