Support » Plugin: Business Hours Plugin » Shortcode for header?

  • Resolved callerpatty


    Have a client that would like to include this in their template header,,, I have tried various ways to include but am getting nowhere
    Tried the following
    php do_shortcode(‘[businesshours closed=”Today is closed.”]Today we work from {{TodayOpen}} to {{TodayClose}}[/businesshours]’);

    but no luck. Can get it to work on a page and in a widget.
    Is this possible?
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • I used this:

    <?php echo do_shortcode('[businesshours closed="Today is closed."]Today we work from {{TodayOpen}} to {{TodayClose}}[/businesshours]'); ?>

    in the header.php file and it worked fine.

    Hope this helps!

    Plugin Author Daniel Dvorkin


    Thanks megann, that looks right!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode for header?’ is closed to new replies.