[wp-hackers] Is there no get_post_attachments() function(ality)?

Spencer spencer.gurnk at gmail.com
Wed Sep 15 01:48:45 UTC 2010


Check out get_posts(), if you set post_type as attachment, you can
grab them all.

http://codex.wordpress.org/Template_Tags/get_posts#Show_attachments_for_the_current_post

On Tue, Sep 14, 2010 at 9:42 PM, Mike Schinkel
<mikeschinkel at newclarity.net> wrote:
> I just had a need to load a list of attached photos for a post but try as I might I couldn't find a function to retrieve them, a function I would expect to be called something like get_post_attachments().
>
> I'm emailing to see if I overlooked something in core; did I miss a function to do what I was looking for?
>
> -Mike
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list