Title: get parent using id
Last modified: August 19, 2016

---

# get parent using id

 *  [slee](https://wordpress.org/support/users/slee/)
 * (@slee)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/get-parent-using-id/)
 * is there a way to get the parent of a page using an id?
    for example if there
   is a child page with id 12 is there a way to get the parent id of that page when
   not on the child page?

Viewing 1 replies (of 1 total)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/get-parent-using-id/#post-1255312)
 * Looks like there’s a [thread with an answer](http://wordpress.org/support/topic/212127?replies=4),
   but I haven’t tested it.

Viewing 1 replies (of 1 total)

The topic ‘get parent using id’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/get-parent-using-id/#post-1255312)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
