Shadowpro (@slidstershadowprocomau)

Forum Replies Created

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

  • Shadowpro
    Participant

    @slidstershadowprocomau

    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.


    Shadowpro
    Participant

    @slidstershadowprocomau

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


    Shadowpro
    Participant

    @slidstershadowprocomau

    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)