How can i get the name of a page's parent?
I can only get it's id.
$page = get_queried_object();
$pageparent = $page->post_parent;
|
How can i get the name of a page's parent?
|
|||||||||
|
|
Once you've got the id of a post or page, use |
|||
|
|
|
Note that So, using the following would work in more circumstances:
|
|||
|
|
|
||||
|
|