[wp-hackers] Newbie Q - accessing different image sizes

Jan Erik Moström lists at mostrom.pp.se
Sat Apr 11 08:06:38 GMT 2009


On 09-04-11 at 09.11, scribu <scribu at gmail.com> wrote:

>For the intermediate sizes, see wp_get_attachment_metadata(). For the
>URLs, see image_get_intermediate_size().

Thanks, a follow-up question

wp_get_attachment_metadata() requires an ID but I don't 
understand how I can go from the url to the ID. Is there some 
way of doing this translation?

I think this is where I'm missing something.

             jem
-- 
Jan Erik Moström, http://mostrom.eu



More information about the wp-hackers mailing list