tags:

views:

23

answers:

1

Is there anything in the wordpress APIs which will show me a list of images used in a post? Or do I need to look through the content of the post to find this?

+1  A: 

well once again i ask a question before thoroughly looking for an answer.

a quick google search turned up the following snippet of code.

$arrImages =& get_children('post_type=attachment&post_mime_type=image&post_parent=' . $iPostID );

i found this over at http://wphackr.com/.

the0ther