Skip to content

Instantly share code, notes, and snippets.

@tacoverdo
Last active December 22, 2015 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tacoverdo/6437740 to your computer and use it in GitHub Desktop.
Save tacoverdo/6437740 to your computer and use it in GitHub Desktop.
Local SEO by Yoast - Opening Hours shortcode
<?php
// Can be used in any (template) file, will do the same as [wpseo_opening_hours]
if ( function_exists( 'wpseo_local_show_opening_hours' ) ) {
$params = array(
'id' => 237,
'hide_closed' => false,
'echo' => true,
'comment' => ''
);
wpseo_local_show_opening_hours( $params );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment