• Hey guys,

    Basically I’ve been trying to display content based on whether or not the post is part of the custom post type market_analysis.

    the $parent_id prints the name of the post correctly just need to determine if it is a child of this post type (which it is).

    I have tried

    if ($parent_id == is_singular('market_analysis') {
    
    } else { }

    also

    if ($parent_id == ('market_analysis') {
    
    } else { }

    Thanks in advance

  • The topic ‘Custom Post types’ is closed to new replies.