<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WpFunc &#187; manager</title>
	<atom:link href="http://wpfunc.com/tag/manager/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Sun, 06 May 2012 02:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Show Post Attachments!</title>
		<link>http://wpfunc.com/wordpress/show-post-attachments.html</link>
		<comments>http://wpfunc.com/wordpress/show-post-attachments.html#comments</comments>
		<pubDate>Sat, 14 Nov 2009 13:19:52 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[manager]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[post attachments]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=290</guid>
		<description><![CDATA[In WordPress you can add attachments to your posts. Your articles be more interesting and shareable. WordPress have attachment manager and you can manage your attachments wtih this manager. Also you can show your attachments with a template code. Let&#8217;s Begin&#8230; Here is the code; Just copy and paste this code to your theme&#8217;s single.php [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In WordPress you can add attachments to your posts. Your articles be more interesting and shareable. WordPress have attachment manager and you can manage your attachments wtih this manager. Also you can show your attachments with a template code. Let&#8217;s Begin&#8230;<span id="more-290"></span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<p style="text-align: justify;">Just copy and paste this code to your theme&#8217;s single.php or what your theme use the file to show posts. After that attachments will be shown.</p>
<pre class="brush: php; title: ; notranslate">// place inside loop
$args = array(
	'post_type' =&gt; 'attachment',
	'numberposts' =&gt; null,
	'post_status' =&gt; null,
	'post_parent' =&gt; $post-&gt;ID
);
$attachments = get_posts($args);
if ($attachments) {
	foreach ($attachments as $attachment) {
		echo apply_filters('the_title', $attachment-&gt;post_title);
		the_attachment_link($attachment-&gt;ID, false);
	}
}</pre>
<p>That&#8217;s All. Have a nice day.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/show-post-attachments.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

