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

Jordi Canals jcanals at alkivia.com
Sat Apr 11 08:35:16 GMT 2009


2009/4/11 Jan Erik Moströ <lists at mostrom.pp.se>:
> 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
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


To get the post atachements (images) see get_children().
http://codex.wordpress.org/Function_Reference/get_children
-- 
Jordi Canals [Txanny]
http://alkivia.org


More information about the wp-hackers mailing list