Home Forums Plugin Support WP User Frontend Pro Uploaded File URL

This topic is: resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7011

    elisha11230
    Participant
    Post count: 8

    Is there a way to get the exact url in a post of a submitted file or image, not the image id or file link just the exact url without the link attributed to it when using the shortcode [wpuf-meta name=”meta_key_name” type=”image”] ?

    #7030

    Tareq Hasan
    Keymaster
    Post count: 2831

    Using shortcode, NO. It's possible with using codes:

    [php]
    $file_id = get_post_meta( $post->ID, ‘your_meta_key', true );
    echo wp_get_attachment_url( $file_id );
    [/php]

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Uploaded File URL’ is closed to new replies.