Hi everyone,
Having an issue with a site where pages which are custom post type templates and templates which pull in posts from a category or categories don't realise they have a parent page above them.
I have used $parent=$post->post_parent; and then echoed it and it displays the parent id as 0, even though the page is a second level of third level page with a parent.
Can anyone shed any light why this might happen?
Cian