WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Hitesh Joshi
    Member
    Posted 4 years ago #

    Hello,

    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. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

  3. auz1111
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic