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

Paul paul at codehooligans.com
Wed Sep 15 01:49:29 UTC 2010


On Sep 14, 2010, at 9:42 PM, Mike Schinkel 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().
> 

Well, I generally use get_children http://codex.wordpress.org/Function_Reference/get_children or get_posts with all the needed arguments. 

P-



More information about the wp-hackers mailing list