Support » Plugin: BP Profile Search » If memeber search is empty, redirect to custom page.

  • Resolved ignacioreyesf


    Hello, great plugin!

    I was wonderig if instead of displaying the “Sorry, no members were found message”, there is any way to redirect to a custom page if the member search process throws no results.

    For example if a user is looking for a member which complies with two specific criteria, but no members at this moment does, instead of just showing “sorry, no members were found”, the site could redirect the user to a custom page so we can, for example, ask for contact information and follow up with him later.

    Any kind of help is highly appreciated!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Andrea Tarantini


    Hello ignacioreyesf,

    Unfortunately when BP Profile Search realizes there are no search results, it’s too late to make a redirect (headers have been already sent).

    What you can do is to change the ‘no members found’ message, adding your request for contact information or the link to your custom page. To do that, edit the message in the BuddyPress template file:


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