Skip to content

Instantly share code, notes, and snippets.

@cdils
Created July 19, 2023 17:40
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 cdils/437496f43e3d546bc48f3bb39f08d35d to your computer and use it in GitHub Desktop.
Save cdils/437496f43e3d546bc48f3bb39f08d35d to your computer and use it in GitHub Desktop.
<?php
/** Template for displaying single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*/
// Theme template stuff
// Blah blah
the_loop()
// Load helper functions if we haven't already so that we can call get_reusable_block().
if ( ! function_exists( 'get_reusable_block' ) ) {
require_once get_stylesheet_directory() . '/inc/helpers.php';
}
//Display 'The Title of My Reusable Block' reusable block.
echo get_reusable_block( 'The Title of My Reusable Block' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment