WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to get top parent (id or name?) (4 posts)

  1. tomasi514
    Member
    Posted 4 years ago #

    I am using parents and parents of parents, etc. on my website.
    How can I get the top parent of a page? (this page could be child or gran child, gran grand child, etc.)
    Is this possible?
    I know post_parent exists but I do not know what I can do with it here.

  2. stvwlf
    Member
    Posted 4 years ago #

  3. tomasi514
    Member
    Posted 4 years ago #

    Thank you very much, that helped me a lot indeed.

  4. plinth
    Member
    Posted 4 years ago #

    Could you explain how please - share the love!

Topic Closed

This topic has been closed to new replies.

About this Topic