• Resolved Carsten Lund

    (@carsten-lund)


    Hi there, when I clear the search form, BP Profile Search returns to the Members Directory, not the search form as you would expect. I can’t find anything in my settings, which could change that?

    Regards
    Carsten

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

    (@dontdream)

    Hi Carsten,

    Try adding this code to bp-custom.php:

    add_action ('bps_before_filters', 'change_action');
    function change_action ($F)
    {
    	$F->action = 'https://example.com/search-page/?bps_form=clear';
    }

    Replace https://example.com/search-page with your actual search page URL.

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi Andrea, the code did the job, thank you very much, maybe this code should be added the plugin as an option, as the search form, to me, is the obvious return when clearing a search.

    Regards
    Carsten

    Plugin Author Andrea Tarantini

    (@dontdream)

    Yes, I agree with you and that’s in my to-do list.

    Probably we need two links instead of a single Clear, one to reset the directory and one to run a new search. Another option you might try is to modify the bps-filters.php template (in the templates/members folder) to customize those links.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BP Profile Search returns to the members director after clearing the search form’ is closed to new replies.