WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. callerpatty
    Member
    Posted 11 months 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 11 months 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 8 months ago #

    Thanks megann, that looks right!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.