I am sorry if this is already asked or answered somewhere.
Is there a way to get the ID of TOP parent page.
Like the structure is like this :-
--Sub Sub Page
---Sub Sub Sub Page
now, is there a way through which I can get the ID of "Parent Page" , while I am on "Sub Sub Sub Page" and on "Sub Page", dynamically.
does wordpress have any API for this?
Thanks in advance.