Using shortcode and templates, post files from a secure web directory with mod_rewrite enabled uri links to view and download.
You can call the auto-formatting functions directly from a file template, or use the one I have already setup called
Again, this is taken care of in the template
wp_post, but if you would like just the simple functionality of shortcodes, without the auto-formatting, then just make another template for that
Seriously nearly every answer is going to be to just make a template for that. A template has access to all WordPress hooks and filters, and it can be as complicated or as simple as you want. Just look at the differences between
link. The template
link_uri just outputs the URI to the file, this URI can then be used in any attribute or content of any HTML tag. The
link template on the other hand actually outputs the finished hyperlink HTML using the same URI.