Skip to:
Content
Pages
Categories
Search
Top
Bottom

Check if page is a group page


  • colingdi
    Participant

    @colingdi

    Hi,
    So we want to output a custom message in activity loop if the user is accessing from a group they are not a member of. Currently it outputs “Sorry, there was no activity found. Please try a different filter.” which isn’t intuitive as to why they can’t see anything. My code based on other googled answers is fairly simple though ineffective.

    
    if (bp_is_page( BP_GROUPS_SLUG )) {
                    echo ("request to join group to see feed");
                }
    

    Have I missed something? As nothing outputs at all.

Viewing 1 replies (of 1 total)

  • colingdi
    Participant

    @colingdi

    I need to check the age of posts I follow, that one was depreciated with the dinosaurs apparently. For those who come after this is the code:
    `
    if (bp_is_groups_component()) {
    echo (“request to join group to see feed”);
    }

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar