WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Shortcode for header?

[Resolved] Shortcode for header?

  • callerpatty
    Participant

    @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)
  • 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)
    Member

    @mzaweb

    Thanks megann, that looks right!

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