[wp-trac] [WordPress Trac] #33045: New conditional tags for child/parent pages

WordPress Trac noreply at wordpress.org
Tue Oct 3 14:41:29 UTC 2017


#33045: New conditional tags for child/parent pages
-------------------------------+-----------------------------
 Reporter:  ramiy              |       Owner:  johnbillion
     Type:  enhancement        |      Status:  reviewing
 Priority:  normal             |   Milestone:  Future Release
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  template
-------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 For reference, comment:28:ticket:24164 has a good overview of existing
 `get_*()` and `the_*()` template functions.

 Until a new function is added, `get_post_field( 'post_parent', $post )`
 could be used for the same purpose.

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


More information about the wp-trac mailing list