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

WordPress Trac noreply at wordpress.org
Sat Oct 7 07:44:34 UTC 2017


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

Comment (by birgire):

 It looks like I forgot the {{{{{...}}}}} syntax, in the previous patch.

 In [attachment:40807.4.diff] we assume the parent reference to be like:

 {{{
 'animal' => array(
     'post_type'  => 'page',
     'post_title' => 'Animal',
 ),
 'fish'   => array(
     'post_type'  => 'page',
     'post_title' => 'Fish',
     'parent'     => '{{animal}}',
 ),
 }}}

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


More information about the wp-trac mailing list