Last active
June 8, 2017 00:48
-
-
Save rob-gordon/5d23be2baf3053ee15cb9538d82cf948 to your computer and use it in GitHub Desktop.
A javascript object representing the wordpress template hierarchy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var templateHierarchy = [ | |
| { | |
| "index": [ | |
| { | |
| "paged": [ | |
| { | |
| "archive": [ | |
| { | |
| "author": [ | |
| { | |
| "author-$id": [ | |
| "author-$nicename" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "category": [ | |
| { | |
| "category-$id": [ | |
| "category-$slug" | |
| ] | |
| } | |
| ] | |
| }, | |
| "archive-$posttype", | |
| { | |
| "taxonomy": [ | |
| { | |
| "taxonomy-$taxonomy": [ | |
| "taxonomy-$taxonomy-$term" | |
| ] | |
| } | |
| ] | |
| }, | |
| "date", | |
| { | |
| "tag": [ | |
| { | |
| "tag-$id": [ | |
| "tag-$slug" | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "singular": [ | |
| { | |
| "single": [ | |
| "attachment", | |
| "single-$posttype", | |
| "single-post" | |
| ] | |
| }, | |
| { | |
| "page": [ | |
| { | |
| "page-$id": [ | |
| "page-$slug" | |
| ] | |
| }, | |
| "$custom" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "home": [ | |
| "front-page" | |
| ] | |
| }, | |
| "comments-popup", | |
| "404", | |
| "search" | |
| ] | |
| } | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment