Conditional template tag
-
HI guys,
Is there a built in WordPress function that returns the name of the page template that is being displayed? Much like, is_page(‘pagename’), but more like, is_template(‘template’) – I tried this but it didn’t work!
If no such thing exists, is there some variable exposed that will let me test what template is being viewed?
Thanks very much
Andy.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Conditional template tag’ is closed to new replies.