<?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>magbiz &#187; Grafiken</title>
	<atom:link href="http://magbiz.net/t/grafiken/feed/" rel="self" type="application/rss+xml" />
	<link>http://magbiz.net</link>
	<description>Business Magazin</description>
	<lastBuildDate>Tue, 05 Apr 2011 10:34:14 +0000</lastBuildDate>
	<language>en</language>
	<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>Bild auslesen und anzeigen</title>
		<link>http://magbiz.net/tutorials/wordpress/bild-auslesen-und-anzeigen/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://magbiz.net/tutorials/wordpress/bild-auslesen-und-anzeigen/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 13:07:37 +0000</pubDate>
		<dc:creator>[tw]</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Bild auslesen]]></category>
		<category><![CDATA[Funktionen]]></category>
		<category><![CDATA[Grafiken]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://magbiz.net/?p=500</guid>
		<description><![CDATA[Viele Nutzer von WordPress legen ein benutzerdefiniertes Feld an, um Thumbnails auf ihrem WordPress Blog anzuzeigen.
Dieses ist nat&#252;rlich keine schlechte Idee. Aber mit einer einfachen PHP Funktion kann man das erste Bild zu einem Artikel auslesen und entsprechend im Theme anzeigen lassen.
Hierf&#252;r einfach folgenden Code in die functions.php einbinden:
function get_first_image() {
$files = get_children(&#8216;post_parent=&#8217;.get_the_ID().&#8217;&#38;post_type=attachment&#38;post_mime_type=image&#8217;);
if($files) :
$keys = [...]<p><a href="http://magbiz.net/tutorials/wordpress/bild-auslesen-und-anzeigen/">Bild auslesen und anzeigen</a> is a post from: <a href="http://magbiz.net">magbiz</a></p>
]]></description>
		<wfw:commentRss>http://magbiz.net/tutorials/wordpress/bild-auslesen-und-anzeigen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

