Created
June 7, 2018 08:59
-
-
Save ScarletPonytail/3b716db9e011bae9f420c29d15e981ce to your computer and use it in GitHub Desktop.
Wordpress - Preview markup on single.php via a template
This file contains hidden or 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
// Get people preview template | |
if ( is_singular( 'sc_people' ) && is_preview() ) : | |
get_template_part( 'template-parts/people', 'preview' ); | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment