{"id":241399,"date":"2025-08-01T11:21:05","date_gmt":"2025-08-01T11:21:05","guid":{"rendered":"https:\/\/ja.wordpress.org\/plugins\/current-page-template-viewer\/"},"modified":"2025-08-15T10:13:57","modified_gmt":"2025-08-15T10:13:57","slug":"current-page-template-viewer","status":"publish","type":"plugin","link":"https:\/\/kea.wordpress.org\/plugins\/current-page-template-viewer\/","author":23325505,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"6.8.5","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Current Page Template Viewer","header_author":"Nagaoka Design Office","header_description":"Display current template file and directory name on screen","assets_banners_color":"","last_updated":"2025-08-15 10:13:57","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/nagaoka-design\/current-page-template-viewer\/","header_author_uri":"https:\/\/nag-design.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":352,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"nagaokadesign","date":"2025-08-01 11:34:05"},"1.1.0":{"tag":"1.1.0","author":"nagaokadesign","date":"2025-08-15 10:13:57"}},"upgrade_notice":{"1.1.0":"<p>Critical update: Fixed major template detection issues and WordPress.org compliance problems. Highly recommended for all users.<\/p>","1.0.1":"<p>Security and code improvements. Recommended update for all users.<\/p>","1.0.0":"<p>Initial release of Current Page Template Viewer plugin.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3337808,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3337808,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3337781,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3337781,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3337781,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Template display overlay showing current template information","2":"Popup window displaying all included template files","3":"Plugin settings page with all configuration options"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94,2275,734,975,1141],"plugin_category":[43,59],"plugin_contributors":[245705],"plugin_business_model":[],"class_list":["post-241399","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_tags-developer","plugin_tags-development","plugin_tags-template","plugin_tags-theme","plugin_category-customization","plugin_category-utilities-and-tools","plugin_contributors-nagaokadesign","plugin_committers-nagaokadesign"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/current-page-template-viewer\/assets\/icon-128x128.png?rev=3337808","icon_2x":"https:\/\/ps.w.org\/current-page-template-viewer\/assets\/icon-256x256.png?rev=3337808","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/current-page-template-viewer\/assets\/screenshot-1.png?rev=3337781","caption":"Template display overlay showing current template information"},{"src":"https:\/\/ps.w.org\/current-page-template-viewer\/assets\/screenshot-2.png?rev=3337781","caption":"Popup window displaying all included template files"},{"src":"https:\/\/ps.w.org\/current-page-template-viewer\/assets\/screenshot-3.png?rev=3337781","caption":"Plugin settings page with all configuration options"}],"raw_content":"<!--section=description-->\n<p>This plugin helps WordPress developers by showing which template files are being used on the current page. It displays the current template file name and directory path in a convenient overlay, making it easy to identify which template is rendering the current page during development.<\/p>\n\n<p>The plugin shows a small, unobtrusive display that can be clicked to reveal detailed information about all template files loaded for the current page.<\/p>\n\n<p><strong>Key Features:<\/strong>\n* Shows current template file name\n* Displays template directory path\n* Click to view all included template files\n* Configurable display position (top-left, top-right, bottom-left, bottom-right)\n* Customizable background and text colors\n* Admin-only display option for security\n* Debug mode option (only shows when WP_DEBUG is enabled)\n* Lightweight and performance-optimized\n* Clean, modern interface<\/p>\n\n<p><strong>Perfect for:<\/strong>\n* Theme developers\n* WordPress developers\n* Site debugging\n* Template hierarchy understanding\n* Development and staging environments<\/p>\n\n<p>The plugin is designed to be completely safe and non-intrusive, with options to restrict visibility to administrators only.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to <code>\/wp-content\/plugins\/current-page-template-viewer\/<\/code><\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Go to Settings &gt; Current Page Template Viewer to configure display options<\/li>\n<li>The template information will appear on the frontend according to your settings<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20enable%20the%20template%20display%3F'><h3>How do I enable the template display?<\/h3><\/dt>\n<dd><p>After activating the plugin, it will automatically display template information. You can configure the display options by going to Settings &gt; Current Page Template Viewer.<\/p><\/dd>\n<dt id='how%20do%20i%20see%20all%20included%20template%20files%3F'><h3>How do I see all included template files?<\/h3><\/dt>\n<dd><p>Click on the template display overlay on the frontend. This will open a popup showing all template files that were loaded for the current page.<\/p><\/dd>\n<dt id='can%20i%20change%20the%20display%20position%3F'><h3>Can I change the display position?<\/h3><\/dt>\n<dd><p>Yes, you can choose from four positions: top-left, top-right, bottom-left, or bottom-right through the plugin settings.<\/p><\/dd>\n<dt id='can%20i%20customize%20the%20colors%3F'><h3>Can I customize the colors?<\/h3><\/dt>\n<dd><p>Yes, you can customize both the background color and text color. The plugin supports both hex colors (#ffffff) and rgba values (rgba(255,255,255,0.5)).<\/p><\/dd>\n<dt id='will%20this%20plugin%20slow%20down%20my%20website%3F'><h3>Will this plugin slow down my website?<\/h3><\/dt>\n<dd><p>No, this plugin is designed to be lightweight and only displays information when needed. It has minimal impact on performance.<\/p><\/dd>\n<dt id='can%20i%20restrict%20who%20sees%20the%20template%20information%3F'><h3>Can I restrict who sees the template information?<\/h3><\/dt>\n<dd><p>Yes, you can set the plugin to only show template information to administrators, or you can set it to only display when WP_DEBUG is enabled.<\/p><\/dd>\n<dt id='is%20this%20plugin%20safe%20to%20use%20on%20production%20sites%3F'><h3>Is this plugin safe to use on production sites?<\/h3><\/dt>\n<dd><p>While the plugin is safe, it's primarily intended for development and staging environments. The admin-only and debug-only options make it safer for production use, but we recommend disabling it on live sites.<\/p><\/dd>\n<dt id='does%20it%20work%20with%20child%20themes%3F'><h3>Does it work with child themes?<\/h3><\/dt>\n<dd><p>Yes, the plugin correctly identifies and displays both parent and child theme template files.<\/p><\/dd>\n<dt id='can%20i%20hide%20the%20theme%20directory%20or%20template%20file%20name%3F'><h3>Can I hide the theme directory or template file name?<\/h3><\/dt>\n<dd><p>Yes, you can choose to display only the theme directory, only the template file name, or both through the plugin settings.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li><strong>Major Fix<\/strong>: Completely rewrote template detection system for WordPress.org compliance<\/li>\n<li>Removed usage of global WordPress variables that were causing plugin review rejections<\/li>\n<li>Implemented safe template detection using WordPress standard APIs only<\/li>\n<li>Improved template file detection accuracy across all page types (posts, pages, archives, etc.)<\/li>\n<li>Added proper fallback mechanisms for template detection<\/li>\n<li>Enhanced compatibility with custom post types and taxonomies<\/li>\n<li>Fixed template detection for complex WordPress template hierarchy<\/li>\n<li>Removed PHP closing tags following WordPress coding standards<\/li>\n<li>Better error handling and edge case management<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed variable escaping for WordPress.org security standards<\/li>\n<li>Updated all function and variable names to use unique prefixes<\/li>\n<li>Improved code structure and security<\/li>\n<li>Added external JavaScript file for better performance<\/li>\n<li>Enhanced popup functionality<\/li>\n<li>Better error handling<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Template file name display<\/li>\n<li>Directory path display<\/li>\n<li>Basic configuration options<\/li>\n<li>Popup showing included files<\/li>\n<li>Position and color customization<\/li>\n<\/ul>","raw_excerpt":"Display current template file and directory name on screen for WordPress development.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/241399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=241399"}],"author":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nagaokadesign"}],"wp:attachment":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=241399"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=241399"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=241399"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=241399"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=241399"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=241399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}