<?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: Awesome Image-Attachment Recipes for WordPress</title>
	<atom:link href="http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Tue, 15 May 2012 08:36:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Karl</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-2125</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Fri, 30 Oct 2009 10:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-2125</guid>
		<description>This is a great article, we&#039;re using &lt;code&gt;attachment_toolbox&lt;/code&gt; as a jumping off point for a couple of sites - thanks!

I&#039;ve got one question though. We&#039;re now outputting all gallery images into a list, which we&#039;re then showing in a slider function. All good - means we don&#039;t have to use any shortcodes or insert them into the post.

Occasionally, however, we might want to insert an image into the regular content and not retrieve it into the slider function. Is it somehow possible to modify the attachment_toolbox so it only retrieves those images which are NOT inserted into the actual post? That way, we could upload images for the slider, but still insert images into the post without them ending up in the slider as well.

Any thoughts on this would be much appreciated!</description>
		<content:encoded><![CDATA[<p>This is a great article, we&#8217;re using <code>attachment_toolbox</code> as a jumping off point for a couple of sites &#8211; thanks!</p>
<p>I&#8217;ve got one question though. We&#8217;re now outputting all gallery images into a list, which we&#8217;re then showing in a slider function. All good &#8211; means we don&#8217;t have to use any shortcodes or insert them into the post.</p>
<p>Occasionally, however, we might want to insert an image into the regular content and not retrieve it into the slider function. Is it somehow possible to modify the attachment_toolbox so it only retrieves those images which are NOT inserted into the actual post? That way, we could upload images for the slider, but still insert images into the post without them ending up in the slider as well.</p>
<p>Any thoughts on this would be much appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-2124</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Fri, 30 Oct 2009 05:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-2124</guid>
		<description>Ignore above please ... use this to get a link around the first thumbnail in a post.

&lt;code&gt;$args = array(&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;post_type&#039; =&gt; &#039;attachment&#039;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;order&#039; =&gt; &#039;ASC&#039;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;post_mime_type&#039; =&gt; &#039;image&#039;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;numberposts&#039; =&gt; 1,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;post_status&#039; =&gt; null,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;post_parent&#039; =&gt; $post-&gt;ID&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;);&lt;/code&gt;
&lt;code&gt;$attachments = get_posts($args);&lt;/code&gt;

&lt;code&gt;if ($attachments) {&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;foreach ($attachments as $attachment) {&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;?&gt;&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&lt;? echo wp_get_attachment_image( $attachment-&gt;ID, &#039;full&#039; );	?&gt;&lt;/a&gt;&lt;?&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;}&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Ignore above please &#8230; use this to get a link around the first thumbnail in a post.</p>
<p><code>$args = array(</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'post_type' =&gt; 'attachment',</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'order' =&gt; 'ASC',</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'post_mime_type' =&gt; 'image',</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'numberposts' =&gt; 1,</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'post_status' =&gt; null,</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'post_parent' =&gt; $post-&gt;ID</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>);</code><br />
<code>$attachments = get_posts($args);</code></p>
<p><code>if ($attachments) {</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>foreach ($attachments as $attachment) {</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>?&gt;</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;? echo wp_get_attachment_image( $attachment-&gt;ID, 'full' );	?&gt;&lt;/a&gt;&lt;?</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>}</code><br />
<code>}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-2123</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Fri, 30 Oct 2009 05:10:33 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-2123</guid>
		<description>&lt;code&gt;$args = array(&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;post_type&#039; =&gt; &#039;attachment&#039;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;order&#039; =&gt; &#039;ASC&#039;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;post_mime_type&#039; =&gt; &#039;image&#039;,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;numberposts&#039; =&gt; 1,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;post_status&#039; =&gt; null,&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&#039;post_parent&#039; =&gt; $post-&gt;ID&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;);&lt;/code&gt;
&lt;code&gt;$attachments = get_posts($args);&lt;/code&gt;
&lt;code&gt;if ($attachments) {&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;foreach ($attachments as $attachment) {&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;//echo apply_filters(&#039;the_title&#039;, $attachment-&gt;post_title);&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;?&gt;&lt;/code&gt;

&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;&lt;a href=&quot;&quot;&gt;&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;ID, &#039;thumbnail&#039; );&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;?&gt;&lt;/a&gt;&lt;?&lt;/code&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;code&gt;}&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>$args = array(</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'post_type' =&gt; 'attachment',</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'order' =&gt; 'ASC',</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'post_mime_type' =&gt; 'image',</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'numberposts' =&gt; 1,</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'post_status' =&gt; null,</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>'post_parent' =&gt; $post-&gt;ID</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>);</code><br />
<code>$attachments = get_posts($args);</code><br />
<code>if ($attachments) {</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>foreach ($attachments as $attachment) {</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>//echo apply_filters('the_title', $attachment-&gt;post_title);</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>?&gt;</code></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>&lt;a href=""&gt;</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>ID, 'thumbnail' );</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>?&gt;&lt;/a&gt;&lt;?</code><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>}</code><br />
<code>}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emanoel</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-2122</link>
		<dc:creator>Emanoel</dc:creator>
		<pubDate>Fri, 30 Oct 2009 02:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-2122</guid>
		<description>Ok, I have a list of images generated by function. How can I offset the first image? The offset parameter doenst work in get_children!</description>
		<content:encoded><![CDATA[<p>Ok, I have a list of images generated by function. How can I offset the first image? The offset parameter doenst work in get_children!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Squarecandy</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-1946</link>
		<dc:creator>Squarecandy</dc:creator>
		<pubDate>Thu, 08 Oct 2009 08:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-1946</guid>
		<description>Fantastic post - thanks for all the info.  

One question that doesn&#039;t seem to be addressed in these comments so far:
how does this work on WP pages as opposed to posts.  I would like to use this technique on a custom page template (page.php etc) - everything here talks about index.php, single.php and others that show posts - not pages.

Pages do have image attachments and are part of the image gallery - can anyone point me in the right direction? 

Thanks!</description>
		<content:encoded><![CDATA[<p>Fantastic post &#8211; thanks for all the info.  </p>
<p>One question that doesn&#8217;t seem to be addressed in these comments so far:<br />
how does this work on WP pages as opposed to posts.  I would like to use this technique on a custom page template (page.php etc) &#8211; everything here talks about index.php, single.php and others that show posts &#8211; not pages.</p>
<p>Pages do have image attachments and are part of the image gallery &#8211; can anyone point me in the right direction? </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Chapman</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-1807</link>
		<dc:creator>Eric Chapman</dc:creator>
		<pubDate>Wed, 30 Sep 2009 07:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-1807</guid>
		<description>Thanks Jeff! That gave me what I needed. I was able to boil it down just to echoing &lt;code&gt;$attachment-&gt;post_excerpt&lt;/code&gt; and that did the trick. I&#039;m still feeling my way through PHP and Wordpress and this kind of info is much appreciated.</description>
		<content:encoded><![CDATA[<p>Thanks Jeff! That gave me what I needed. I was able to boil it down just to echoing <code>$attachment-&gt;post_excerpt</code> and that did the trick. I&#8217;m still feeling my way through PHP and WordPress and this kind of info is much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manS</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-1796</link>
		<dc:creator>manS</dc:creator>
		<pubDate>Tue, 29 Sep 2009 09:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-1796</guid>
		<description>how i can attach an image to a specific post without without need inserted to that post...

Then, i will use above attachment technique to call it... and will more managed..

it not practical if we must [insert to post] uploaded image to make attachment....

Any plugin or tricks for this.... to make attachment..???
TQ in advance...</description>
		<content:encoded><![CDATA[<p>how i can attach an image to a specific post without without need inserted to that post&#8230;</p>
<p>Then, i will use above attachment technique to call it&#8230; and will more managed..</p>
<p>it not practical if we must [insert to post] uploaded image to make attachment&#8230;.</p>
<p>Any plugin or tricks for this&#8230;. to make attachment..???<br />
TQ in advance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-1779</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Sat, 26 Sep 2009 20:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-1779</guid>
		<description>Check out this post: http://tinyurl.com/ya6ojhj</description>
		<content:encoded><![CDATA[<p>Check out this post: <a href="http://tinyurl.com/ya6ojhj" rel="nofollow">http://tinyurl.com/ya6ojhj</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Chapman</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-1773</link>
		<dc:creator>Eric Chapman</dc:creator>
		<pubDate>Sat, 26 Sep 2009 01:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-1773</guid>
		<description>This is incredibly usefull..

Is there a way to make it return the text of an image&#039;s caption, as set in Wordpress&#039; media library?</description>
		<content:encoded><![CDATA[<p>This is incredibly usefull..</p>
<p>Is there a way to make it return the text of an image&#8217;s caption, as set in WordPress&#8217; media library?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dalton</title>
		<link>http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/#comment-1734</link>
		<dc:creator>Dalton</dc:creator>
		<pubDate>Mon, 21 Sep 2009 16:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=458#comment-1734</guid>
		<description>Amazing post. This helped me figure out something I&#039;ve been pulling my hair out over for days. 

I am creating a gallery that does not show the thumbnails - instead it just includes a link to the first image (by menu order) at the bottom of the post. I figured that it would be easy enough to do, but this tutorial was the only way it would work. Thank you!</description>
		<content:encoded><![CDATA[<p>Amazing post. This helped me figure out something I&#8217;ve been pulling my hair out over for days. </p>
<p>I am creating a gallery that does not show the thumbnails &#8211; instead it just includes a link to the first image (by menu order) at the bottom of the post. I figured that it would be easy enough to do, but this tutorial was the only way it would work. Thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

