Jon Posted November 25, 2015 Share Posted November 25, 2015 Hello, I seem to be having a issue getting the page title of the parent to display within my child page. I can get the ID ok via echo $page->parent; I have tried echo $page->parent(title);But this doesn't work. Probably something simple I am not doing!Cheers Jon Link to comment Share on other sites More sharing options...
kongondo Posted November 25, 2015 Share Posted November 25, 2015 echo $page->parent->title; echo $page->parent->name; echo $page->parent->id; echo $page->parent->whatever_property;// non-array property 1 Link to comment Share on other sites More sharing options...
Jon Posted November 25, 2015 Author Share Posted November 25, 2015 Ah thanks , I just figured it out aswell Cheers Jon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now