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.
- The topic ‘How to get top parent (id or name?)’ is closed to new replies.