waveminded
Member
Posted 3 years ago #
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...
patricia1706
Member
Posted 2 years ago #
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?
nomoretables
Member
Posted 2 years ago #
<a href="<?php echo get('menu'); ?>"><?php echo get('menu'); ?></a> or something like <a href="<?php echo get('menu'); ?>">Download File</a>