Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    Try this:

    $fieldName = 'new-model-upload';
    $fieldNameUrl = $fieldName . '_URL';
    echo '<table border="1"><tbody>';
    while ($row = $exp->nextRow()) {
        $fileName = $row[$fieldName];
        $fileUrl = $row[$fieldNameUrl];
        echo '<tr>';
        echo "<th style='width: 20%'>Download attach file</th><td><a href='$fileUrl'>$fileName</a></td>";
        echo '</tr>';
    }
    echo '</tbody></table>';

    Thread Starter alvinhyc

    (@alvinhyc)

    Hi Michael:

    It’s working now. Thank you for your response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How about make a link to download upload file in own shortcode’ is closed to new replies.