Ok a quick tip, How to get the upload folder in a theme file on WordPress.
Why we need this?
Well you might want to link to a pdf file or some static file from the theme file.
How to do this?
First get the upload folder into a variable,
<?php $upload_dir = wp_upload_dir(); ?>
Then use that variable in the url to get the path of the file,
<a href=”<?php echo $upload_dir[‘baseurl’]; ?>/Testfile.pdf” target=”_blank”>Test link</a>
Simple as that.