WordPress.org

Ready to get started?Download WordPress

Forums

get parent using id (2 posts)

  1. slee
    Member
    Posted 4 years ago #

    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?

  2. Looks like there's a thread with an answer, but I haven't tested it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags