Pages & Custom Post Type Pages not realising parent
-
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
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Pages & Custom Post Type Pages not realising parent’ is closed to new replies.