$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Developer plugin to echo template namesfilepaths|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Developer plugin to echo template namesfilepaths

matteradmin8PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

Asking to recommend a product (plugin, theme, book, hosting provider), tool, library, or off-site resource is out of scope for this site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 11 years ago.

Improve this question

I am looking for a Wordpress plugin that prints file template names, maybe with a designating border. Magento has "template hints", as you can see in this screenshot:

If there is not such a plugin and someone would like to develop it with me, let's do that, too!

Closed. This question is off-topic. It is not currently accepting answers.

Asking to recommend a product (plugin, theme, book, hosting provider), tool, library, or off-site resource is out of scope for this site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 11 years ago.

Improve this question

I am looking for a Wordpress plugin that prints file template names, maybe with a designating border. Magento has "template hints", as you can see in this screenshot:

If there is not such a plugin and someone would like to develop it with me, let's do that, too!

Share Improve this question edited Jan 16, 2019 at 8:14 Glorfindel 6113 gold badges10 silver badges18 bronze badges asked May 30, 2014 at 17:46 dmanexedmanexe 532 silver badges10 bronze badges 3
  • Have you already (a) tried something and (b) searched the site? I know that I have written an answer about exactly that some time ago. – kaiser Commented May 30, 2014 at 17:50
  • 1 a) I have looked around the internet with various keywords such as wordpress, template, hints, path, print, echo, file path, plugin. I found a dead plugin called templatepath that isn't compatible anymore. b) Searched the site with similar keywords but I didn't really find anything. I did find your answer though! Thank you. – dmanexe Commented May 30, 2014 at 18:13
  • 1 However, that solution doesn't really provide the front-end visualization of files. It just prints a list of files loaded by that page. While good, it's not exactly what I am looking for. – dmanexe Commented May 30, 2014 at 18:14
Add a comment  | 

2 Answers 2

Reset to default 2

I use a plugin called Query Monitor, that does a whole bunch of stuff, including showing the page's template. It's in the WordPress Repo.

Here is what I use. It will display the current template file name to logged-in users. Paste this in your functions.php file and comment out/remove when not in use.

// REMOVE - show template name
  add_action('wp_head', 'show_template');
  function show_template() {
  global $template;
  global $current_user;
  get_currentuserinfo();
  if ($current_user->user_level == 10 ) print_r($template);
  }
// REMOVE - end show template name

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far