Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Upload file and output a link #6408
    bradrh
    Member

    Hi Steve, Thank you and thanks for the response.

    I was referring to that tutorial before. That’s where I got my second code block. But it refers to images and I’m having trouble implementing it. I don’t want to show the doc, just add it’s URL to the anchor’s href.

    The bottom part of the tutorial mentions the URL:
    “To retrieve the file data you can use the standard WordPress function wp_get_attachment_metadata. This function will give you the width, height, file path, sizes, image_meta (aperture, camera, etc) of the uploaded file.”

    Could you show me what that code would look like, grabbing the file path, and adding it to a wordpress template?

    Thank you for your time!

Viewing 1 post (of 1 total)