<?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>just4freaks.de &#187; attachment</title>
	<atom:link href="http://www.just4freaks.de/tag/attachment/feed" rel="self" type="application/rss+xml" />
	<link>http://www.just4freaks.de</link>
	<description>Typo3 München Wordpress Starnberg  Freelancer</description>
	<lastBuildDate>Tue, 25 Oct 2011 20:40:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>WordPress Attachments (Dateianhänge)</title>
		<link>http://www.just4freaks.de/wordpress/wordpress-attachments-dateianhaenge</link>
		<comments>http://www.just4freaks.de/wordpress/wordpress-attachments-dateianhaenge#comments</comments>
		<pubDate>Fri, 27 Nov 2009 08:00:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[attachment]]></category>

		<guid isPermaLink="false">http://www.just4freaks.de/?p=687</guid>
		<description><![CDATA[Hier ein einfacher Code-Schnipsel, um Attachments (Dateianhänge) in einem WordPress-Theme anzuzeigen. Fügt einfach den folgenden Code innerhalb eines WordPress Loops ein und deine Dateianhänge werden angezeigt. Desweiteren ist es auch möglich den Code irgendwo in die post.php Datei einzufügen. Credit: wprecipes.com]]></description>
			<content:encoded><![CDATA[<p><img class="img-border mb5" title="Wordpress Attachments" src="http://www.just4freaks.de/wp-content/uploads/2009/02/wp-logo1.png" alt="Wordpress Attachments" width="403" height="158" /><br />
Hier ein einfacher Code-Schnipsel, um Attachments (Dateianhänge) in einem WordPress-Theme anzuzeigen.</p>
<pre class="brush: php; title: ; notranslate">
$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>Fügt einfach den folgenden Code innerhalb eines WordPress Loops ein und deine Dateianhänge werden angezeigt.<br />
Desweiteren ist es auch möglich den Code irgendwo in die post.php Datei einzufügen.</p>
<p>Credit: <a href="http://www.wprecipes.com/how-to-show-wordpress-post-attachments">wprecipes.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.just4freaks.de/wordpress/wordpress-attachments-dateianhaenge/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

