I have a view which parse the Media post type filtered by a taxonomy and I would like to retrieve the File URL and not the post URL - this is for PDF files in the media library?
So basically I am looking to retrieve something like this - hidden link
So that I can use it in an href tag.
I saw a ticket in 2013 saying it wasn't possible, hoping that in almost 10 years we have a solution or workaround.
Thanks for coming back to me, I have tried to use the shortcode provided but it doesn't work. This is not from a CPT but from the standard WP Media file as per attached picture.
I have this basic code to the view and you can see the result here - hidden link
I am not getting the file url as per snapshot.
What am I doing wrong?
Thanks,
Phil
<p>This is the title of the file: [wpv-post-title]</p>
<p>This is the slug of the file: [wpv-post-slug]</p>
<p>This is the file URL: [types field="[wpv-post-slug]" output='raw'][/types]</p>