Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

How to find out which WordPress template is being used in a Theme

July 19, 2013 Leave a Comment

How do you quickly find out which template in your WordPress theme is being used without systematically going through each template?

WordPress uses a structure of templates formed in a hierarchy of importance, when one isn’t there it falls back to the next in the chain.

wordpress-template-structureClick for a closer look

If you want to quickly see what template you are using in a post/page or other type you can add a function into your functions.php file in the theme which will display the path and template name at the foot of each page.

add_action('admin_bar_menu', 'show_template');
function show_template() { 
global $template;
print_r($template);
}

Once the function is added and you’re still logged in as admin, have a look at a page in the front end and scroll down to the footer, the path to the template being used is output at the bottom of the page – this is only visible to logged in admins via the dashboard.

wordpress-template-name-output

Cats: Theming, WordPress

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • Say hi to "Siri AI"—Apple announces new, more "conversational" voice assistant
  • Apple working to cram massive Gemini model into iPhone to power new Siri
  • OpenAI feels “burned” by Apple’s crappy ChatGPT integration, insiders say
  • Desperate Trump taps "Tim Apple," Jensen Huang, Elon Musk to attend Xi summit
  • Court rules Trump's 10% tariff is just as illegal as the tariff it replaced

RSS mac surfer

  • Telegram Launches Native Apple Watch App
  • Apple Expands GymKit to iPhone and AirPods Pro 3
  • Mac O'Clock Examines Siri AI Redesign at WWDC
  • macOS 27 Refines Icons and Visual Design
  • macOS 27 Adds Native Ultrawide Display Support

Donate

Copyright © 2026· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2026 · gee on Genesis Framework · WordPress · Log in