Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter skigirl1369

    (@skigirl1369)

    I have also tried including

    <?php echo xprofile_get_field_data( 'Studio Location', get_the_author_id()); ?>

    in author.php but it doesn’t return anything

    Plugin Author Miguel López

    (@atallos)

    You need to get author id using this code:

    $author = get_user_by( 'slug', get_query_var( 'author_name' ) );
    echo $author->ID;

    Then you can use bp_get_profile_field_data or xprofile_get_field_data with the ID of author.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying Xprofile information on Author page’ is closed to new replies.