<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Wordpress: Get Attachment Title and Description</title>
	<atom:link href="http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 03 Mar 2010 17:42:52 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Les James</title>
		<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/comment-page-1/#comment-5257</link>
		<dc:creator>Les James</dc:creator>
		<pubDate>Wed, 18 Nov 2009 17:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.newvibes.com/?p=237#comment-5257</guid>
		<description>Just wanted to say thank you! This worked out perfectly for me.</description>
		<content:encoded><![CDATA[<p>Just wanted to say thank you! This worked out perfectly for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KJ</title>
		<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/comment-page-1/#comment-4338</link>
		<dc:creator>KJ</dc:creator>
		<pubDate>Wed, 02 Sep 2009 13:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.newvibes.com/?p=237#comment-4338</guid>
		<description>No worries Karl, glad you found it useful.

KJ</description>
		<content:encoded><![CDATA[<p>No worries Karl, glad you found it useful.</p>
<p>KJ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/comment-page-1/#comment-4336</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Wed, 02 Sep 2009 12:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.newvibes.com/?p=237#comment-4336</guid>
		<description>Thanks for posting! I was looking for a way to get the attachment caption in a query and managed to use $image-&gt;post_excerpt.</description>
		<content:encoded><![CDATA[<p>Thanks for posting! I was looking for a way to get the attachment caption in a query and managed to use $image-&gt;post_excerpt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Something Interactive &#187; Get Images, Captions &#38; Titles for Images Attached to Posts</title>
		<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/comment-page-1/#comment-3557</link>
		<dc:creator>Something Interactive &#187; Get Images, Captions &#38; Titles for Images Attached to Posts</dc:creator>
		<pubDate>Thu, 23 Jul 2009 15:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.newvibes.com/?p=237#comment-3557</guid>
		<description>[...] borrowed most of my code from here, but I think my example illustrates the concept of retrieving the data needed much [...]</description>
		<content:encoded><![CDATA[<p>[...] borrowed most of my code from here, but I think my example illustrates the concept of retrieving the data needed much [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/comment-page-1/#comment-3556</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 23 Jul 2009 15:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.newvibes.com/?p=237#comment-3556</guid>
		<description>I developed a custom way to get the title caption and description of the image attachment in an example I illustrated on my site:

http://www.somethinginteractive.com/index.php/2009/07/23/get-images-captions-titles-for-images-attached-to-posts/

Cheers,
// mike</description>
		<content:encoded><![CDATA[<p>I developed a custom way to get the title caption and description of the image attachment in an example I illustrated on my site:</p>
<p><a href="http://www.somethinginteractive.com/index.php/2009/07/23/get-images-captions-titles-for-images-attached-to-posts/" rel="nofollow">http://www.somethinginteractive.com/index.php/2009/07/23/get-images-captions-titles-for-images-attached-to-posts/</a></p>
<p>Cheers,<br />
// mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/comment-page-1/#comment-822</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 01 May 2009 14:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.newvibes.com/?p=237#comment-822</guid>
		<description>Hi Jan,
If you look at the code snippet you&#039;ll see that each piece of information for each image attachment is being pushed into an array...

You can get all the information from those arrays, alternatively, instead of pushing the info into arrays for use later, you can just echo out in that loop like so...

foreach ( $NewImages as $NewImage ) {
echo &quot;image id:&quot; + $NewImage-&gt;ID;
echo &quot;image caption:&quot; + $NewImage-&gt;post_excerpt;
echo &quot;image description:&quot; + $NewImage-&gt;post_content;
}

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Hi Jan,<br />
If you look at the code snippet you&#8217;ll see that each piece of information for each image attachment is being pushed into an array&#8230;</p>
<p>You can get all the information from those arrays, alternatively, instead of pushing the info into arrays for use later, you can just echo out in that loop like so&#8230;</p>
<p>foreach ( $NewImages as $NewImage ) {<br />
echo &#8220;image id:&#8221; + $NewImage->ID;<br />
echo &#8220;image caption:&#8221; + $NewImage->post_excerpt;<br />
echo &#8220;image description:&#8221; + $NewImage->post_content;<br />
}</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/comment-page-1/#comment-801</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Wed, 29 Apr 2009 16:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.newvibes.com/?p=237#comment-801</guid>
		<description>Hi ! Could you explain how would you echo the infos ? I&#039;m struggling too to get it working. Thanks !</description>
		<content:encoded><![CDATA[<p>Hi ! Could you explain how would you echo the infos ? I&#8217;m struggling too to get it working. Thanks !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/comment-page-1/#comment-107</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Fri, 13 Mar 2009 21:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.newvibes.com/?p=237#comment-107</guid>
		<description>thanks mate! i was just looking for a way to query my attachments and wasn&#039;t sure how to do it. :)</description>
		<content:encoded><![CDATA[<p>thanks mate! i was just looking for a way to query my attachments and wasn&#8217;t sure how to do it. <img src='http://www.newvibes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.newvibes.com/blog/wordpress-get-attachment-title-and-description/comment-page-1/#comment-61</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 24 Feb 2009 18:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.newvibes.com/?p=237#comment-61</guid>
		<description>Thanks for posting this.  Can you help me out a bit more?  How do you echo this information to the page?</description>
		<content:encoded><![CDATA[<p>Thanks for posting this.  Can you help me out a bit more?  How do you echo this information to the page?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
