[resolved] Get the ID of Top Parent Page (3 posts)

  1. Hitesh Joshi
    Posted 6 years ago #


    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 :-

    Parent Page
    -Sub Page
    --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.

  2. Michael
    Forum Moderator
    Posted 6 years ago #

  3. auz1111
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic