Title: WP Template Viewer
Author: keesiemeijer
Published: <strong>2014 年 7 月 9 日</strong>
Last modified: 2020 年 4 月 7 日

---

搜索插件

![](https://ps.w.org/wp-template-viewer/assets/banner-772x250.jpg?rev=948970)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-template-viewer_acacad.svg)

# WP Template Viewer

 作者：[keesiemeijer](https://profiles.wordpress.org/keesiemeijer/)

[下载](https://downloads.wordpress.org/plugin/wp-template-viewer.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-template-viewer/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-template-viewer/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-template-viewer/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-template-viewer/#developers)

 [支持](https://wordpress.org/support/plugin/wp-template-viewer/)

## 描述

Ever wanted to take a quick look at a theme template file without opening an editor?
Or wondered what template files were used to display the current page?

This plugin displays all theme template file names in use for the current page in
a [toolbar menu](https://codex.wordpress.org/Toolbar). File names are shown in the
order they were included. File content is displayed in the footer of your site by
clicking a file name.

Only **admins** and **super admins** have access to the toolbar menu and file content.

For more information see the [plugin documentation](https://keesiemeijer.wordpress.com/wp-template-viewer)

Note: Display of file content only works if the current theme follows the recommended
practice of calling the [wp_footer()](https://codex.wordpress.org/Function_Reference/wp_footer)
template tag (most theme’s do).

Filters can be used to change (override) the default settings or behavior of the
plugin.

For example,

 * Allow specific users access to the menu and content. (convenient for troubleshooting
   with others)
 * Also include plugin files.
 * Show the menu in the footer instead of the toolbar.

For more information see the [filter documentation](https://keesiemeijer.wordpress.com/wp-template-viewer/filters).

**Roadmap**

 * Show content with popular syntax highlighter plugins.

## 屏幕截图

[⌊The WP Template Viewer toolbar menu.⌉⌊The WP Template Viewer toolbar menu.⌉[

The WP Template Viewer toolbar menu.

[⌊File menu in the footer with part of the content of single.php.⌉⌊File menu in 
the footer with part of the content of single.php.⌉[

File menu in the footer with part of the content of single.php.

[⌊Content of index.php.⌉⌊Content of index.php.⌉[

Content of index.php.

## 安装

 * Unzip the `wp-template-viewer.zip` folder.
 * Upload the `wp-template-viewer` folder to your `/wp-content/plugins` directory.
 * Activate _wp-template-viewer_.
 * That’s it, now you are ready to use the plugin.

Note: There’s no settings page for this plugin.

## 评价

![](https://secure.gravatar.com/avatar/d60f2765a1abe3fce84ac4998ce5471c4079c14d6392a5573ab21bd9312683d0?
s=60&d=retro&r=g)

### 󠀁[Very very useful plugin](https://wordpress.org/support/topic/very-very-useful-plugin-4/)󠁿

 [meutho](https://profiles.wordpress.org/meutho/) 2019 年 11 月 13 日

No more hesitation to find the good template to work with. “Where’s the north ?”“
Hmm… i think i’m gonna hovering on the admin-bar !” It’s like Magic ! Merci beaucoup
pour ce beau travail.

![](https://secure.gravatar.com/avatar/c6da0e7195938703af144da63c9c9f5fd945cb60007df7e41e10622454ff6f0c?
s=60&d=retro&r=g)

### 󠀁[Amazing plugin!](https://wordpress.org/support/topic/amazing-plugin-692/)󠁿

 [marceloquinze](https://profiles.wordpress.org/marceloquinze/) 2017 年 3 月 29 
日

Wow! Simply wonderful! This plugin is everything I needed to stop wasting time when
I need to modify any theme!

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/wp-template-viewer/reviews/)

## 贡献者及开发者

「WP Template Viewer」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ keesiemeijer ](https://profiles.wordpress.org/keesiemeijer/)

[帮助将「WP Template Viewer」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-template-viewer)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-template-viewer/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-template-viewer/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-template-viewer/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-template-viewer/)。

## 更新日志

#### 1.0.0

 * Add more specific css to display viewer on top.
 * Add the current template to the toolbar

#### 0.1.2

 * Added links to select text an hide or show files in the footer.
 * Added custom capability ‘view_wp_template_viewer’ for users.

#### 0.1.1

 * Added a menu item to see the menu in the footer.
 * Better color coding for menu items

#### 0.1

 * Initial commit.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.9 或更高版本 **
 *  已测试的最高版本为 **5.4.19**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-template-viewer/)
 * 标签
 * [plugin template](https://cn.wordpress.org/plugins/tags/plugin-template/)[template](https://cn.wordpress.org/plugins/tags/template/)
   [template files](https://cn.wordpress.org/plugins/tags/template-files/)[theme template](https://cn.wordpress.org/plugins/tags/theme-template/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-template-viewer/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/wp-template-viewer/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-template-viewer/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-template-viewer/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-template-viewer/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-template-viewer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-template-viewer/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-template-viewer/reviews/)

## 贡献者

 *   [ keesiemeijer ](https://profiles.wordpress.org/keesiemeijer/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-template-viewer/)