<?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>Glotzfisch.de &#187; Wordpress</title>
	<atom:link href="http://www.glotzfisch.de/category/web-programming/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.glotzfisch.de</link>
	<description>If something does not work out the way you want it to - try something different</description>
	<lastBuildDate>Wed, 26 May 2010 08:43:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WP &gt; Show DB info in Admin Dashboard</title>
		<link>http://www.glotzfisch.de/wp-show-db-info-in-admin-dashboard/</link>
		<comments>http://www.glotzfisch.de/wp-show-db-info-in-admin-dashboard/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 12:12:48 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/?p=96</guid>
		<description><![CDATA[add following lines to dashboard.php

	/* gz show database */
        GLOBAL $table_prefix;
	echo "&#60;p&#62;&#60;b&#62;Database:&#60;/b&#62; ".DB_USER." with prefix \"".$table_prefix."\" on ".DB_HOST."&#60;/p&#62;";

]]></description>
			<content:encoded><![CDATA[<p>add following lines to dashboard.php</p>
<pre>
	/* gz show database */
        GLOBAL $table_prefix;
	echo "&lt;p&gt;&lt;b&gt;Database:&lt;/b&gt; ".DB_USER." with prefix \"".$table_prefix."\" on ".DB_HOST."&lt;/p&gt;";
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/wp-show-db-info-in-admin-dashboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP &gt; Static Page and latest Posts</title>
		<link>http://www.glotzfisch.de/wp-static-page-and-latest-posts/</link>
		<comments>http://www.glotzfisch.de/wp-static-page-and-latest-posts/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 10:23:29 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/wp-static-page-and-latest-posts/</guid>
		<description><![CDATA[I wanted to have a static home page top area and the latest posts below. Somehow, Wordpress does not seem to have that by default. So here is my workaround:
I created a new page template in my theme folder, mytemplate.php (see code below).
Then I created a page named SiteHome using this template and another page [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to have a static home page top area and the latest posts below. Somehow, Wordpress does not seem to have that by default. So here is my workaround:<br />
I created a new page template in my theme folder, <code>mytemplate.php</code> (see code below).<br />
Then I created a page named SiteHome using this template and another page with the default template called &#8220;Home&#8221; that is included by the template. Voilà.<br />
As I don&#8217;t list the pages in the sidebar, they don&#8217;t appear separately. But if you do, you could also include a specific post into the &#8220;static header&#8221;.</p>
<pre>
&lt;?php
/*
Template Name: MEINZTop
*/
?&gt;

&lt;?php get_header(); ?&gt;
&lt;div id="content" class="narrowcolumn"&gt;

&lt;?php
$mypage = get_page_by_title('Home');
# print_r($mypage);
echo "&lt;h1&gt;".$mypage-&gt;post_title."&lt;/h1&gt;";
echo "&lt;p&gt;".$mypage-&gt;post_content."&lt;/p&gt;";
?&gt;

&lt;h1&gt;Latest Posts&lt;/h1&gt;
&lt;?php
$lastposts = get_posts('numberposts=3');
foreach($lastposts as $post) :
setup_postdata($post);
?&gt;
&lt;h3&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" id="post-&lt;?php the_ID(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;small&gt;&lt;?php the_time('l, F jS, Y') ?&gt;&lt;/small&gt;

&lt;?php #the_excerpt(); ?&gt;
&lt;div class="entry"&gt;
&lt;?php
echo substr(get_the_content(),0,256);
if (substr(get_the_content(),256)) {
echo "&lt;br&gt;&lt;a href=\"";
the_permalink();
echo "\"&gt;[...more...]&lt;/a&gt;";
}
?&gt;
&lt;/div&gt;

&lt;?php endforeach; ?&gt;

&lt;/div&gt;
&lt;/div&gt;&lt;!-- page --&gt;

&lt;?php get_sidebar(); ?&gt;
&lt;?php get_footer(); ?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/wp-static-page-and-latest-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
