[wp-trac] [WordPress Trac] #40807: Starter content: Allow for setting a "parent" for pages (and other hierarchical CPTs)

WordPress Trac noreply at wordpress.org
Wed Oct 4 13:40:03 UTC 2017


#40807: Starter content: Allow for setting a "parent" for pages (and other
hierarchical CPTs)
--------------------------------------+-----------------------------
 Reporter:  webmandesign              |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Customize                 |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by birgire):

 Added a deeper config tree in [attachment:40807.2.patch] and use
 {{{get_post_field()}}} to get the {{{post_parent}}} field.

 To consider:

 - add a hierarchical post type restriction on posts using the {{{parent}}}
 - add a same parent/child post type restriction on posts using the
 {{{parent}}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40807#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list