Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Much is made of the WordPress function wp_get_attachment_image_src() which returns an array of data for an attachment image.
  2. But dealing with the array is not alway welcome.
  3.  
  4. wp_get_attachment_image_url() is your friend here as it returns the URL of the attachment at the desired size.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement