Last active
February 17, 2021 03:56
-
-
Save frankyonnetti/5449130 to your computer and use it in GitHub Desktop.
WordPress - if_page_template #wordpress
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
<?php | |
if ( is_page_template('page-about.php') ) { | |
// Returns true when 'page-about.php' is being used. | |
} else { | |
// Returns false when 'page-about.php' is not being used. | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment