Blocks Theme Shortcode Workaround

Here’s a Workaround for Blocks Theme (Special Thanks to Mark).

1. Create a Custom Template File (i.e template-re-groups.php) which is used just for the one page

2. Use the Code Below

 <?php
/*
* Template Name: RE Groups Page With Map
*/
get_header();
block_template_part( 'header' );
if(have_posts()):
 while(have_posts()):
 the_post();
 the_content();
 endwhile;
endif;
block_template_part( 'footer' );
get_footer();
?>

The store locator map will now be shown on the Blocks WordPress Theme.
Viewing the page produces a deprecation warning, but disabling debugging in the wp-config.php file will clear the warning messages.
You may also need to hide the WP default #header and #footer sections using CSS.

0