Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: A few issues (2) #71108
     Lifevise
    Participant

    @laura,

    In childs functions.php

    COPY CODE
    add_action( 'bp_profile_header_meta', 'display_user_Location' );
    function display_user_Location() {
        $args = array(
            'field'   => 'Location'
            );
        $Location = bp_get_profile_field_data( $args );
     
        if ($Location) {
            echo 'Location: ' . $Location;
        }
    }
Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?