How to use the shortcode to display business hours?

Once you published your business hours data, go to the Styles tab and copy the shortcode. The shortcode looks like this:

[business-hr id="5"]

Copy that and paste it into pages or posts.

Using shortcode in PHP files

If you want to call the shortcode in your theme file, you can use the built in do_shortcode function:

<?php echo do_shortcode('[business-hr id="5"]'); ?>

Was this helpful?

Thanks for your feedback!