<?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>Schnipsel - Code Schnipsel (Snippets) zu Wordpress, PHP, HTML, CSS, jQuery &#187; pages</title>
	<atom:link href="http://schnipsel.davidhellmann.com/tag/pages/feed" rel="self" type="application/rss+xml" />
	<link>http://schnipsel.davidhellmann.com</link>
	<description>Code Schnipsel (Snippets) zu Wordpress, PHP, HTML, CSS, jQuery</description>
	<lastBuildDate>Tue, 08 Mar 2011 00:20:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WordPress &#8211; Eine Seite ausgeben</title>
		<link>http://schnipsel.davidhellmann.com/wordpress/wordpress-eine-seite-ausgeben/68</link>
		<comments>http://schnipsel.davidhellmann.com/wordpress/wordpress-eine-seite-ausgeben/68#comments</comments>
		<pubDate>Wed, 12 Aug 2009 05:46:11 +0000</pubDate>
		<dc:creator>David Hellmann</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[pages]]></category>

		<guid isPermaLink="false">http://schnipsel.davidhellmann.com/?p=68</guid>
		<description><![CDATA[Will man sich zum Beispiel eigene Landingpages bauen oder auch nur die Startseite individuell gestalten braucht man hin und wieder einzelne Seiten die man einf&#252;gen m&#246;chte. Zum Beispiel einen kleinen About Text auf der Startseite oder &#228;hnliches. Mit dem folgenden Code kann man ganz einfach an Hand der Seiten ID diese anzeigen lassen. 1 2 [...]]]></description>
			<content:encoded><![CDATA[<p>
Will man sich zum Beispiel eigene Landingpages bauen oder auch nur die Startseite individuell gestalten braucht man hin und wieder einzelne Seiten die man einf&#252;gen m&#246;chte. Zum Beispiel einen kleinen About Text auf der Startseite oder &#228;hnliches. Mit dem folgenden Code kann man ganz einfach an Hand der Seiten ID diese anzeigen lassen.
</p>
<span id="more-68"></span>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #666666; font-style: italic;">// retrieve one post with an ID of 5</span>
	query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page_id=9'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// set $more to 0 in order to only get the first part of the post</span>
	<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;h2&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h2&gt;
  	<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the full post »'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>


]]></content:encoded>
			<wfw:commentRss>http://schnipsel.davidhellmann.com/wordpress/wordpress-eine-seite-ausgeben/68/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

