Skip to:
Content
Pages
Categories
Search
Top
Bottom

Perplexing problem NEED GURU – redirect defaulting to BP member page

  • Avatar of pdillon809
    pdillon809
    Participant

    @pdillon809

    Here’s a very weird issue. I have a couple of pages (non BuddyPress) that I want to restrict access to only registered users.

    I created a new page template by copying the theme’s page.php file and adding a simple conditional statement to check if a user is logged in (else) redirect (in this example an external link).

    There is nothing in page-new.php that could invoke mydomain.com/members but that’s where the user goes if accessing a page using that template. If I deactivate BuddyPress, the template works as expected. With BuddyPress activated the template does not work and redirects the user to mydomain.com/members even though the slug is mydomain.com/protected-page

    BuddyPress 1.7 with a child theme of Evolution by Elegant Themes.

    Here’s a text file of the new template page.

    I’m wondering what could be causing this.

You must be logged in to reply to this topic.