[wp-trac] [WordPress Trac] #41773: Page Templates // Post Type Templates | Any Post Type?
WordPress Trac
noreply at wordpress.org
Fri Sep 1 18:51:21 UTC 2017
#41773: Page Templates // Post Type Templates | Any Post Type?
-------------------------------------+-------------------------------------
Reporter: michael.ecklund | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch reporter- | Focuses: ui, administration,
feedback | template
-------------------------------------+-------------------------------------
Comment (by michael.ecklund):
* I would like to be able to control content and sidebar placement.
* I'd rather not have 50 million static templates which are all
essentially the same code.
* I'd like the freedom and flexibility to change between: sidebar left,
sidebar right, or no sidebar. No matter what type of content it is.
As a temporary solution I've been able to implement my template idea for
all post types by looping all post types and using the hook: `add_filter(
"theme_{$post_type}_templates", "add_my_templates" );`
Just seems like it would be a simple fix to add an "any" parameter. Much
like `WP_Query();` allows.
P.S. Why did you revert the version number from 4.8.1 to 4.7? I'm using
4.8.1 as reported.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41773#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list