{"id":75313,"date":"2012-03-30T14:24:27","date_gmt":"2012-03-30T18:24:27","guid":{"rendered":"http:\/\/wpmu.org\/?p=75313"},"modified":"2013-04-27T15:14:19","modified_gmt":"2013-04-27T19:14:19","slug":"daily-tip-new-wordpress-debugging-plugin-displays-template-file-info","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-new-wordpress-debugging-plugin-displays-template-file-info\/","title":{"rendered":"New WordPress Debugging Plugin Displays Template File Info"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/03\/php.png\" alt=\"Post image\" aria-hidden=\"true\" title=\"php\" width=\"128\" height=\"128\" class=\"alignleft size-full wp-image-75317\" \/>The aptly named <a href=\"http:\/\/wordpress.org\/extend\/plugins\/what-template-file-am-i-viewing\/\" target=\"_blank\">What Template File Am I Viewing?<\/a> plugin is a new tool that you can use while theming and debugging WordPress. It will show you which template file is being used for the page you&#8217;re viewing. <\/p>\n<p>There are no settings for the plugin. If you activate it, then it&#8217;s on. You&#8217;ll need to deactivate it to turn it off. You&#8217;ll get output at the top of your page to tell you what template file is being used on the page: <\/p>\n<p><em>www.yourdomain.dev\\wp-content\\plugins\\portfolio-grid\/page-portfolio.php<\/em><\/p>\n<p>If you&#8217;re using a new theme or you&#8217;re not sure how a plugin might be influencing your templates, simply install <a href=\"http:\/\/wordpress.org\/extend\/plugins\/what-template-file-am-i-viewing\/\" target=\"_blank\">What Template File Am I Viewing?<\/a> to point you in the right direction. It&#8217;s available for free from the WordPress plugin repository.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Check out this cool new debugging plugin that will show you what template file you&#8217;re viewing on any given WordPress page.<\/p>\n","protected":false},"author":4099,"featured_media":75321,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[4],"tags":[4005,4993],"tutorials_categories":[],"class_list":["post-75313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins","tag-debugging","tag-templates"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/75313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/4099"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=75313"}],"version-history":[{"count":0,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/75313\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/75321"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=75313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=75313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=75313"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=75313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}