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
  • #7011

    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”] ?


    Tareq Hasan
    Post count: 2831

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

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

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

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