Support » Plugin: BP Profile Search » Height Range

  • Resolved anilreddy0102

    (@anilreddy0102)


    How do I add a height range to the search? It’s showing ‘is’ and ‘is one of’ options but not showing the range option. Please help

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

    (@dontdream)

    Hello anilreddy0102,

    Try adding this code to your bp-custom.php file:

    add_filter ('bps_xprofile_format', 'change_format', 10, 2);
    function change_format ($default, $field_id)
    {
    	if ($field_id == 143)  return 'decimal';
    	return $default;
    }

    Replace 143 with the actual field ID of your field.

    Thanks. But it’s outputting 2 text boxes. Instead, I want to output dropdown to select the range. Pls help.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hello anilreddy0102,

    The answer depends on the form template you are using. Please see the full info in your dashboard, under Users -> Profile Search, or take a screenshot of that page.

    This is the form template I’m using..
    members/bps-form-legacy
    located in: themes/sweetdate/buddypress/

    Plugin Author Andrea Tarantini

    (@dontdream)

    That template is provided by your theme, and I’m not sure if it’s able to display the range as two dropdowns. You could ask the SweetDate team about that.

    If you go to your Edit Form page, which other choices are present in the Form Template dropdown?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Height Range’ is closed to new replies.