Skip to:
Content
Pages
Categories
Search
Top
Bottom

Advice needed – BuddyPress & Listings site


  • jen000
    Participant

    @jen000

    Hi I am new to Buddypress but I’ve been building websites for 10 yrs. I need to build a site which will have a listings part (companies will list offers) and a social part (Buddypress) where users can register for free. The client wants the users to be logged in before they can see the listings part. I was thinking of using Astoundify’s Listify for the listings element but I’ve seen numerous posts here and over on their support suggesting that it doesn’t work well with Buddypress. I’ve never built a site like this so am I approaching this challenge the right way? Can anyone offer me any suggestions please?

Viewing 1 replies (of 1 total)

  • Henry Wright
    Moderator

    @henrywright

    This is the kind of thing I’d do:

    add_action( 'init', function() {
        // Bail if the user is logged in.
        if ( is_user_logged_in() ) {
            return;
        }
    
        // Check if the listing page is being viewed here.
    
        // Redirect somewhere.
        bp_core_redirect( bp_get_root_domain() );
    } );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar