Advertisement
Guest User

Untitled

a guest
Mar 11th, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. $link = get_bloginfo('url')."?attachment_id=".$attach_id;
  2.  
  3. how to get this to pull "File URL" as the "$link" instead of the attachment url?
  4.  
  5. This is because when image is uploaded it calls to echo "$link"... Instead of displaying the file's (image) attachment page url, I want it to display the actual URL to the direct file (photo's url)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement