[wp-trac] [WordPress Trac] #18375: Post type templates
WordPress Trac
noreply at wordpress.org
Sat Oct 1 22:23:05 UTC 2016
#18375: Post type templates
--------------------------------------+-----------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: template
--------------------------------------+-----------------------
Comment (by WPDevHQ):
Replying to [comment:32 Mte90]:
> Edit: my fault the right code to use it:
>
> {{{
> function wpcodex_add_page_attributes_support_for_posts() {
> add_post_type_support( 'post', 'page-attributes' );
> }
> add_action( 'init', 'wpcodex_add_page_attributes_support_for_posts' );
> }}}
>
>> Thanks for that - I was hooking to after_setup_theme and it didnt fire
>
> That generate an error on that patch: Notice: Undefined property:
stdClass::$attributes in /srv/www/wordpress-develop/src/wp-admin/edit-
form-advanced.php on line 263
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18375#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list