<?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>blog.lundscape.com &#187; WordPress Theme</title>
	<atom:link href="http://blog.lundscape.com/tag/wordpress-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lundscape.com</link>
	<description>The Linux Journey</description>
	<lastBuildDate>Tue, 31 Jan 2012 01:55:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Show the Author in WordPress</title>
		<link>http://blog.lundscape.com/2009/06/show-the-author-in-wordpress/</link>
		<comments>http://blog.lundscape.com/2009/06/show-the-author-in-wordpress/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 00:46:25 +0000</pubDate>
		<dc:creator>Zachary Lund</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://blog.lundscape.com/?p=168</guid>
		<description><![CDATA[I had added the code to the default WordPress theme a while back, but when I upgraded, it apparently cleared it out. This time I documented the changes I made to the default theme. Changes must be made to two files in &#8220;wp-content/themes/default&#8221; which is the default theme directory. The first file is &#8220;index.php&#8221; and [...]]]></description>
			<content:encoded><![CDATA[<p>I had added the code to the default WordPress theme a while back, but when I upgraded, it apparently cleared it out. This time I documented the changes I made to the default theme. Changes must be made to two files in &#8220;wp-content/themes/default&#8221; which is the default theme directory.</p>
<p>The first file is &#8220;index.php&#8221; and only requires the removal of the comments around &#8220;the_author()&#8221; portion.</p>
<pre>&lt;small&gt;&lt;?php the_time('F jS, Y') ?&gt; &lt;!-- by &lt;?php the_author() ?&gt; --&gt;&lt;/small&gt;</pre>
<p>The second file is &#8220;single.php&#8221; and requires the addition of a &#8220;the_author()&#8221; block similar to the following.</p>
<pre>on &lt;?php the_time('l, F jS, Y') ?&gt; at &lt;?php the_time() ?&gt; by &lt;?php the_author() ?&gt;</pre>
<p>I achieved these changes with the following sed commands.</p>
<pre>cd wp-content/themes/default
mv index.php index.php.default
sed 's/&lt;!-- by &lt;?php the_author() ?&gt; --&gt;/by &lt;?php the_author() ?&gt;/' index.php.default &gt; index.php
mv single.php single.php.default
sed "s/on &lt;?php the_time('l, F jS, Y') ?&gt; at &lt;?php the_time() ?&gt;/on &lt;?php the_time('l, F jS, Y') ?&gt; at &lt;?php the_time() ?&gt; by &lt;?php the_author() ?&gt;/" single.php.default &gt; single.php</pre>
<p>The better solution is probably to find a theme that does this by default instead of enabling it every time the theme gets updated; however, I haven&#8217;t gone looking for a replacement theme yet.</p>
<p>This has been tested with WordPress 2.7.1.</p>
<p><b>Edit:</b> It is advisable to then set the permissions on those two files back to that of the Apache user:</p>
<pre>chown www-data:www-data index.php single.php</pre>
<p>This will help prevent possible problems during an <a href="http://blog.lundscape.com/2009/06/wordpress-upgrade-problems/">upgrade</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lundscape.com/2009/06/show-the-author-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

