• I’m working with the Flutter plugin by FreshOut. I’ve create a custom write panel, then inside that panel a custom field for ‘file’. I’ve had no problem uploaded PDF files on the backend.

    Now I’m trying to figure out how to echo the path / URL to the file that will appear on the post.
    The field is called ‘menu’ and I’m using this function
    <?php echo get('menu'); ?>

    But it returns nothing…

Viewing 2 replies - 1 through 2 (of 2 total)
  • patricia1706

    (@patricia1706)

    I’m having the same issue: I’d like to have the file name of the uploaded PDF become a link to download it. I can get the info to print to the page using:

    <?php if ( get_post_meta($post->ID, 'PDF-Download', true) ) { ?>
                    <div class="curate_data"><?php echo "DOWNLOAD <em>as</em> PDF: "; echo get_post_meta($post->ID, 'PDF-Download', $single=true); ?></div><!-- /publisher -->
    				<?php } ?>

    but this of course is only a strong of text returned, how can one turn it into a link?

    <a href="<?php echo get('menu'); ?>"><?php echo get('menu'); ?></a> or something like <a href="<?php echo get('menu'); ?>">Download File</a>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Flutter] url for uploaded file’ is closed to new replies.