<?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: Automate File Attachments on your WordPress Posts</title>
	<atom:link href="http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/</link>
	<description>Designs by Tony Gray</description>
	<lastBuildDate>Fri, 30 Dec 2011 17:22:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Tony Gray</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-5090</link>
		<dc:creator>Tony Gray</dc:creator>
		<pubDate>Fri, 30 Dec 2011 17:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-5090</guid>
		<description>It looks like Roy already made a plugin out of it. http://royhair.com/docicons-plugin/</description>
		<content:encoded><![CDATA[<p>It looks like Roy already made a plugin out of it. <a href="http://royhair.com/docicons-plugin/" rel="nofollow">http://royhair.com/docicons-plugin/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Design Melbourne</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4676</link>
		<dc:creator>Web Design Melbourne</dc:creator>
		<pubDate>Tue, 27 Sep 2011 02:08:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4676</guid>
		<description>I have just used this on one of our websites, and it just worked straight out of the box.

Fantastic.

Rhank you very much

Could be worth making it into a plugin perhaps?</description>
		<content:encoded><![CDATA[<p>I have just used this on one of our websites, and it just worked straight out of the box.</p>
<p>Fantastic.</p>
<p>Rhank you very much</p>
<p>Could be worth making it into a plugin perhaps?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seungyoun Lee</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4662</link>
		<dc:creator>Seungyoun Lee</dc:creator>
		<pubDate>Tue, 20 Sep 2011 09:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4662</guid>
		<description>That is really AWESOME !!! 
Thank you very much ;)
Usefull Tip!</description>
		<content:encoded><![CDATA[<p>That is really AWESOME !!!<br />
Thank you very much <img src='http://tgrayimages.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Usefull Tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4537</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sun, 31 Jul 2011 13:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4537</guid>
		<description>Tony et al,

Thanks so much for posting this, it&#039;s exactly what I have been looking for. I was wondering if you could help me with a line of code that would be used for my Image.php template.

I need to include the parent post&#039;s attachment icons so that users can easily access all the attachments associated with a single post. I already show the attachment icons on my Single.php template using this snippet you suggested:

echo get_attachment_icons($attachment-&gt;ID);

But now I want to show the exact same attachments on the child (image) post and I&#039;m stuck. I was able to successfully show the parent post image gallery by using this:

echo gallery_shortcode( array(&#039;id&#039; =&gt; $post-&gt;post_parent, &#039;columns&#039; =&gt; 5));

So I was thinking something similar might work for the file attachments, like this:

echo get_attachment_icons($attachment -&gt; post_parent);

But I must be doing something wrong, and I&#039;m not very familiar with PHP yet. Can anyone help me please?</description>
		<content:encoded><![CDATA[<p>Tony et al,</p>
<p>Thanks so much for posting this, it&#8217;s exactly what I have been looking for. I was wondering if you could help me with a line of code that would be used for my Image.php template.</p>
<p>I need to include the parent post&#8217;s attachment icons so that users can easily access all the attachments associated with a single post. I already show the attachment icons on my Single.php template using this snippet you suggested:</p>
<p>echo get_attachment_icons($attachment-&gt;ID);</p>
<p>But now I want to show the exact same attachments on the child (image) post and I&#8217;m stuck. I was able to successfully show the parent post image gallery by using this:</p>
<p>echo gallery_shortcode( array(&#8216;id&#8217; =&gt; $post-&gt;post_parent, &#8216;columns&#8217; =&gt; 5));</p>
<p>So I was thinking something similar might work for the file attachments, like this:</p>
<p>echo get_attachment_icons($attachment -&gt; post_parent);</p>
<p>But I must be doing something wrong, and I&#8217;m not very familiar with PHP yet. Can anyone help me please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johannes</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4519</link>
		<dc:creator>Johannes</dc:creator>
		<pubDate>Fri, 22 Jul 2011 20:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4519</guid>
		<description>You could shorten this code alot if you would introduce another loop iterating through your mime-types.</description>
		<content:encoded><![CDATA[<p>You could shorten this code alot if you would introduce another loop iterating through your mime-types.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Abbott</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4435</link>
		<dc:creator>David Abbott</dc:creator>
		<pubDate>Thu, 30 Jun 2011 11:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4435</guid>
		<description>Tony, thanks for this. It&#039;s great. To add the caption and description just add these two lines with the other AttachmentStrings

$sAttachmentString .= $file-&gt;post_content;
$sAttachmentString .= $file-&gt;post_excerpt;</description>
		<content:encoded><![CDATA[<p>Tony, thanks for this. It&#8217;s great. To add the caption and description just add these two lines with the other AttachmentStrings</p>
<p>$sAttachmentString .= $file-&gt;post_content;<br />
$sAttachmentString .= $file-&gt;post_excerpt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ethan</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4421</link>
		<dc:creator>Ethan</dc:creator>
		<pubDate>Tue, 31 May 2011 16:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4421</guid>
		<description>Awesome tutorial! Thanks!</description>
		<content:encoded><![CDATA[<p>Awesome tutorial! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4304</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 30 Mar 2011 13:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4304</guid>
		<description>Genius!  Worked like a charm.
So helpful.  Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Genius!  Worked like a charm.<br />
So helpful.  Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4128</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Thu, 23 Dec 2010 02:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4128</guid>
		<description>Thanks, It&#039;s a jquery plugin call lazy loader. You can find it &lt;a href=&quot;http://www.appelsiini.net/projects/lazyload&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thanks, It&#8217;s a jquery plugin call lazy loader. You can find it <a href="http://www.appelsiini.net/projects/lazyload" rel="nofollow">here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Wordpress</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4123</link>
		<dc:creator>Erik Wordpress</dc:creator>
		<pubDate>Sat, 11 Dec 2010 10:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4123</guid>
		<description>Thanks! on this site www.wordpressfunctions.com are some good wordpress functions for in the functions.php of your wordpress theme! functions in wordpress has never been easier.</description>
		<content:encoded><![CDATA[<p>Thanks! on this site <a href="http://www.wordpressfunctions.com" rel="nofollow">http://www.wordpressfunctions.com</a> are some good wordpress functions for in the functions.php of your wordpress theme! functions in wordpress has never been easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4097</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Wed, 08 Dec 2010 20:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4097</guid>
		<description>Thank you for providing your knowledge, this has helped me with displaying mime types correctly for post attachments (I was surprised how little clarity there was when searching for solutions on this).

I like the way the images (e.g. icons and avatars) on this page fade in slowly &#039;on-demand&#039; as you scroll down the page. Any tips on how that is done? Does it help reduce data burdens on the page?</description>
		<content:encoded><![CDATA[<p>Thank you for providing your knowledge, this has helped me with displaying mime types correctly for post attachments (I was surprised how little clarity there was when searching for solutions on this).</p>
<p>I like the way the images (e.g. icons and avatars) on this page fade in slowly &#8216;on-demand&#8217; as you scroll down the page. Any tips on how that is done? Does it help reduce data burdens on the page?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David McDonald</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-4076</link>
		<dc:creator>David McDonald</dc:creator>
		<pubDate>Mon, 22 Nov 2010 03:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-4076</guid>
		<description>To show the file title, rather than the filename you can use:

$file_title = wp_get_attachment_link($file-&gt;ID);</description>
		<content:encoded><![CDATA[<p>To show the file title, rather than the filename you can use:</p>
<p>$file_title = wp_get_attachment_link($file-&gt;ID);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3851</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Thu, 26 Aug 2010 20:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3851</guid>
		<description>Hi Tony,
I used your code and made a simple plugin to add the document images. It&#039;s called Docicons and is available as a zip file at http://royhair.com/docicons-plugin/ 
The main difference from your code is that it adds the images inline with the attachment links in the post rather than listing them all at the end.
Hope this is useful.
roy</description>
		<content:encoded><![CDATA[<p>Hi Tony,<br />
I used your code and made a simple plugin to add the document images. It&#8217;s called Docicons and is available as a zip file at <a href="http://royhair.com/docicons-plugin/" rel="nofollow">http://royhair.com/docicons-plugin/</a><br />
The main difference from your code is that it adds the images inline with the attachment links in the post rather than listing them all at the end.<br />
Hope this is useful.<br />
roy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3849</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Thu, 19 Aug 2010 14:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3849</guid>
		<description>Wonderful stuff! This really helps, thank you. I&#039;ve edited the code to remove the br tags so that the icons are right beside the text link which suits me better. 
I think this would be even more fantastic if you made it a plugin :)
thanks again</description>
		<content:encoded><![CDATA[<p>Wonderful stuff! This really helps, thank you. I&#8217;ve edited the code to remove the br tags so that the icons are right beside the text link which suits me better.<br />
I think this would be even more fantastic if you made it a plugin <img src='http://tgrayimages.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen James</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3840</link>
		<dc:creator>Stephen James</dc:creator>
		<pubDate>Thu, 12 Aug 2010 15:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3840</guid>
		<description>This is a great idea. I am implementing a &quot;list attachments&quot; section for each page of a client&#039;s website. My one thought is wouldn&#039;t it be easier to use:

 $args = array(
	&#039;post_type&#039; =&gt; &#039;attachment&#039;,
	&#039;numberposts&#039; =&gt; null,
	&#039;post_status&#039; =&gt; null,
	&#039;post_parent&#039; =&gt; $post-&gt;ID
);

$attachments = get_posts($args);

then a foreach loop with a switch statement:

switch ($attachment-&gt;post_mime_type) {
     case &#039;application/pdf&#039;:
     echo &quot;&quot;;
     break;
     }

and finally the_attachment_link function at the end.

I&#039;d also recommend using the file title and not the file name.</description>
		<content:encoded><![CDATA[<p>This is a great idea. I am implementing a &#8220;list attachments&#8221; section for each page of a client&#8217;s website. My one thought is wouldn&#8217;t it be easier to use:</p>
<p> $args = array(<br />
	&#8216;post_type&#8217; =&gt; &#8216;attachment&#8217;,<br />
	&#8216;numberposts&#8217; =&gt; null,<br />
	&#8216;post_status&#8217; =&gt; null,<br />
	&#8216;post_parent&#8217; =&gt; $post-&gt;ID<br />
);</p>
<p>$attachments = get_posts($args);</p>
<p>then a foreach loop with a switch statement:</p>
<p>switch ($attachment-&gt;post_mime_type) {<br />
     case &#8216;application/pdf&#8217;:<br />
     echo &#8220;&#8221;;<br />
     break;<br />
     }</p>
<p>and finally the_attachment_link function at the end.</p>
<p>I&#8217;d also recommend using the file title and not the file name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hixen</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3839</link>
		<dc:creator>Hixen</dc:creator>
		<pubDate>Wed, 11 Aug 2010 15:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3839</guid>
		<description>Looking for the same thing, please share if you found a way.</description>
		<content:encoded><![CDATA[<p>Looking for the same thing, please share if you found a way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hixen</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3838</link>
		<dc:creator>Hixen</dc:creator>
		<pubDate>Wed, 11 Aug 2010 15:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3838</guid>
		<description>Great work. This was really the thing i was looking for.

One quick question. Now it shows the filename of the attachment, is it possible to show the title instead?
&lt;a href=&quot;filename&quot; rel=&quot;nofollow&quot;&gt;filename&lt;/a&gt; to &lt;a href=&quot;filename&quot; rel=&quot;nofollow&quot;&gt;title&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Great work. This was really the thing i was looking for.</p>
<p>One quick question. Now it shows the filename of the attachment, is it possible to show the title instead?<br />
<a href="filename" rel="nofollow">filename</a> to <a href="filename" rel="nofollow">title</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: victor</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3795</link>
		<dc:creator>victor</dc:creator>
		<pubDate>Mon, 26 Jul 2010 15:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3795</guid>
		<description>Thank you. Saved the day.</description>
		<content:encoded><![CDATA[<p>Thank you. Saved the day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David McDonald</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3785</link>
		<dc:creator>David McDonald</dc:creator>
		<pubDate>Tue, 20 Jul 2010 07:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3785</guid>
		<description>This is a fantastic piece of code. One thing, how would you go about displaying the attachment description or caption rather than displaying the attachment filename?</description>
		<content:encoded><![CDATA[<p>This is a fantastic piece of code. One thing, how would you go about displaying the attachment description or caption rather than displaying the attachment filename?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Pádua</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3775</link>
		<dc:creator>Joel Pádua</dc:creator>
		<pubDate>Mon, 12 Jul 2010 15:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3775</guid>
		<description>hi, forget last comment.

Is it possible to just show a defined name for the file instead the filename.extension?

thank you</description>
		<content:encoded><![CDATA[<p>hi, forget last comment.</p>
<p>Is it possible to just show a defined name for the file instead the filename.extension?</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3773</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Wed, 07 Jul 2010 17:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3773</guid>
		<description>You&#039;d just need to figure out what the mime type is for .enl and you could add that to the function. Upload an .enl using the media attachment in WordPress admin and it should show you the mime type you need.</description>
		<content:encoded><![CDATA[<p>You&#8217;d just need to figure out what the mime type is for .enl and you could add that to the function. Upload an .enl using the media attachment in WordPress admin and it should show you the mime type you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Pádua</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3772</link>
		<dc:creator>Joel Pádua</dc:creator>
		<pubDate>Wed, 07 Jul 2010 17:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3772</guid>
		<description>I need to make an if statment just to inserv some divs within the icon show up justi like:


                    
                    






what condition should i use for knowing that an icon will show up and then print other stuff?
thank you</description>
		<content:encoded><![CDATA[<p>I need to make an if statment just to inserv some divs within the icon show up justi like:</p>
<p>what condition should i use for knowing that an icon will show up and then print other stuff?<br />
thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manas</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3718</link>
		<dc:creator>Manas</dc:creator>
		<pubDate>Thu, 03 Jun 2010 21:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3718</guid>
		<description>We need to upload a different file format, namely .enl, is it possible to do it here on 2.9.2? Help would be appreciated greatly.

Thanks</description>
		<content:encoded><![CDATA[<p>We need to upload a different file format, namely .enl, is it possible to do it here on 2.9.2? Help would be appreciated greatly.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maggy</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3677</link>
		<dc:creator>Maggy</dc:creator>
		<pubDate>Mon, 10 May 2010 16:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3677</guid>
		<description>Hi! Super File! But, i&#039;ve got the attachment two times - one in the text an one at the position of . But ich only want a icon in front of the textlink to the file - does this works too?</description>
		<content:encoded><![CDATA[<p>Hi! Super File! But, i&#8217;ve got the attachment two times &#8211; one in the text an one at the position of . But ich only want a icon in front of the textlink to the file &#8211; does this works too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3668</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Wed, 28 Apr 2010 02:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3668</guid>
		<description>Removed the extra line, Thanks!
I will check on the attachments hanging around after being removed.</description>
		<content:encoded><![CDATA[<p>Removed the extra line, Thanks!<br />
I will check on the attachments hanging around after being removed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Surguy</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3667</link>
		<dc:creator>Max Surguy</dc:creator>
		<pubDate>Wed, 28 Apr 2010 01:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3667</guid>
		<description>Thank you very much for making this available. It does the job fine ! Just two things I&#039;ve noticed : if you add atachments to the post then remove the attachments from the post, they will still appear on the post after you publish it, is there a way to get rid of that ? Also for the audio files you have an extra line of code, please delete $sAttachmentString .= &quot;&quot;;
 for the code to work properly. Thanks</description>
		<content:encoded><![CDATA[<p>Thank you very much for making this available. It does the job fine ! Just two things I&#8217;ve noticed : if you add atachments to the post then remove the attachments from the post, they will still appear on the post after you publish it, is there a way to get rid of that ? Also for the audio files you have an extra line of code, please delete $sAttachmentString .= &#8220;&#8221;;<br />
 for the code to work properly. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Hinson</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3662</link>
		<dc:creator>Joseph Hinson</dc:creator>
		<pubDate>Mon, 26 Apr 2010 15:19:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3662</guid>
		<description>Nice post man. Putting this code in the functions.php file is a really good call, especially when you want to check several file types. Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>Nice post man. Putting this code in the functions.php file is a really good call, especially when you want to check several file types. Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3609</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Sat, 24 Apr 2010 08:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3609</guid>
		<description>I discovered that the shortcode works correctly if you &quot;return&quot; the string but the calling the function from the php does not work with &quot;return&quot; only if you &quot;echo&quot; the string. So note the new code above and call the function with &lt;?php get_attachment_icons($echo=true); ?&gt; and the shortcode will use &quot;return&quot; by default.</description>
		<content:encoded><![CDATA[<p>I discovered that the shortcode works correctly if you &#8220;return&#8221; the string but the calling the function from the php does not work with &#8220;return&#8221; only if you &#8220;echo&#8221; the string. So note the new code above and call the function with < ?php get_attachment_icons($echo=true); ?> and the shortcode will use &#8220;return&#8221; by default.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VAHID</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3608</link>
		<dc:creator>VAHID</dc:creator>
		<pubDate>Sun, 18 Apr 2010 15:29:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3608</guid>
		<description>Tony REALLY THANKS. I need it.</description>
		<content:encoded><![CDATA[<p>Tony REALLY THANKS. I need it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/#comment-3606</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Thu, 15 Apr 2010 14:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.tgrayimages.com/?p=1424#comment-3606</guid>
		<description>Actually it does. This blog is running 2.9.2... Did you make sure and put the php code inside the wordpress loop?</description>
		<content:encoded><![CDATA[<p>Actually it does. This blog is running 2.9.2&#8230; Did you make sure and put the php code inside the wordpress loop?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

