[wp-trac] [WordPress Trac] #54523: inherited custom template hierarchy
WordPress Trac
noreply at wordpress.org
Fri Nov 26 23:58:19 UTC 2021
#54523: inherited custom template hierarchy
-------------------------+------------------------------
Reporter: grosfaignan | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.8.2
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by joyously):
Templates apply to what is retrieved for display on the front end, which
is from the post table, so if you make your author a post type you can use
the existing template hierarchy to make a template for that post type.
Template parts have a fallback mechanism, which is sort of like
inheritance. It could be better than making a template because it affects
only part of the page.
For related tickets about the template algorithm, see #48175 and #43597
Otherwise, authors in the user table are only shown by core in the admin,
and not displayed with a template.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54523#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list