Forums

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

  1. tomasi514
    Member
    Posted 2 months 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 2 months ago #

  3. tomasi514
    Member
    Posted 2 months ago #

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

Reply

You must log in to post.

About this Topic