Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32117, comment 7


Ignore:
Timestamp:
08/14/2017 01:15:29 PM (8 years ago)
Author:
bambattajb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32117, comment 7

    initial v1  
    1 This problem is actually a little bit annoying ;) Seems the only native function for getting an attachment object by ID is `wp_get_attachment_metadata()` but it doesn't actually return include a path. I could very much be mistaken and of course the way it is may be on purpose.
     1This problem is actually a little bit annoying ;) Seems the only native function for getting an attachment object by ID is `wp_get_attachment_metadata()` but it doesn't actually return a path. I could very much be mistaken and of course the way it is may be on purpose.
    22
    33I got around the problem by doing the following.