Skip to:
Content
Pages
Categories
Search
Top
Bottom

Installing a members-only forum


  • ScottyChoc
    Participant

    @scottychoc

    WordPress version 4.8
    Genesis Theme version 2.5.2
    bbPress version: 2.5.12
    Site URL: http://staging.c-rad.org/

    My site has a members section for which all of the pages in it have a template applied to it with this simple logic:

    	if ( ! is_user_logged_in()) {
    		wp_login_form();
    		return;
    	} else {
    		// add the members only sidebar and show the content
    	}
    

    Is it possible to install bbPress such that I can apply this template logic to all forum pages?

    I also want all forum pages to exist under a parent page. e.g. c-rad.org/members/forums.

    I can place my forum there (c-rad.org/members/my-forum) using a shortcode, but then all other forum pages go to their default locations (c-rad.org/topic/my-topic).

    I tried changing the Forum Root to ‘members’, but then when I visit that page, the page template with my logic is removed.

  • You must be logged in to reply to this topic.
Skip to toolbar