HOWTO: Show Page Template Name
- Post author Posted By: Jennifer Zelazny
- Post date November 28, 2011
- Categorized Categorized: SDAC WordPress WordPress Themes WordPress Troubleshooting
- No Comments on HOWTO: Show Page Template Name
A cool function to simply display the path of the WordPress template used on a particular page:
<?php echo get_page_template() ?>
How/when to use this?
If you are trying to debug a site and want to quickly see what page template is used – you can put that PHP code into footer.php and it will then echo out the path so you can quickly and easily see what template is being used.
- Tags Tagged: get_page_template, WordPress function
Recent Posts
Archives
Categories
Tags
bbPress
Bug Fixes
Commerical Theme
CSS
exclude
functions.php
HOWTOs
Javascript
Logic
Lucidity
Lucidity Catalog
SDAC-Inc
SDAC-Recommends
SDAC Plugin
SDAC Post Slideshows
SDAC Related Content
SDAC theme
SDAC Translate
security
Security-Updates
Security Fixes
Security Update
SVN
Update
Updates
WordPress
WordPress 2.5
WordPress 2.8
WordPress 4.2.x
WordPress 4.5
WordPress 4.7
WordPress 4.8
WordPress 4.9
WordPress 5.2
WordPress 5.5
WordPress 5.9
WordPress function
WordPress functions
WordPress Plugins
WordPress Releases
WordPress security
WordPress Security Release
WordPress Update
WordPress Updates
WP Engine
Recent Posts
Archives
Categories
- SDAC (33)
- SDAC News (16)
- SDAC Products (17)
- SDAC Blog (303)
- bbPress (5)
- Bootstrap (5)
- Clients (5)
- CSS (9)
- High Performance Optimization (5)
- HOWTOs (63)
- Javascript (3)
- Network Solutions (1)
- News (6)
- vbulletin (1)
- Web Hosting (5)
- WordPress (264)
- WordPress Commercial Themes (6)
- WordPress Logic (23)
- WordPress Plugins (39)
- WordPress Themes (8)
- WordPress Troubleshooting (13)
- WordPress Updates (154)
- XOOPS (3)
- XOOPS Modules (1)
- Shopify (1)
- Uncategorized (2)
Tags
bbPress
Bug Fixes
Commerical Theme
CSS
exclude
functions.php
HOWTOs
Javascript
Logic
Lucidity
Lucidity Catalog
SDAC-Inc
SDAC-Recommends
SDAC Plugin
SDAC Post Slideshows
SDAC Related Content
SDAC theme
SDAC Translate
security
Security-Updates
Security Fixes
Security Update
SVN
Update
Updates
WordPress
WordPress 2.5
WordPress 2.8
WordPress 4.2.x
WordPress 4.5
WordPress 4.7
WordPress 4.8
WordPress 4.9
WordPress 5.2
WordPress 5.5
WordPress 5.9
WordPress function
WordPress functions
WordPress Plugins
WordPress Releases
WordPress security
WordPress Security Release
WordPress Update
WordPress Updates
WP Engine