How to get the page parent
-
I’m trying to get the page parent of a page. I need this for show in the navigation only the pages that have no parents.
I saw that “$page_title = $page->post_title;” code returns the page title. But, how can I return the page parent and test if it?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to get the page parent’ is closed to new replies.