[wp-trac] [WordPress Trac] #33045: New conditional tags for child/parent pages
WordPress Trac
noreply at wordpress.org
Mon Jul 20 10:28:13 UTC 2015
#33045: New conditional tags for child/parent pages
-------------------------+-----------------------------
Reporter: ramiy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: template |
-------------------------+-----------------------------
New enhancements for theme developers with new conditional tags:
* '''has_parent()''' - return boolean result using `$post->post_parent`.
* '''parent_page()''' - return the parent page id using
`$post->post_parent`.
* '''is_child_of( $id )''' - return boolean result using
`$post->post_parent`.
We can change the names, but we need the functionality.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33045>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list