• Resolved domswe

    (@domswe)


    When using the file upload field, when posted to the front end, its just the non-hyperlinked text.
    Any way to fix this? or add a “default” text to the hyperlink like “download” and have the link behind it?
    Page with problem included.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    I received an error on trying to view your web page.

    How did you display the field on the front-end? Basically, when you are showing things on the front-end, you have to add the HTML around the item you either want to display or download.

    If you’re using Pods Templates, you want to use the Image/File handling Magic Tags of @_src to get the src value for the download or @permalink for the actual download link. So in your Pods Template, you’d do something like this, assuming your file upload field was named file_upload

    <a href="{@file_upload.permalink,esc_url}">Download</a>

    If you were doing this in PHP, you’d do something like:

    echo '<a href=". esc_url( get_post_meta( get_the_id(), 'file_upload', true) ) . ">Download</a>';

Viewing 1 replies (of 1 total)

The topic ‘File upload doesn’t make hyperlink’ is closed to new replies.