WordPress.org

Forums

Business Hours Plugin
[resolved] Shortcode for header? (3 posts)

  1. callerpatty
    Member
    Posted 2 years ago #

    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/

  2. megann42
    Member
    Posted 2 years ago #

    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!

  3. Daniel Dvorkin (MZAWeb)
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks megann, that looks right!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Business Hours Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.