This topic has 1 reply, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #8867
     frenzzy
    Participant

    Hi,

    How can I edit the matching system to match male and female only.

    Thanks

    #8937
     Abe
    Keymaster

    Hi, This is the topic that shows you how to change the matching system: https://archived.seventhqueen.com/forums/topic/match-numbers#reply-2254

    to match only “I am a” and “Looking for” this would be the code you have to add in sweetdate-child/functions.php

    COPY CODE
    
    //change matching system
    add_action('after_setup_theme','kleo_my_match');
    function kleo_my_match() {
    global $kleo_config;
    $kleo_config['matching_fields']['starting_score'] = 1;
    //If we want to match by members sex. values: 0|1
    $kleo_config['matching_fields']['sex_match'] = 1;
    //required for initial match. If the sex preference matches it will continue to the specified fields below
    $kleo_config['matching_fields']['sex'] = 'I am a';
    $kleo_config['matching_fields']['looking_for'] = 'Looking for a';
    //sex percentage
    $kleo_config['matching_fields']['sex_percentage'] = 99;
    //single value fields like select, textbox,radio
    $kleo_config['matching_fields']['single_value'] = array ();
    //multiple values fields like multiple select or checkbox
    $kleo_config['matching_fields']['multiple_values'] = array ();
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

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

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?