Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Jamie
    Participant

    @digitalchild

    Hi @henrywright

    It appears bp-custom does work now! I must have been doing something wrong. I’ve put it in the top of my existing bp-custom.php and its working. I prefer putting this here. Thanks for the tip.

    I’ll update my blog post to note this.


    @roquefort
    Check my blog post in a few minutes this will reflect a better way to do this.

    thanks.


    Jamie
    Participant

    @digitalchild

    Hi Roquefort.

    After I posted this I investigated the source code and came to the same conclusion as you. BuddyPress does take over WordPress search and causes any other WordPress search (including the inbuilt one) to stop working.

    I did however find a work around! What happens is buddypress defines a search slug that is the same as WordPress. What you have to do is redefine the buddypress search slug to something else and your search will start working again.

    Basically you want to put the following in your wp-config.php

    `define( ‘BP_SEARCH_SLUG’, ‘bpsearch’ );

    I tried to load this further up the stack to try and override this but wp-config seemed to be the only place this worked.

    You can find out more about how I worked this out over at this post:

    BuddyPress and WordPress Search

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar