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

    (@dontdream)

    Hi Debby,

    To make it work with BP Profile Search forms, add this code to your bp-custom.php file:

    add_filter( 'bp_is_conditional_profile_field_active', '__return_true' );

    Thread Starter Debora1976

    (@debora1976)

    Hi Andrea,

    Thanks, but with or without the function all the fields show up immediately, but some fiels are irrelevant, because I use conditions.
    So is it possible to show only the relevant fields in the search form, which show or hide by the same conditions?

    Kind regards,
    Debby

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Debby,

    Sorry I gave you a wrong advice!

    The code I provided used to work in the past, when the HTML markup of BuddyPress and of the BP Profile Search form templates was the same.

    Today that’s no longer true, so Conditional Profile Fields for BuddyPress can’t work with BP Profile Search forms.

    A solution could be to write a form template that, again, uses the same HTML markup of BuddyPress. Unfortunately at the moment I’m unable to do that, but I’m adding this feature to my to-do list.

    Thread Starter Debora1976

    (@debora1976)

    Oke, thank you very much.
    I’ll weet and see…

    Kind regards,
    Debby

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conditional fields’ is closed to new replies.