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

  • Resolved callerpatty

    (@callerpatty)


    Hi
    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

    http://wordpress.org/extend/plugins/business-hours-plugin/

Viewing 2 replies - 1 through 2 (of 2 total)
  • megann42

    (@megann42)

    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

    (@mzaweb)

    Thanks megann, that looks right!

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