Title: is_child() functionality?
Last modified: August 18, 2016

---

# is_child() functionality?

 *  [lintonbe](https://wordpress.org/support/users/lintonbe/)
 * (@lintonbe)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/is_child-functionality/)
 * Does any one know if there is some sort of functionality for checking if a page
   is a subpage or not. Also if a page is a subpage of a particular page.
 * I.E. is_child(“portfolio”);
 * If not I am going to write this functionality.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [tbrams](https://wordpress.org/support/users/tbrams/)
 * (@tbrams)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/is_child-functionality/#post-196855)
 * I have made a small plugin recently that works for me re this functionality that
   I hope you can use.
 * It’s available here:
 * [http://brams.dk/public/wp/tbr_article_family.zip](http://brams.dk/public/wp/tbr_article_family.zip)
 *  Thread Starter [lintonbe](https://wordpress.org/support/users/lintonbe/)
 * (@lintonbe)
 * [21 years ago](https://wordpress.org/support/topic/is_child-functionality/#post-197401)
 * Thanks, this worked great.
 *  [digory](https://wordpress.org/support/users/digory/)
 * (@digory)
 * [21 years ago](https://wordpress.org/support/topic/is_child-functionality/#post-197530)
 * Works for me, too. Thanks!
 *  [ianalis](https://wordpress.org/support/users/ianalis/)
 * (@ianalis)
 * [21 years ago](https://wordpress.org/support/topic/is_child-functionality/#post-197553)
 * WFM too but [decendant ](http://dictionary.reference.com/search?q=decendant) 
   🙂
 *  [strugglefish](https://wordpress.org/support/users/strugglefish/)
 * (@strugglefish)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/is_child-functionality/#post-197680)
 * AWesome! This would be an awesome addition to the core imo, thank you so much,
   now I wont’ have to pull the rest of my hair out.
 *  [gronkh](https://wordpress.org/support/users/gronkh/)
 * (@gronkh)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/is_child-functionality/#post-197683)
 * Since I haven’t found a plugin yet which has is_child-functionality even for 
   categories, postings as well as for pages, I gave up on searching and wrote one
   for myself.
 * Works with IDs, titles and slugs as search-term.
 * [http://erik.range-it.de/wordpress/plugins/is_child/](http://erik.range-it.de/wordpress/plugins/is_child/)
 *  [kerimfriedman](https://wordpress.org/support/users/kerimfriedman/)
 * (@kerimfriedman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/is_child-functionality/#post-197694)
 * As I explained here:
 * [http://wordpress.org/support/topic/79687?replies=1](http://wordpress.org/support/topic/79687?replies=1)
 * I’d like something which displays the current sibling pages and the parent page–
   but no other top level pages (even “folded”).
 * This would be very useful for building dynamic menus in static web sites using
   WP as a backend.
 *  [bedient](https://wordpress.org/support/users/bedient/)
 * (@bedient)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/is_child-functionality/#post-197695)
 * I think we’re trying to do the same thing. Create the feel of seperate blogs 
   in one. I have some butchered code (I know null about PHP) running at the top
   of this page.
 * [http://www.villageboating.com/vb/](http://www.villageboating.com/vb/)
 * Is that what you are thinking? I can post it if someone wants to clean it up.
 *  [disembodied](https://wordpress.org/support/users/disembodied/)
 * (@disembodied)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/is_child-functionality/#post-197705)
 * I just thought I would bump this because I posted a topic elsewhere about an 
   easy way to get subcategories to highlight its parent category’s tab… this is
   perfect, it gets the category highlighted when it is a page in that category,
   a page in a subcategory of that category, or the archive of that subcategory.
 * Thanks a lot for this plugin!
    (I used Gronkh’s by the way, I am not sure how
   the other one is)

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘is_child() functionality?’ is closed to new replies.

## Tags

 * [subpage](https://wordpress.org/support/topic-tag/subpage/)

 * 9 replies
 * 9 participants
 * Last reply from: [disembodied](https://wordpress.org/support/users/disembodied/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/is_child-functionality/#post-197705)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
