Code to get template name
-
I have a page template
/*
Template Name: Front Page
*/Is there a way in code I can create a conditional statement that will say
if (template == “front page”) {
do something…
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Code to get template name’ is closed to new replies.