Shadowpro (@slidstershadowprocomau)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @slidstershadowprocomau

    Participant

    Not sure as I’ve never used s2member like that.

    Maybe post the whole code & someone may know?

    Post & page ID are the same I think. Hover over the page/post and you’ll see the ID number shown in the url right at the bottom of the browser window.

    @slidstershadowprocomau

    Participant

    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’
    } `

    @slidstershadowprocomau

    Participant

    oK, I have got most of the way there.

    I put this is to content-single-forum.php.

    Needs finishing, and I think it may do better in header.php as it’s looking for ver specific URLs.

Viewing 3 replies - 1 through 3 (of 3 total)