Skip Navigation
WordPress Help Centre

How to use the shortcode to display business hours?

July 28, 2021 . 1 min read

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"]'); ?>
© 2022 by WordPress Help Centre. All rights reserved.