Created
December 14, 2022 22:50
-
-
Save colorful-tones/ddb38790de9f4ddc77f5038ba2c884f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function qorp_about_block_template_lookup( $template, $type, array $templates ) { | |
if ( $template && 'page-about.php' === $templates[0] ) { | |
add_filter( 'the_content', 'qorp_append_post_meta_output' ); | |
} | |
} | |
add_filter( 'page_template', 'qorp_about_block_template_lookup', 20, 3 ); | |
function qorp_append_post_meta_output( $content ) { | |
ob_start(); | |
get_template_part( 'template-parts/team-members' ); | |
$team = ob_get_clean(); | |
return $content . $team; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment