[wp-hackers] Is there no get_post_attachments() function(ality)?
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.
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?
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers