<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Digging into WordPress</title>
	
	<link>http://digwp.com</link>
	<description>Learn how to take your WordPress skills to the next level.</description>
	<lastBuildDate>Tue, 10 Nov 2009 17:44:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/DiggingIntoWordpress" type="application/rss+xml" /><feedburner:emailServiceId>DiggingIntoWordpress</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>How to Secure Your New WordPress Installation</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/GjPNLizCXNU/</link>
		<comments>http://digwp.com/2009/11/how-to-secure-your-new-wordpress-installation/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 19:07:30 +0000</pubDate>
		<dc:creator>Jeff Starr</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=903</guid>
		<description><![CDATA[One of the best ways to ensure strong security for your WordPress-powered site is to secure its foundations during the installation process. Of course these techniques can be implemented at any point during the life of your site, but stetting them before the game starts prevents headaches and saves time. We&#8217;ll start with the WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>One of the best ways to ensure strong security for your WordPress-powered site is to secure its foundations during the installation process. Of course these techniques can be implemented at any point during the life of your site, but stetting them <strong>before the game starts</strong> prevents headaches and saves time. We&rsquo;ll start with the WordPress database..</p>
<h3>Step 1 &#8211; Setting up a secure database</h3>
<p>Because the database is associated with virtually everything you do on your site, it is best to perform any modifications before configuring your options, installing plugins, and adding options. During the installation process, there are some effective ways of increasing the overall security of your WordPress site.</p>
<p><span id="more-903"></span></p>
<p>One of the first things that you can do to bolster security is to setup a proper database, user, and password. First, create the table that will be used for your WordPress installation:</p>
<pre><code>CREATE DATABASE `wordpress`;</code></pre>
<p>Now we need a user to go with that database. The key here is to create a user with only the required permissions. Enter the following SQL query to create a user that will have access only to the <code>wordpress</code> from the local server:</p>
<pre><code>GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON wordpress.* TO 'wpuser'@'localhost'
IDENTIFIED BY 'password';</code></pre>
<p>By requiring that the user access the database from the local server only, we mitigate the possibility of remote database attacks. Further, by granting the user access to only the <code>wordpress</code> database, we ensure that other databases will remain safe should an attacker gain access.</p>
<p>Once the database and user have been setup, install WordPress as normal and continue with the next step.</p>
<h3>Step 2 &#8211; Setting up a secure configuration file</h3>
<p>There are two things we want to do with the <code>wp-config.php</code> file: implement Authentication Unique Keys and change the default database prefix. Let&rsquo;s do it..</p>
<h4>Implement Authentication Unique Keys</h4>
<p>Directly after your MySQL database credentials in the <code>wp-config.php</code> file, you have the option of specifying a set of Authentication Unique Keys. These keys improve WordPress&rsquo; authentication system, providing strong security to your site. It is highly recommended that you take advantage of this feature.</p>
<pre><code>/**#@+
 * Authentication Unique Keys.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
/**#@-*/</code></pre>
<p>To do so, visit the official <a href="https://api.wordpress.org/secret-key/1.1/" title="WordPress.org secret-key service">secret-key generation service</a> and paste the results into your <code>config.php</code> file (replace the four lines beginning with &ldquo;<code>define</code>&rdquo;).</p>
<p>While you are you setting up the WordPress configuration file, you also may want to go ahead and <a href="http://digwp.com/2009/07/optimize-wordpress-performance-with-the-wp-config-php-file/" title="Optimize WordPress Performance with the wp-config.php File">optimize performance</a> and implement some other choice <a href="http://digwp.com/2009/06/wordpress-configuration-tricks/" title="WordPress Configuration Tricks">configuration tricks</a>.</p>
<h4>Change the default database table prefix</h4>
<p>While in your <code>wp-config.php</code> file, take a few moments to change your default database table prefix. By default, it&rsquo;s &ldquo;<code>wp_</code>&rdquo;, but this is a well-known fact of which attackers and automated scripts take full advantage. By changing the table prefix to something unknown/random, you are using security through obscurity to help mitigate <acronym title="Structured Query Language">SQL</acronym>-injection threats.</p>
<pre><code>/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each a unique
 * prefix. Only numbers, letters, and underscores please!
 */
$table_prefix = 'wp_';</code></pre>
<p>In your <code>wp-config.php</code> file, locate the above lines and change the table prefix to something random or difficult to guess. I like to include the letters &ldquo;<code>wp</code>&rdquo; within the new prefix to help me identify tables specific to WordPress. For example, I might change it to something like, &ldquo;<code>wp_i337</code>&rdquo;.</p>
<h3>Step 3 &#8211; Setting up a secure administration</h3>
<p>Once you have finished with your database and configuration file, it&rsquo;s time to setup a secure WordPress Admin area. We can do this by changing the default Admin username and protecting the <code>wp-admin</code> directory.</p>
<h4>changing the default Admin username</h4>
<p>By default, all WordPress installations have a default Admin username of, creatively enough, &ldquo;admin&rdquo;. As with the default database prefix, this fact is well-known to attackers, who target the admin account with password brute-force attacks. Thus, changing the username of your Admin account will help mitigate this potential vulnerability. To do so, execute the following <acronym title="Structured Query Language">SQL</acronym> query on your WordPress database via phpMyAdmin:</p>
<pre><code>UPDATE wp_users SET user_login = 'admin', user_login = 'digwp';</code></pre>
<p>Your default Admin username is now changed to whatever you specified in the query. In this example, your new username will be &ldquo;digwp&rdquo;, so you will probably want to change it to something that is more difficult to guess.</p>
<p>Additionally, make sure that the password for the Admin account is as strong as possible. Use a random mix of uppercase and lowercase letters, and throw in a few underscores and numbers for good measure.<br />
 </p>
<h4>Protecting the wp-admin directory</h4>
<p>All of the administrative files for your WordPress site are contained in the <code>wp-admin</code> directory. By protecting this directory against unauthorized access, we greatly strengthen the security of our site. Depending on your particular needs, there are at least two ways to go about doing this. Let&rsquo;s look at each of them.</p>
<p><strong>Allow open access only to specific addresses</strong></p>
<p>This method uses a few choice <acronym title="Hypertext Access">HTAccess</acronym> directives placed in your site&rsquo;s root <code>.</code><code>htaccess</code> file:</p>
<pre><code># SECURE WP-ADMIN
&lt;FilesMatch "*.*"&gt;
 Order Deny,Allow
 Deny from all
 Allow from 123.456.789
&lt;/FilesMatch&gt;</code></pre>
<p>Once in place, this code will deny access to all visits from any <acronym title="Internet Protocol">IP</acronym> address that is not listed. Simply edit the &ldquo;<code>Allow from</code>&rdquo; line with your actual address, and create additional lines for multiple <acronym title="Internet Protocol">IP</acronym>s. You can then check that it&rsquo;s working by visiting your Admin area via proxy service. This is an effective way of protecting your <code>wp-admin</code> directory, but you may prefer using a password-based method instead..</p>
<p><strong>Password-protect</strong></p>
<p>Another option for securing your Admin area involves implementing secondary password protection via basic <acronym title="Hypertext Transfer Protocol">HTTP</acronym> authentication. This is an excellent way to lock things down while still enabling access by anyone with the password from anywhere on the Web. To set it up, we need to create a text file with your desired username/password, and then require the username and password via <code>.</code><code>htaccess</code> file.</p>
<p>For the username/password text file, use a <a href="http://www.4webhelp.net/us/password.php" title="4WebHelp's online .htpasswd encryption tool">password-generation service</a> and paste the results into a file named &ldquo;<code>.</code><code>htpasswd</code>&rdquo; (without the quotes!) and place it in a secure location on your server, preferably above your &#8220;public_html&#8221; or root-web directory.</p>
<p>Once the password file is in place, create an <code>.</code><code>htaccess</code> file for your <code>wp-admin</code> directory and add the following code:</p>
<pre><code># SECURE LOGIN PAGE
&lt;IfModule mod_auth.c&gt;
 AuthUserFile /full/path/.htpasswd
 AuthType Basic
 AuthName "Password Required!"
 Require username
&lt;/IfModule&gt;</code></pre>
<p>After editing the username and full server path to your password file, you&rsquo;re good to go. Make sure to test that everything is working before cracking a beer.</p>
<h4>Important note about protecting wp-admin</h4>
<p>As you implement this method, keep in mind that the <code>wp-admin</code> directory is used by a number of plugins, scripts, and even users. For example, if you allow open registration to your visitors, they will be unable to access the registration pages if your admin directory is blocked. Another good example is the <a href="http://wordpress.org/extend/plugins/subscribe-to-comments/">Subscribe to Comments</a> plugin, which provides an admin page through which users may unsubscribe to comments. This ain&rsquo;t gonna work if they can&rsquo;t access the admin area.</p>
<h3>Just the beginning..</h3>
<p>Of course, when it comes to the security of your WordPress site, these techniques are merely the beginning. As you continue in your WordPress travels, you will discover many, many more ways to increase the security of your site. By implementing the methods presented in this article during the setup process, you will be strengthening the security of your site&rsquo;s foundation, providing yourself a solid platform on which to build.</p>
<p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/11/how-to-secure-your-new-wordpress-installation/">Permalink</a> | <a href="http://digwp.com/2009/11/how-to-secure-your-new-wordpress-installation/#comments">10 comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/11/how-to-secure-your-new-wordpress-installation/&title=How to Secure Your New WordPress&nbsp;Installation">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/security/" title="View all posts in Security" rel="category tag">Security</a> | Tagged: <a href="http://digwp.com/tag/database/" rel="tag">database</a>, <a href="http://digwp.com/tag/security/" rel="tag">Security</a></small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/GjPNLizCXNU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/11/how-to-secure-your-new-wordpress-installation/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://digwp.com/2009/11/how-to-secure-your-new-wordpress-installation/</feedburner:origLink></item>
		<item>
		<title>You Don’t Need Any Plugins to Stop Comment Spam</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/E0Zbb48V6vk/</link>
		<comments>http://digwp.com/2009/11/dont-need-plugins-to-stop-comment-spam/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 04:18:58 +0000</pubDate>
		<dc:creator>Jeff Starr</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=858</guid>
		<description><![CDATA[I think one of the biggest WordPress myths is that you need a bunch of plugins to control comment spam. Pretty much all of the posts out there on preventing WordPress comment spam are telling you to install some list of &#8220;must-have&#8221; anti-spam plugins. Some authors insist that you need only a few &#8220;choice&#8221; plugins, [...]]]></description>
			<content:encoded><![CDATA[<p>I think one of the biggest WordPress myths is that you need a bunch of plugins to control comment spam. Pretty much all of the posts out there on preventing WordPress comment spam are telling you to install some list of &ldquo;must-have&rdquo; anti-spam plugins. Some authors insist that you need only a <em>few</em> &ldquo;choice&rdquo; plugins, while others advise you to load up on <em>everything</em> you can get your hands on. Such advice is all well-intentioned, I&rsquo;m sure, but it&rsquo;s all based on the assumption that plugins are actually <em>necessary</em> to control comment spam. <strong>They&rsquo;re not</strong>. WordPress is well-equipped to handle the job all by itself. Plugins may provide <em>additional</em> anti-spam functionality, but they are by no means <em>essential</em> to running a spam-free site.</p>
<p><span id="more-858"></span></p>
<h3>Not even Akismet..</h3>
<p>&ldquo;Sure,&rdquo; you are thinking, &ldquo;you don&rsquo;t need any plugins <em>except</em> for Akismet.&rdquo; I mean, you definitely need <em>that</em> plugin, right? After all, it&rsquo;s <em>included</em> with WordPress, so it&rsquo;s <em>got</em> to be important. <em>Umm</em>, not so much. Yes, there are certain blogs that would probably be wise to take advantage of the additional spam-protection that Akismet might provide, but for 99% of the sites out there, it really isn&rsquo;t necessary.</p>
<h3>WordPress is <strong>strong</strong> enough..</h3>
<p>I think one of the most <em>underrated</em> strengths of WordPress is its built-in anti-spam functionality. With an ounce of knowledge and a pound of forethought, you can configure your WordPress Discussion settings to act as a powerful and effective defense against the evil forces of spam. No plugins required! Let&rsquo;s look at WordPress&rsquo; anti-spam tools and see why they&rsquo;re all you need for a spam-free site..</p>
<dl>
<dt>Default article settings</dt>
<dd>First up, consider your default article settings. If comments <em>aren&rsquo;t</em> enabled, of course you know that you don&rsquo;t need Akismet or any other anti-spam plugin for that matter. If comments <em>are</em> enabled, you can cut out a significant portion of spam by simply disallowing pingbacks and trackbacks. By clicking a single checkbox, all of that crap that comes rolling in as trackback spam will stop. That&rsquo;s a huge step right there, and it will eliminate every plugin that has anything to do with displaying or controlling ping/trackbacks.</dd>
<dd><img src="http://digwp.com/wp-content/blog-images/discussion-settings-08.gif" alt="[ WordPress Default Comment Settings ]" /></dd>
<dt>Comment author must fill out name and e-mail</dt>
<dd>Another smart move, although I think most sites do this one already. By requiring your commentators to at least fill out these two fields (even if it is just dummy data most of the time), you brush off all of those lazy spammers who are picking up the easy ground fruit. Most <em>legitimate</em> commentators don&rsquo;t mind filling in this info because they usually have something they want to say. Lazy spammers, not so much.</dd>
<dt>Users must be registered and logged in to comment</dt>
<dd>If possible given the specific goals of your site, requiring users to log in before commenting is an extremely effective way of preventing comment spam. Although requiring registration will stop a lot of <em>legit</em> comments as well, it is a powerful deterrent to lazy spammers and completely stops automated scripts. Sure, you may still get some trolls stinking up the place, but you would be getting those anyway. Plus, if they&rsquo;re registered, it makes it easier to deal with them.</dd>
<dd><img src="http://digwp.com/wp-content/blog-images/discussion-settings-07.gif" alt="[ WordPress Comment User Settings ]" /></dd>
<dt>Automatically close comments on articles older than XX days</dt>
<dd>This is my favorite WordPress anti-spam feature. For a long time, we needed a plugin to get this done, but now that it is built into WordPress, <em>everyone</em> should be using it. Here at <a href="http://digwp.com/" title="DiW!">Digging into WordPress</a>, we close comments on old posts after 90 days, which seems to be just about the right amount of time. Anything longer than that, and your posts begin to get targeted by spammers and automated spam scripts. Especially if your posts tend to do well and build up a lot of page rank, they will be prime targets for spam as time rolls on.</dd>
<dt>Break comments into pages with XX comments per page</dt>
<dd>This one&rsquo;s not as obvious, but it is also a great way to reduce the incentive to spam your site. Spammers target <em>strong</em> pages for their junk, so by breaking your comments into pages of, say, 20 comments each, you get the best comments on the first page (the same page as the article), and then the typically declining-quality comments on subsequent non-ranking pages. Just make sure you are using meta canonical tags to keep the juice where it should be.</dd>
<dd><img src="http://digwp.com/wp-content/blog-images/discussion-settings-06.gif" alt="[ WordPress Comment Display Settings ]" /></dd>
<dt>E-mail me whenever..</dt>
<dd>Unless your site is literally flooded with comments on every post, getting email alerts for new comments is an excellent way to kill any spam nonsense that gets through. I have done this at <a href="http://perishablepress.com/" title="Perishable Press: Digital Design and Dialogue">Perishable Press</a> for four years now, and you would be hard-pressed to find even <em>one</em> spam comment anywhere on the site.</dd>
<dd><img src="http://digwp.com/wp-content/blog-images/discussion-settings-05.gif" alt="[ WordPress Comment Notification Settings ]" /></dd>
<dt>Before a comment appears an administrator must always approve the comment</dt>
<dd>This could get kind of labor-intensive, but it is a 100%-guaranteed way of completely eliminating spam without using any plugins whatsoever. Zero. Nada. Nil. If you are one of the many millions whose blog receives fairly few comments, this method will keep your comments squeaky clean.</dd>
<dt>Comment author must have a previously approved comment</dt>
<dd>A super-effective strategy that is not as labor-intensive as moderating all comments and not as restrictive as requiring registration. The idea here is that you get a chance to &ldquo;meet&rdquo; each one of your commentators and leave the door open only for the good guys. This technique drastically cuts back on human spam, and virtually eliminates automated spam (unless you don&rsquo;t catch it the first time).</dd>
<dd><img src="http://digwp.com/wp-content/blog-images/discussion-settings-04.gif" alt="[ WordPress Comment Approval Settings ]" /></dd>
<dt>Hold a comment in the queue if it contains XX or more links</dt>
<dd>Lots of comment spam is just crawling with links. A few mindless words and then BAM &#8212; they drop in a few hundred links. Some of the more subtle spammers are less obvious, but still have to unload their payload somehow, so they usually integrate a couple of links within some not-so-carefully crafted text. You know what I&rsquo;m talking about. You definitely want to moderate anything with more than like two or three links. This trick is great for catching some of the craftier spam maggots.</dd>
<dd><img src="http://digwp.com/wp-content/blog-images/discussion-settings-03.gif" alt="[ WordPress Comment Link Settings ]" /></dd>
<dt>Comment Moderation Blacklist and Spam Blacklist</dt>
<dd> A finely tuned WordPress Blacklist list eliminates the need for <em>many</em> types of plugins, scripts, and third-party blacklists. Any words, characters, or IP addresses included in either the Moderation or Spam Blacklist will be used to innoculate your site against any matching comments. Granted, it takes a bit of persistence to build up a good list, but once you do, it is very difficult for spammers to get around it. Note that, unless you are absolutely sure, you should probably stick with the Moderation Blacklist (regular expressions are powerful things!).</dd>
<dd><img src="http://digwp.com/wp-content/blog-images/discussion-settings-02.gif" alt="[ WordPress Comment Moderation Blacklist ]" /></dd>
<dd><img src="http://digwp.com/wp-content/blog-images/discussion-settings-01.gif" alt="[ WordPress Comment SPam Blacklist ]" /></dd>
</dl>
<p>All of these great anti-spam features are like having fifty plugins already built-in to WordPress. With them, you can configure a powerful anti-spam strategy for just about any type of site without <em>any</em> plugins &#8212; not even Akismet.</p>
<h3>Why not just use a bunch of plugins instead?</h3>
<p>Because you don&rsquo;t <em>have</em> to. Plugins require maintenance, frequent updating, etc. Every upgrade of WordPress and/or your plugins opens the door to possible issues and conflicts. Further, plugins consume valuable server resources, affecting the <strong>performance</strong> and consistency of your site. In general, the fewer plugins you have, the easier and more efficient things are going to be. I guess my feeling is, try to take the &ldquo;zen&rdquo; approach as much as possible &#8212; if something isn&rsquo;t absolutely necessary, don&rsquo;t bother with it. More and more, I am realizing that anti-spam plugins simply aren&rsquo;t needed to run an effective and spam-free site.</p>
<p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/11/dont-need-plugins-to-stop-comment-spam/">Permalink</a> | <a href="http://digwp.com/2009/11/dont-need-plugins-to-stop-comment-spam/#comments">39 comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/11/dont-need-plugins-to-stop-comment-spam/&title=You Don&#8217;t Need Any Plugins to Stop Comment&nbsp;Spam">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/plugins/" title="View all posts in Plugins" rel="category tag">Plugins</a>,  <a href="http://digwp.com/category/security/" title="View all posts in Security" rel="category tag">Security</a> | Tagged: <a href="http://digwp.com/tag/comments/" rel="tag">comments</a>, <a href="http://digwp.com/tag/spam/" rel="tag">spam</a></small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/E0Zbb48V6vk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/11/dont-need-plugins-to-stop-comment-spam/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		<feedburner:origLink>http://digwp.com/2009/11/dont-need-plugins-to-stop-comment-spam/</feedburner:origLink></item>
		<item>
		<title>Free Breast Cancer Theme</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/T8FuD7jkIQ8/</link>
		<comments>http://digwp.com/2009/11/free-breast-cancer-theme/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 03:20:38 +0000</pubDate>
		<dc:creator>Jeff Starr</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=894</guid>
		<description><![CDATA[Tim Haslam shares a very nice theme called &#8220;One Day At A Time&#8221; designed to promote awareness of breast cancer. Check out the demo, grab yourself a free copy, and support a good cause.
Direct Link to Article &#8212; Permalink on DiWLike the article? Get the book!Learn how to take your web design skills to the [...]]]></description>
			<content:encoded><![CDATA[<p>Tim Haslam shares a very nice theme called &#8220;One Day At A Time&#8221; designed to promote awareness of breast cancer. Check out the demo, grab yourself a free copy, and support a good cause.</p>
<p><small><a href="http://www.onedayatatimetheme.com/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://digwp.com/2009/11/free-breast-cancer-theme/" title="Permalink to post on DiW">Permalink on DiW</a></small></p><p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/11/free-breast-cancer-theme/">Permalink</a> | <a href="http://digwp.com/2009/11/free-breast-cancer-theme/#comments">Comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/11/free-breast-cancer-theme/&title=Free Breast Cancer&nbsp;Theme">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/links/" title="View all posts in Links" rel="category tag">Links</a> | Tagged: </small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/T8FuD7jkIQ8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/11/free-breast-cancer-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.onedayatatimetheme.com/</feedburner:origLink></item>
		<item>
		<title>WP Typo Abound!</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/yfJl82g6e-k/</link>
		<comments>http://digwp.com/2009/11/wp-typo-abound/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 19:14:57 +0000</pubDate>
		<dc:creator>Chris Coyier</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=600</guid>
		<description><![CDATA[The month of November is National Novel Writing Month (or #NaNoWriMo). Joel Goodman is participating and thought that the WP Typo theme would be a good fit for it.  Joel has expanded upon theme, offering an options page with various different typography choices, better integrated site registration, and some design tweaks. It is now [...]]]></description>
			<content:encoded><![CDATA[<p>The month of November is National Novel Writing Month (or #NaNoWriMo). Joel Goodman <a href="http://nanowrimo.thegoodmanblog.com/">is participating</a> and thought that the <a href="http://digwp.com/2009/06/free-theme-wp-typo/">WP Typo theme </a>would be a good fit for it.  Joel has expanded upon theme, offering an options page with various different typography choices, better integrated site registration, and some design tweaks. It is now called <a href="http://joel.thegoodmanblog.com/2009/10/30/modern-linguist/">Modern Linguist</a> and is available on his site for free download.</p>
<p>There has been a few other things people have done for WP Typo, so I thought now would be a good opportunity to share them.</p>
<p><span id="more-600"></span></p>
<ul>
<li>Grib has added i18n support (.mo files) and a Russian translation <a href="http://www.wp-ru.ru/themes/2009/08/27/russkij-perevod-originalnoj-sverxlegkoj-temy-wptypo/">here</a>.</li>
<li>Jussi Linkola has released a Finish version <a href="http://jml.kapsi.fi/jussi/2009/09/04/wp-typo-fi-wordpress-teema/">here</a>.</li>
<li>Mijk has released a patch for the theme that includes widgetization and the use of Cufon to show the font jGaramond. (Regular Garamond isn&#8217;t really one of the &#8220;web safe&#8221; fonts). That patch is available <a href="http://wp.podsmrkem.com/wptypo-widget+cufon-patch.zip">here</a>.</li>
<li>Hassan Derakhshandeh has released an RTL (right to left text) version <a href="http://tween.ir/blog/?p=30">here</a>.</li>
</ul>
<p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/11/wp-typo-abound/">Permalink</a> | <a href="http://digwp.com/2009/11/wp-typo-abound/#comments">Comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/11/wp-typo-abound/&title=WP Typo&nbsp;Abound!">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/theme/" title="View all posts in Theme" rel="category tag">Theme</a> | Tagged: <a href="http://digwp.com/tag/layout/" rel="tag">layout</a>, <a href="http://digwp.com/tag/links/" rel="tag">Links</a>, <a href="http://digwp.com/tag/theme/" rel="tag">Theme</a></small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/yfJl82g6e-k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/11/wp-typo-abound/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://digwp.com/2009/11/wp-typo-abound/</feedburner:origLink></item>
		<item>
		<title>Custom Fields for HTML Post Titles</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/Bn5xqryLqSk/</link>
		<comments>http://digwp.com/2009/10/custom-fields-for-html-post-titles/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 16:28:46 +0000</pubDate>
		<dc:creator>Chris Coyier</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[custom-fields]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=833</guid>
		<description><![CDATA[You don&#8217;t want to go putting HTML tags directly into post titles. It might show up OK on your own site, but it can be problematic. For example, your titles through RSS will show the tags as next, not render them. I was wishing for a plugin to handle this better, but until then, here [...]]]></description>
			<content:encoded><![CDATA[<p>You don&#8217;t want to go putting HTML tags directly into post titles. It might show up OK on your own site, but it can be problematic. For example, your titles through RSS will show the tags as next, not render them. I was wishing for a plugin to handle this better, but until then, here is almost-as-simple way to go about it.</p>
<p><span id="more-833"></span></p>
<h3>1. Enter title without HTML</h3>
<p><img src="http://digwp.com/wp-content/blog-images/normal-title.png" width="590" height="130" alt="" title="" /></p>
<h3>2. Create a custom field for the title <em>with</em> HTML</h3>
<p><img src="http://digwp.com/wp-content/blog-images/html-title-custom-field.png" width="585" height="84" alt="" title="" /></p>
<h3>3. Output custom field on pages you want the HTML</h3>
<p>For example, on the single.php page where you would have used </p>
<pre><code>&lt;h1&gt;&lt;php the_title(); ?&gt;&lt;/h1&gt;</code></pre>
<p>Now you use</p>
<pre><code>&lt;?php

   $html_title = get_post_meta($post-&gt;ID, "HTML_title", true);

   if ($html_title) { ?&gt;
                
      &lt;h1&gt;&lt;?php echo $html_title; ?&gt;&lt;/h1&gt;
                
   &lt;?php } else { ?&gt;
                
      &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
                    
&lt;?php } ?&gt;</code></pre>
<p>This checks and sees if that custom field is set. If it is, it outputs that. If not, it uses the regular function.</p>
<p>Because the RSS templates use the regular the_title() function, your titles are same from being weirdified in feed readers.</p>
<h3>Example</h3>
<p>The example used here was from <a href="http://chriscoyier.net/2009/10/26/grooveshark-on-the-iphone/">my new blog layout</a>, where I&#8217;m trying to have as much control as possible for doing interesting post layouts.</p>
<p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/10/custom-fields-for-html-post-titles/">Permalink</a> | <a href="http://digwp.com/2009/10/custom-fields-for-html-post-titles/#comments">14 comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/10/custom-fields-for-html-post-titles/&title=Custom Fields for HTML Post&nbsp;Titles">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/theme/" title="View all posts in Theme" rel="category tag">Theme</a> | Tagged: <a href="http://digwp.com/tag/custom-fields/" rel="tag">custom-fields</a>, <a href="http://digwp.com/tag/title/" rel="tag">title</a>, <a href="http://digwp.com/tag/tricks/" rel="tag">tricks</a></small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/Bn5xqryLqSk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/10/custom-fields-for-html-post-titles/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://digwp.com/2009/10/custom-fields-for-html-post-titles/</feedburner:origLink></item>
		<item>
		<title>Q&amp;A: WordPress &amp; GPL</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/PUXif-yBVv4/</link>
		<comments>http://digwp.com/2009/10/qa-wordpress-gpl/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 16:27:51 +0000</pubDate>
		<dc:creator>Chris Coyier</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=850</guid>
		<description><![CDATA[In this one we cover the GPL and how it benefits WordPress, why WP is under the GPL, commercial themes, how the GPL fosters innovation, creates value, and affects themes and plugins.
I certainly learned some stuff about the GPL. Like 1) You can sell/profit from themes that are GPL and 2) Anything built around an [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>In this one we cover the GPL and how it benefits WordPress, why WP is under the GPL, commercial themes, how the GPL fosters innovation, creates value, and affects themes and plugins.</p></blockquote>
<p>I certainly learned some stuff about the GPL. Like 1) You can sell/profit from themes that are GPL and 2) Anything built around an existing GPL product must also be GPL.</p>
<p><small><a href="http://ma.tt/2009/10/matt-qa-wordpress-gpl/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://digwp.com/2009/10/qa-wordpress-gpl/" title="Permalink to post on DiW">Permalink on DiW</a></small></p><p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/10/qa-wordpress-gpl/">Permalink</a> | <a href="http://digwp.com/2009/10/qa-wordpress-gpl/#comments">Comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/10/qa-wordpress-gpl/&title=Q&#038;A: WordPress &#038;&nbsp;GPL">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/links/" title="View all posts in Links" rel="category tag">Links</a> | Tagged: </small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/PUXif-yBVv4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/10/qa-wordpress-gpl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ma.tt/2009/10/matt-qa-wordpress-gpl/</feedburner:origLink></item>
		<item>
		<title>The Difference Between is_singular() and is_single()</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/CVYHlHO2q_0/</link>
		<comments>http://digwp.com/2009/10/difference-between-is_singular-and-is_single/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 06:56:58 +0000</pubDate>
		<dc:creator>Jeff Starr</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=836</guid>
		<description><![CDATA[You know that you can target single-view pages with the conditional tag, is_single():
&#60;?php
if(is_single()) {

	// do something

} else {

	// do something else

}
?&#62;
This is a great way to conditionally apply styles, scripts, and markup to single-view pages. 
But did you know about the conditional tag, is_singular()? The is_singular() tag enables you to target single-view pages, regular page [...]]]></description>
			<content:encoded><![CDATA[<p>You know that you can target single-view pages with the conditional tag, <code>is_single()</code>:</p>
<pre><code>&lt;?php
if(is_single()) {

	// do something

} else {

	// do something else

}
?&gt;</code></pre>
<p>This is a great way to conditionally apply styles, scripts, and markup to single-view pages. </p>
<p>But did you know about the conditional tag, <code>is_singular()</code>? The <code>is_singular()</code> tag enables you to target single-view pages, regular page pages, and attachment pages all in one fell swoop.</p>
<p><span id="more-836"></span></p>
<p>So, instead of writing something like this:</p>
<pre><code>&lt;?php
if(is_single() || is_page() || is_attachment()) {

	// do something

} else {

	// do something else

}
?&gt;</code></pre>
<p>We can write this instead:</p>
<pre><code>&lt;?php
if(is_singular()) {

	// do something

} else {

	// do something else

}
?&gt;</code></pre>
<p>The <code>is_singular()</code> tag is what&rsquo;s known as a &ldquo;boolean&rdquo; function, meaning that it returns one of two values, either <code>TRUE</code> or <code>FALSE</code>. No parameters are associated with this tag.</p>
<p>Now you know :)</p>
<p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/10/difference-between-is_singular-and-is_single/">Permalink</a> | <a href="http://digwp.com/2009/10/difference-between-is_singular-and-is_single/#comments">3 comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/10/difference-between-is_singular-and-is_single/&title=The Difference Between is_singular() and&nbsp;is_single()">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/php/" title="View all posts in PHP" rel="category tag">PHP</a> | Tagged: <a href="http://digwp.com/tag/tags/" rel="tag">tags</a>, <a href="http://digwp.com/tag/template/" rel="tag">template</a>, <a href="http://digwp.com/tag/tips/" rel="tag">tips</a></small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/CVYHlHO2q_0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/10/difference-between-is_singular-and-is_single/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://digwp.com/2009/10/difference-between-is_singular-and-is_single/</feedburner:origLink></item>
		<item>
		<title>Feed Count Plugin</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/naL6jcbCl0U/feedcount.zip</link>
		<comments>http://digwp.com/2009/10/feed-count-plugin/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 01:59:34 +0000</pubDate>
		<dc:creator>Jeff Starr</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=840</guid>
		<description><![CDATA[One of the easiest ways to display your FeedBurner subscriber count number in plain text is to use the Feed Count plugin by Francesco Mapelli. I have been using this plugin at Perishable Press for a long time, and it has always been great. Unfortunately, Francesco&#8217;s site seems to be suffering from malicious behavior these [...]]]></description>
			<content:encoded><![CDATA[<p>One of the easiest ways to display your FeedBurner subscriber count number in plain text is to use the Feed Count plugin by Francesco Mapelli. I have been using this plugin at Perishable Press for a long time, and it has always been great. Unfortunately, Francesco&#8217;s site seems to be suffering from malicious behavior these days, with tons of spam comments, weird files that are automatically downloaded to your computer, and even one of those scary warnings from Google: &#8220;Reported Attack Site,&#8221; or whatever it says.</p>
<p>In any case, the Feed Count plugin is too awesome to let disappear into the ether, so it will be hosted here at Digging into WordPress until Francesco&#8217;s site checks into a rehab center and cleans itself up. Hopefully that will be sometime soon. In the meantime, to download a squeaky-clean copy of the Feed Count plugin, simply click on the title of this post.</p>
<p><small><a href="http://digwp.com/plugins/feedcount.zip" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://digwp.com/2009/10/feed-count-plugin/" title="Permalink to post on DiW">Permalink on DiW</a></small></p><p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/10/feed-count-plugin/">Permalink</a> | <a href="http://digwp.com/2009/10/feed-count-plugin/#comments">Comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/10/feed-count-plugin/&title=Feed Count&nbsp;Plugin">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/links/" title="View all posts in Links" rel="category tag">Links</a> | Tagged: <a href="http://digwp.com/tag/plugin/" rel="tag">plugin</a></small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/naL6jcbCl0U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/10/feed-count-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://digwp.com/plugins/feedcount.zip</feedburner:origLink></item>
		<item>
		<title>Fun with the WordPress Logo</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/zlloMfu19Qk/</link>
		<comments>http://digwp.com/2009/10/fun-with-the-wordpress-logo/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 18:03:08 +0000</pubDate>
		<dc:creator>Chris Coyier</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=834</guid>
		<description><![CDATA[Vote on your favorites. I like the brownie bites!
Direct Link to Article &#8212; Permalink on DiWLike the article? Get the book!Learn how to take your web design skills to the next level by building sites with WordPress.Sign up now for a special discount - Coming This Fall!

© 2009 Digging into WordPress &#124; Permalink &#124; Comments [...]]]></description>
			<content:encoded><![CDATA[<p>Vote on your favorites. I like the brownie bites!</p>
<p><small><a href="http://en.blog.wordpress.com/2009/10/24/vote-on-the-wordpress-logo-entries/" title="Direct link to featured article">Direct Link to Article</a> &#8212; <a href="http://digwp.com/2009/10/fun-with-the-wordpress-logo/" title="Permalink to post on DiW">Permalink on DiW</a></small></p><p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/10/fun-with-the-wordpress-logo/">Permalink</a> | <a href="http://digwp.com/2009/10/fun-with-the-wordpress-logo/#comments">Comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/10/fun-with-the-wordpress-logo/&title=Fun with the WordPress&nbsp;Logo">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/links/" title="View all posts in Links" rel="category tag">Links</a> | Tagged: </small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/zlloMfu19Qk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/10/fun-with-the-wordpress-logo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://en.blog.wordpress.com/2009/10/24/vote-on-the-wordpress-logo-entries/</feedburner:origLink></item>
		<item>
		<title>Multiple the_date() Functions Return Empty Date</title>
		<link>http://feedproxy.google.com/~r/DiggingIntoWordpress/~3/F6efGWFKU48/</link>
		<comments>http://digwp.com/2009/10/the_date-returns-empty/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 15:45:58 +0000</pubDate>
		<dc:creator>Chris Coyier</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=829</guid>
		<description><![CDATA[Inside the loop, if you use the function the_date() to display the date the post was published, you may run into trouble. Specifically, if there are two posts published on the same day, the second one will return nothing for a date.
To fix this, use the_time() instead. There is quirk though, as the_time() ouputs, by [...]]]></description>
			<content:encoded><![CDATA[<p>Inside the loop, if you use the function the_date() to display the date the post was published, you may run into trouble. Specifically, if there are two posts published on the same day, the second one will return nothing for a date.</p>
<p>To fix this, use the_time() instead. There is quirk though, as the_time() ouputs, by default, literally a time like &#8220;6:02 pm&#8221;. You can pass date parameters into it though, and make it output a date instead like the_time(m/d/Y). This means that the date formatting is controlled by your theme though, instead of the Admin area. To get the control back, use this instead:</p>
<pre><code>the_time(get_option('date_format'));</code></pre>
<p style="border:1px solid #ccc; background: #eee; line-height: 20px; padding: 5px 10px; margin-top: 10px;">Like the article? <strong>Get the book!</strong><br />Learn how to take your web design skills to the next level by building sites with WordPress.<br /><a href="http://digwp.com/preorder/" title="Preorder Digging into WordPress!">Sign up now for a special discount</a> - <em>Coming This Fall!</em></p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/10/the_date-returns-empty/">Permalink</a> | <a href="http://digwp.com/2009/10/the_date-returns-empty/#comments">5 comments</a> | Add to
<a href="http://del.icio.us/post?url=http://digwp.com/2009/10/the_date-returns-empty/&title=Multiple the_date() Functions Return Empty&nbsp;Date">Delicious</a><br />
Categorized: <a href="http://digwp.com/category/php/" title="View all posts in PHP" rel="category tag">PHP</a> | Tagged: <a href="http://digwp.com/tag/date/" rel="tag">date</a>, <a href="http://digwp.com/tag/echo/" rel="tag">echo</a>, <a href="http://digwp.com/tag/tips/" rel="tag">tips</a></small></p><img src="http://feeds.feedburner.com/~r/DiggingIntoWordpress/~4/F6efGWFKU48" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/10/the_date-returns-empty/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://digwp.com/2009/10/the_date-returns-empty/</feedburner:origLink></item>
	</channel>
</rss>
