• Hello. Congratulations for your great plugin.

    I’m trying to get the only the URL of a uploaded file using a xprofile file field, but when I try to get the field information, it comes with a full “a href”, and I need just the URL. How can I do that? Is possible get only the url?

    Here is my function to download the file in other member area

    <?php $mp3_url_principal = xprofile_get_field_data( 'MP3 - Principal' , bp_get_member_user_id() ); ?>
    
     <a href="app-download.php?arquivo=<?php echo $mp3_url_principal; ?>&locutorid=<?php echo xprofile_get_field_data( 'Name' , bp_get_member_user_id() ); ?>_file1">
    Download Mp3 1</a>

    I’m a wordpress newbie. Thank you for any help

    • This topic was modified 7 years, 4 months ago by motolese.
  • The topic ‘Get URL from Uploaded File’ is closed to new replies.