Support » Plugin: Custom Field Suite » File name upload

  • Resolved Marco

    (@mcivita)



    Hi, I cannot find a way to show the file uploaded name.
    I can see the link and works, but i would llike to show to the user the filename of the uploaded file instead of a generic text like ‘download’.
    Is it possibile?

    Thanks for let me know

    <?php
    $fields = CFS()->get( 'allegato' );
    foreach ( $fields as $field ) {
    	?>
        <div style="border:1px solid #B7B5B5; display:block; padding:10px; width: 150px; ">
        <a>" target="_blank">download</a>
        </div>
    
       <?php 
    
    }
    ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code has now been damaged by the forum’s parser.]

    https://wordpress.org/plugins/custom-field-suite/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘File name upload’ is closed to new replies.