[wp-trac] [WordPress Trac] #14879: Introduce is_child()

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 15 20:16:38 UTC 2010


#14879: Introduce is_child()
-----------------------------+----------------------------------------------
 Reporter:  McGurk           |       Owner:                 
     Type:  feature request  |      Status:  new            
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:                 
 Severity:  normal           |    Keywords:                 
-----------------------------+----------------------------------------------
 I've been thinking of a new conditional tag named is_child() which will
 function in the same way as is_page() but it will tell the user if the
 current page is a child of the parent page specified as a argument, either
 by a ID, slug or a title. This could of course be a single value or an
 array.

 I think that many would like and find a function like this useful, I know
 that I would and it would be perfect when developing a CMS using Wordpress
 and you need to add something to all child pages.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14879>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list