[wp-trac] [WordPress Trac] #41742: New conditional tag to decide if a post has a custom template
WordPress Trac
noreply at wordpress.org
Mon Aug 28 08:25:14 UTC 2017
#41742: New conditional tag to decide if a post has a custom template
-----------------------------+-----------------------------
Reporter: danburzo | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Keywords:
Focuses: template |
-----------------------------+-----------------------------
Something like `is_custom_template()`.
The rationale:
1. it can be used in `template-loader.php` to aid in clarifying the
Template Hierarchy for attachments, posts, and pages.
2. in a theme that wants to keep things DRY and redirects all template-
xxx.php files to index.php, have a way to enquire if the post has a custom
template — this unlocks alternative templating strategies (such as when
using Timber).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41742>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list