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

  • Author
  • #17053
     ministryofdone
    Participant

    Hi,

    We are looking at changing the unique text that displays in the member directory section for each person in our member directory on the home page. We have found the thread below, and followed those instructions but unfortunately it still isn’t working. It has however, removed all the fields of text, and when I replace the page content with a backup file it still displays nothing rather than reverting back to what we had on the page originally. Does the “delete_transient( ‘kleo_bp_meta_fields’ );” remove the content from another page as well? How can we remedy this? We would like to be able to choose what text to display or at the very least, have what was displaying originally?
    Also, in the thread it says there should already be a kleo_remove_actions function in the child theme, but when I do a ‘Find’ on our site it doesn’t return any search results.

    https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display

    Attachments:
    You must be logged in to view attached files.
    #17441
     Abe
    Keymaster

    Hi, This is the code where you just replace the field names with your own:

    COPY CODE
    
    //members page fields
    add_action('after_setup_theme','kleo_my_member_data');
    function kleo_my_member_data()
    {
        global $kleo_config;
        //this is the details field, right now it take the "About me" field content
        $kleo_config['bp_members_details_field'] = 'About me';
        //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
        $kleo_config['bp_members_loop_meta'] = array(
            'I am a',
            'Marital status',
            'City'
        );
          
    }
    

    You can add the delete_transient( ‘kleo_bp_meta_fields’ ); line also to make sure some cache is deleted but remove it once all profile fields show correctly.

    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?