Reply To: Serving menu based on forum parent
Figured it out finally.
`”39″ is the page ID of the parent
if ( is_singular() || bbp_is_forum_edit() || bbp_is_topic_edit() || bbp_is_reply_edit() )
$ancestors = array_reverse( (array) get_post_ancestors( get_the_ID() ) );
//$parent = get_post( $parent_id );
if (in_array(’39’, $ancestors))
//if ($ancestors == 39)
{
echo ‘blahblah’
} `