Forums

[resolved] Pages & Custom Post Type Pages not realising parent (3 posts)

  1. cian1991ferrari
    Member
    Posted 1 year ago #

    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

  2. cian1991ferrari
    Member
    Posted 1 year ago #

    RESOLVED

  3. revert
    Member
    Posted 6 months ago #

    HOW? :)

Topic Closed

This topic has been closed to new replies.

About this Topic