{"id":63693,"date":"2020-11-30T13:46:18","date_gmt":"2020-11-30T13:46:18","guid":{"rendered":"https:\/\/rockcontent.com\/blog\/wordpress-template-hierarchy\/"},"modified":"2025-09-09T04:41:29","modified_gmt":"2025-09-09T07:41:29","slug":"wordpress-template-hierarchy","status":"publish","type":"post","link":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/","title":{"rendered":"A beginner&#8217;s guide to WordPress template hierarchy"},"content":{"rendered":"<p><a href=\"https:\/\/pingback.com\/en\/resources\/wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"WordPress (opens in a new tab)\">WordPress<\/a> template hierarchy is an essential concept that every developer needs to learn to start operating on this CMS platform.<\/p>\n<p>This structure guides each page&#8217;s rendering, making the information load much more dynamic, agile and free of errors and failures. It is important to understand how this structure works to make changes to a site.<\/p>\n<p>WordPress&#8217;s standards for page layout are also essential to keep its construction properly organized.<\/p>\n<p>This structure impacts how to make changes on websites, turning the work easier for developers. Consequently, page customizations on a website can be complete and able to reach maximum potential.<\/p>\n<p>This content will show you more about how the WordPress template hierarchy works, its importance, and the categories that follow this structure on a website. We will cover the following topics:<\/p>\n<ul class=\"wp-block-list\">\n<li><a href=\"#1\">WordPress template hierarchy<\/a><\/li>\n<li><a href=\"#2\">Categories has a built-in WordPress template hierarchy<\/a><\/li>\n<li><a href=\"#3\">Template hierarchy in code<\/a><\/li>\n<\/ul>\n<p>Keep reading to learn more about the subject!<\/p>\n<p><a id=\"1\"><\/a><\/p>\n<h2 class=\"wp-block-heading\"><strong>WordPress template hierarchy<\/strong><\/h2>\n<p>WordPress template hierarchy is the template structure that every website operated on this <a rel=\"noreferrer noopener\" href=\"https:\/\/pingback.com\/en\/resources\/cms-for-marketing\/\" target=\"_blank\">CMS<\/a> platform follows.<\/p>\n<p>Each <a rel=\"noreferrer noopener\" href=\"https:\/\/pingback.com\/en\/resources\/what-is-a-wordpress-theme\/\" target=\"_blank\">theme<\/a> used must have its parts and details following this arrangement, ensuring two main issues: a standardized reading by WordPress and a much easier alteration process in the developers&#8217; work.<\/p>\n<p>Another important question is the page rendering done by browsers. This work happens from the HTML file offered by WordPress, which makes reading much faster and easier with the template hierarchy.<\/p>\n<h3 class=\"wp-block-heading\"><strong>Essential when using and creating themes<\/strong><\/h3>\n<p>Template developers have placed many theme options on the market, which is very positive for platform users.<\/p>\n<p>For this reason, it is essential to standardize the structure of every page, which helps to establish a perfect interaction system between WordPress and the theme used. This way, it is possible to avoid different constructions that could make the work more challenging.<\/p>\n<p>In WordPress, PHP is used to develop pages and, consequently, themes. When <a rel=\"noreferrer noopener\" href=\"https:\/\/pingback.com\/en\/resources\/develop-wordpress-theme\/\" target=\"_blank\">creating a new theme<\/a>, developers need to follow the template hierarchy to maintain a standard, restricting possible complex constructions that would difficult file reading.<\/p>\n<p>This standardizing also avoid slowness in pages and potential incompatibilities with <a rel=\"noreferrer noopener\" href=\"https:\/\/pingback.com\/en\/resources\/how-many-wordpress-plugins-should-you-install\/\" target=\"_blank\">plugins<\/a>, for example.<\/p>\n<h3 class=\"wp-block-heading\"><strong>Ease to edit themes<\/strong><\/h3>\n<p>WordPress template hierarchy is also critical to make easy any modification in a theme. With a structure that always repeats itself, choose a category within the various possible ones and perform the necessary adjustments.<\/p>\n<p>Besides being agile, this process is assertive and can be repeated several times without generating doubts or complications.<\/p>\n<p>To better illustrate the WordPress template hierarchy, website <a rel=\"noreferrer noopener\" href=\"https:\/\/wpshout.com\/\" target=\"_blank\">WPShout<\/a> designed the following layout:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-opt-id=1605633354  data-opt-src=\"https:\/\/s3.amazonaws.com\/scribblelive-com-prod\/wp-content\/uploads\/sites\/4\/2020\/11\/Hierarchy.png\"  decoding=\"async\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20100%%20100%%22%20width%3D%22100%%22%20height%3D%22100%%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22100%%22%20height%3D%22100%%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" alt=\"\" class=\"wp-image-17539\"\/><figcaption> Source: <a href=\"https:\/\/wphierarchy.com\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/wphierarchy.com (opens in a new tab)\">https:\/\/wphierarchy.com<\/a> <\/figcaption><\/figure>\n<\/div>\n<p><a id=\"2\"><\/a><\/p>\n<h2 class=\"wp-block-heading\"><strong>Categories has a built-in WordPress template hierarchy<\/strong><\/h2>\n<p><a href=\"https:\/\/pingback.com\/en\/resources\/most-important-wordpress-functions\/\" rel=\"noreferrer noopener\" target=\"_blank\">WordPress websites<\/a> are composed of seven different types of pages: Site front page, Single posts, Single pages, Category and tag pages, Custom post types, search results pages and 404 error pages.<\/p>\n<p>On each of these pages, there is a built-in WordPress template hierarchy, which we will into detail below!<\/p>\n<h3 class=\"wp-block-heading\"><strong>Site front page<\/strong><\/h3>\n<p>WordPress loads a website&#8217;s home page first. To do this, the platform will search the file &#8220;front-page.php&#8221;, and if it is not found, the option will be &#8220;home.php&#8221; and finally &#8220;index.php&#8221;.<\/p>\n<p>The front page hierarchy develops exactly in this order, without any variation of this cycle of tasks performed by WordPress.<\/p>\n<p>The files will often have exactly the same content, but the platform still follows its functioning with this workflow.<\/p>\n<p>This is what will ensure a standardized operation, keeping the hierarchy the right way. Front page site, as you can see, has one of the simplest schemes in a website.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-opt-id=1838490870  data-opt-src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2016\/10\/site-front-page.png\"  decoding=\"async\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20100%%20100%%22%20width%3D%22100%%22%20height%3D%22100%%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22100%%22%20height%3D%22100%%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" alt=\"Site front page\"\/><figcaption> Source: https:\/\/www.wpbeginner.com\/wp-themes\/wordpress-template-hierarchy-explained\/ <\/figcaption><\/figure>\n<\/div>\n<h3 class=\"wp-block-heading\"><strong>Single posts<\/strong><\/h3>\n<p>Single post is a category that aggregates each of the contents published in the platform. To show a post to the user, WordPress will render a template of this type of page, for this, the task to be executed will load the following hierarchy of PHP files, in the following order:<\/p>\n<ul class=\"wp-block-list\">\n<li>single{post-type}-{slug}.php;<\/li>\n<li>single{post-type}.php;<\/li>\n<li>single.php;<\/li>\n<li>singular.php;<\/li>\n<li>index.php.<\/li>\n<\/ul>\n<p>The first two types of files will allow you to load a <a rel=\"noreferrer noopener\" href=\"https:\/\/pingback.com\/en\/resources\/create-custom-post-types\/\" target=\"_blank\">custom post<\/a>, with changes to its structure. However, if this is not the particular post situation, the loading will be of the default format, &#8220;single.php&#8221;.<\/p>\n<p>WordPress will keep searching until it reaches index.php, if necessary since it is a file that will always be available.<\/p>\n<h3 class=\"wp-block-heading\"><strong>Single pages<\/strong><\/h3>\n<p>As the name suggests, it is any page within the website. When the user accesses, for example, an item in the menu bar, WordPress directs them to a new single page.<\/p>\n<p>Therefore, the rendering of these pages needs to follow a very clear hierarchy, which in this case, will be:<\/p>\n<ol class=\"wp-block-list\">\n<li>Custom template file;<\/li>\n<li>page\u2013{slug}.php;<\/li>\n<li>page-{id}.php;<\/li>\n<li>page.php;<\/li>\n<li>singular.php;<\/li>\n<li>index.php.<\/li>\n<\/ol>\n<p>One of the main differences in the hierarchy of this type of page is the first item. It is not a PHP file because WordPress works to recognize any content as a single page.<\/p>\n<p>If this is the case, the platform can load and render normally. If not, it keeps looking for other files that can help create the HTML of the page.<\/p>\n<p>Sometimes developers get a bit lost trying to hunt down the right template file when something isn&#8217;t displaying the way they expect. It&#8217;s pretty normal to check all possible files in the order WordPress does\u2014moving from the most specific down to the general ones\u2014until you realize you left a stray old template in your theme directory. If you ever find yourself frustrated with stubborn layouts, it&#8217;s usually worth taking a breath and retracing the hierarchy from the top.<\/p>\n<p>On a similar note, knowing this flow is a lifesaver when working on larger sites with custom post types or landing pages. You can quickly spot where overrides are happening or why certain pages aren&#8217;t using your intended template. It&#8217;s not exactly glamorous work, but once you get familiar with the pattern, troubleshooting layout quirks gets a lot less stressful\u2014repetitive, maybe, but with fewer headaches.<\/p>\n<h3 class=\"wp-block-heading\"><strong>Category and tag pages<\/strong><\/h3>\n<p>Categories and tags play basically the same role when aggregating content within WordPress, which makes it easier to upload. In category, the hierarchy will work like this:<\/p>\n<ol class=\"wp-block-list\">\n<li>category\u2013{slug}.php;<\/li>\n<li>category-{id}.php;<\/li>\n<li>category.php;<\/li>\n<li>archive.php;<\/li>\n<li>index.php.<\/li>\n<\/ol>\n<p>Tags also follow a very similar hierarchy:<\/p>\n<ol class=\"wp-block-list\">\n<li>tag\u2013{slug}.php;<\/li>\n<li>tag-{id}.php;<\/li>\n<li>tag;<\/li>\n<li>archive.php;<\/li>\n<li>index.php.<\/li>\n<\/ol>\n<h3 class=\"wp-block-heading\"><strong>Custom post types<\/strong><\/h3>\n<p>It may be necessary to post varied contents that are not identified as a standard type of platform post. They have modified structures to receive some customization and, for this reason, WordPress will also need to load the hierarchy used.<\/p>\n<ol class=\"wp-block-list\">\n<li>arquivo-{post_type}.php;<\/li>\n<li>archive.php;<\/li>\n<li>index.php.<\/li>\n<\/ol>\n<p>Because it is a different type of post, hierarchy is simpler and more objective, different from most types of pages shown so far. Still, its operation is the best that WordPress needs in terms of loading.<\/p>\n<h3 class=\"wp-block-heading\"><strong>Search results pages<\/strong><\/h3>\n<p>Search results pages are one of the simplest templates you&#8217;ll find in WordPress, and this is shown in its hierarchy, which is much shorter than usual:<\/p>\n<ul class=\"wp-block-list\">\n<li>search.php;<\/li>\n<li>index.php.<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\"><strong>404 error pages<\/strong><\/h3>\n<p>The same happens on the 404 error pages:<\/p>\n<ol class=\"wp-block-list\">\n<li>404.php;<\/li>\n<li>index.php.<\/li>\n<\/ol>\n<p><a id=\"3\"><\/a><\/p>\n<h2 class=\"wp-block-heading\"><strong>Template hierarchy in code<\/strong><\/h2>\n<p>WordPress requests, as you saw, go through the file &#8220;index.php&#8221;. This file generates the following lines of code:<\/p>\n<pre class=\"wp-block-preformatted\">define('WP_USE_THEMES', true);\n\n\/** Loads the WordPress Environment and Template *\/\nrequire( dirname( __FILE__ ) . '\/wp-blog-header.php' );\n<\/pre>\n<p><code>wp-blog-header.php<\/code> and&nbsp;<code>wp-blog-header.php<\/code>&nbsp;contains:<\/p>\n<pre class=\"wp-block-preformatted\">if ( !isset($wp_did_header) ) {\n\n    $wp_did_header = true;\n\n    require_once( dirname(__FILE__) . '\/wp-load.php' );\n\n    wp();\n\n    require_once( ABSPATH . WPINC . '\/template-loader.php' );\n\n}\n<\/pre>\n<p>require_once( ABSPATH . WPINC . &#8216;\/template-loader.php&#8217; ); contains the theme hierarchy to show the page. The main lines of the code in question bring:<\/p>\n<pre class=\"wp-block-preformatted\">if ( defined('WP_USE_THEMES') &amp;&amp; WP_USE_THEMES ) :\n    $template = false;\n    if     ( is_404()            &amp;&amp; $template = get_404_template()            ) :\n    elseif ( is_search()         &amp;&amp; $template = get_search_template()         ) :\n    elseif ( is_front_page()     &amp;&amp; $template = get_front_page_template()     ) :\n    elseif ( is_home()           &amp;&amp; $template = get_home_template()           ) :\n    elseif ( is_post_type_archive() &amp;&amp; $template = get_post_type_archive_template() ) :\n    elseif ( is_tax()            &amp;&amp; $template = get_taxonomy_template()       ) :\n    elseif ( is_attachment()     &amp;&amp; $template = get_attachment_template()     ) :\n        remove_filter('the_content', 'prepend_attachment');\n    elseif ( is_single()         &amp;&amp; $template = get_single_template()         ) :\n    elseif ( is_page()           &amp;&amp; $template = get_page_template()           ) :\n    elseif ( is_singular()       &amp;&amp; $template = get_singular_template()       ) :\n    elseif ( is_category()       &amp;&amp; $template = get_category_template()       ) :\n    elseif ( is_tag()            &amp;&amp; $template = get_tag_template()            ) :\n    elseif ( is_author()         &amp;&amp; $template = get_author_template()         ) :\n    elseif ( is_date()           &amp;&amp; $template = get_date_template()           ) :\n    elseif ( is_archive()        &amp;&amp; $template = get_archive_template()        ) :\n    elseif ( is_comments_popup() &amp;&amp; $template = get_comments_popup_template() ) :\n    elseif ( is_paged()          &amp;&amp; $template = get_paged_template()          ) :\n    else :\n        $template = get_index_template();\n    endif;\n    \/**\n     * Filter the path of the current template before including it.\n     *\n     * @since 3.0.0\n     *\n     * @param string $template The path of the template to include.\n     *\/\n    if ( $template = apply_filters( 'template_include', $template ) )\n        include( $template );\n    return;\nendif;\n<\/pre>\n<p>Understanding WordPress template hierarchy is essential for developers to know how to work more accurately and quickly to make editions, adjustments and customizations on websites.<\/p>\n<p>Page types have well-defined structures and the loading of files works in pre-defined flows, which makes the whole process flawless.<\/p>\n<p>WordPress is one of the main platforms to create high-quality corporate blogs. So <a href=\"https:\/\/resources.rockcontent.com\/wordpress-guide\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"check out our guide on how to create and manage yours (opens in a new tab)\">check out our guide on how to create and manage yours<\/a>!<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/resources.rockcontent.com\/wordpress-guide\" target=\"_blank\" rel=\"noreferrer noopener\"><img data-opt-id=466833331  data-opt-src=\"https:\/\/s3.amazonaws.com\/scribblelive-com-prod\/wp-content\/uploads\/2020\/08\/Materiais_750x200-banner-final.png\"  decoding=\"async\" src=\"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20100%%20100%%22%20width%3D%22100%%22%20height%3D%22100%%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%22100%%22%20height%3D%22100%%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E\" alt=\"WordPress Guide for Corporate Blogs - Promotional Banner\" class=\"wp-image-13563\"><\/a><\/figure>\n<\/div>\n<p> }}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress template hierarchy ensures that pages on a site feature simplified structures that allow faster and error-free loading. Developers can make changes, customizations and edits accurately, ensuring the best results when managing an online project.<\/p>\n","protected":false},"author":1,"featured_media":57005,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-63693","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WordPress template hierarchy: a beginner&#039;s guide<\/title>\n<meta name=\"description\" content=\"WordPress template hierarchy: we developed a complete guide on the subject! Learn about the structure of the page types and how this can be useful.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress template hierarchy: a beginner&#039;s guide\" \/>\n<meta property=\"og:description\" content=\"WordPress template hierarchy: we developed a complete guide on the subject! Learn about the structure of the page types and how this can be useful.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/\" \/>\n<meta property=\"og:site_name\" content=\"Pingback\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-30T13:46:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-09T07:41:29+00:00\" \/>\n<meta name=\"author\" content=\"Carolina\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carolina\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/\",\"url\":\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/\",\"name\":\"WordPress template hierarchy: a beginner's guide\",\"isPartOf\":{\"@id\":\"https:\/\/pingback.com\/en\/resources\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2020-11-30T13:46:18+00:00\",\"dateModified\":\"2025-09-09T07:41:29+00:00\",\"author\":{\"@id\":\"https:\/\/pingback.com\/en\/resources\/#\/schema\/person\/5931a4533700c840b9f38199581abc33\"},\"description\":\"WordPress template hierarchy: we developed a complete guide on the subject! Learn about the structure of the page types and how this can be useful.\",\"breadcrumb\":{\"@id\":\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/pingback.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A beginner&#8217;s guide to WordPress template hierarchy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pingback.com\/en\/resources\/#website\",\"url\":\"https:\/\/pingback.com\/en\/resources\/\",\"name\":\"Pingback\",\"description\":\"Marketing for builders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pingback.com\/en\/resources\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/pingback.com\/en\/resources\/#\/schema\/person\/5931a4533700c840b9f38199581abc33\",\"name\":\"Carolina\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/pingback.com\/en\/resources\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/70cde532238b4f8bf4a6e7e589ff0a259eda38fa966564ca7ed7d23e61c27774?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/70cde532238b4f8bf4a6e7e589ff0a259eda38fa966564ca7ed7d23e61c27774?s=96&d=mm&r=g\",\"caption\":\"Carolina\"},\"sameAs\":[\"https:\/\/pingback.com\"],\"url\":\"https:\/\/pingback.com\/en\/resources\/author\/adm1n\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress template hierarchy: a beginner's guide","description":"WordPress template hierarchy: we developed a complete guide on the subject! Learn about the structure of the page types and how this can be useful.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/","og_locale":"pt_BR","og_type":"article","og_title":"WordPress template hierarchy: a beginner's guide","og_description":"WordPress template hierarchy: we developed a complete guide on the subject! Learn about the structure of the page types and how this can be useful.","og_url":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/","og_site_name":"Pingback","article_published_time":"2020-11-30T13:46:18+00:00","article_modified_time":"2025-09-09T07:41:29+00:00","author":"Carolina","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Carolina","Est. tempo de leitura":"8 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/","url":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/","name":"WordPress template hierarchy: a beginner's guide","isPartOf":{"@id":"https:\/\/pingback.com\/en\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#primaryimage"},"image":{"@id":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#primaryimage"},"thumbnailUrl":"","datePublished":"2020-11-30T13:46:18+00:00","dateModified":"2025-09-09T07:41:29+00:00","author":{"@id":"https:\/\/pingback.com\/en\/resources\/#\/schema\/person\/5931a4533700c840b9f38199581abc33"},"description":"WordPress template hierarchy: we developed a complete guide on the subject! Learn about the structure of the page types and how this can be useful.","breadcrumb":{"@id":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/pingback.com\/en\/resources\/wordpress-template-hierarchy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/pingback.com\/blog\/"},{"@type":"ListItem","position":2,"name":"A beginner&#8217;s guide to WordPress template hierarchy"}]},{"@type":"WebSite","@id":"https:\/\/pingback.com\/en\/resources\/#website","url":"https:\/\/pingback.com\/en\/resources\/","name":"Pingback","description":"Marketing for builders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pingback.com\/en\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Person","@id":"https:\/\/pingback.com\/en\/resources\/#\/schema\/person\/5931a4533700c840b9f38199581abc33","name":"Carolina","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/pingback.com\/en\/resources\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/70cde532238b4f8bf4a6e7e589ff0a259eda38fa966564ca7ed7d23e61c27774?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/70cde532238b4f8bf4a6e7e589ff0a259eda38fa966564ca7ed7d23e61c27774?s=96&d=mm&r=g","caption":"Carolina"},"sameAs":["https:\/\/pingback.com"],"url":"https:\/\/pingback.com\/en\/resources\/author\/adm1n\/"}]}},"_links":{"self":[{"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/posts\/63693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/comments?post=63693"}],"version-history":[{"count":3,"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/posts\/63693\/revisions"}],"predecessor-version":[{"id":127473,"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/posts\/63693\/revisions\/127473"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/media?parent=63693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/categories?post=63693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pingback.com\/en\/resources\/wp-json\/wp\/v2\/tags?post=63693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}