Hi, I has been trying to display a parent page permalink on child page in two ways and I'm unsuccessful in both:
$parent_link = get_permalink($page->page_parent);
in this way it displays the page itself link but not the parent page;
$parent = get_page($page->page_parent);
in this way I get:
Catchable fatal error: Object of class stdClass could not be converted to string.
I can't understand why I do not get parent page (not post) link. Help pls.