Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • andreasnordengen
    Participant

    @andreasnordengen

    Well, I asked the developer behind the theme I´m using and got this code:

    function sq7_extra_fields_members_directory() {
     
        $location = bp_get_member_profile_data('field=Location');
        $specialization = bp_get_member_profile_data('field=Specialization');
     
        if ($specialization || $location) {
            echo '<div class="mdetcenter">'. 'Location : ' . $location . '</div>';
            echo '<div class="mdetcenter">'. 'Specialization : ' . $specialization . '</div>';
        }
     
    }
    add_action('bp_directory_members_item', 'sq7_extra_fields_members_directory');

    But, when I add the code and update, I get this message from WordPress:
    Could not communicate back with the site to check for faulty errors, so the PHP change was reset. You must upload your change to the PHP file in another way, for example, with SFTP.

    Could be related to my PHP version…

Viewing 1 replies (of 1 total)
Skip to toolbar