<?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>Digging into WordPress &#187; Uncategorized</title>
	<atom:link href="http://digwp.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:03:45 +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>Where to Get Help with WordPress</title>
		<link>http://digwp.com/2011/09/where-to-get-help-with-wordpress/</link>
		<comments>http://digwp.com/2011/09/where-to-get-help-with-wordpress/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 17:35:07 +0000</pubDate>
		<dc:creator>Jeff Starr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=5301</guid>
		<description><![CDATA[We get quite a few requests for 1-to-1 WordPress support, but unfortunately don&#8217;t have the resources to help everyone directly. We frequently see emails like this: I understand that you are not able to give 1:1 support, so I would like to ask: where (web, forum, IRC) do I get answers about this? So people [...]]]></description>
			<content:encoded><![CDATA[<p>We get quite a few requests for 1-to-1 WordPress support, but unfortunately don&#8217;t have the resources to help everyone directly. We frequently see emails like this:</p>
<blockquote><p>I understand that you are not able to give 1:1 support, so I would like to ask: where (web, forum, IRC) do I get answers about this?</p></blockquote>
<p><span id="more-5301"></span></p>
<p>So people are out there looking for a place to get hands-on, one-to-one help for their self-hosted WordPress-related issues. Apparently these days it&#8217;s not easy to find:</p>
<blockquote><p>The WP forums seem to be pretty dead, I asked some questions there and never got responses or not in a reasonable time. I tried the IRC chat, but no-one seems to know something about SVN there too</p></blockquote>
<p>So we wanted to put together a solid resource for folks to use for finding good WordPress help, much like we did with our <a href="http://digwp.com/2011/01/list-of-wordpress-developers-designers/" title="List of WordPress Developers &amp; Designers">list of WordPress Designers and Developers</a>, where readers could leave comments with their information. In this case, we&#8217;re focusing on one-to-one WordPress help, so feel free to shout out any names or resources you might know of (including your own).</p>
<h3>where to get help with WordPress</h3>
<p>So without further ado, here&#8217;s our list of places to go for WordPress help (in no particular order):</p>
<ul>
<li><a href="http://wpquestions.com/">WP Questions</a></li>
<li><a href="http://wordpress.stackexchange.com/">WordPress Stack Exchange</a></li>
<li><a href="http://codex.wordpress.org/WordPress_IRC_Live_Help">WordPress IRC</a> <a href="http://codex.wordpress.org/IRC">Live Help</a></li>
<li><a href="http://wordpress.org/support/">WordPress.org Support Forums</a></li>
<li><a href="http://wphelpcenter.com/">WordPress HelpCenter</a></li>
<li><a href="http://css-tricks.com/forums/">CSS-Tricks Help Forums</a></li>
<li><a href="http://wordpress.tv/category/how-to/">WordPress.tv</a></li>
<li><a href="http://codex.wordpress.org/Main_Page">WordPress Codex</a></li>
<li><a href="http://en.support.wordpress.com/">WordPress.com Support</a></li>
</ul>
<p>Other resources and useful articles on finding &amp; getting some WordPress help:</p>
<ul>
<li><a href="http://codex.wordpress.org/Finding_WordPress_Help">Finding WordPress Help (WP Codex)</a></li>
<li><a href="http://www.wpdesigner.com/2008/03/03/how-to-get-help-for-wordpress-problems/">How to get help (WP Designer)</a></li>
<li><a href="http://wpmu.org/please-help-me-where-to-go-for-wordpress-support/">Where to go for support (wpmu.org)</a></li>
</ul>
<h3>Share &rsquo;em!</h3>
<p>Know of other places to get WordPress help? Maybe you provide some yourself, eh? Go ahead and drop a comment and let our readers know where to find WordPress help and support. Thanks! :)</p>
<hr />
<p><small>© 2011 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2011/09/where-to-get-help-with-wordpress/">Permalink</a> | <a href="http://digwp.com/2011/09/where-to-get-help-with-wordpress/#comments">39 comments</a> | Add to <a href="http://del.icio.us/post?url=http://digwp.com/2011/09/where-to-get-help-with-wordpress/&title=Where to Get Help with WordPress">del.icio.us</a> | Post tags: <br/></small></p>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2011/09/where-to-get-help-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>So really, don&#8217;t use just /%postname%/ as your permalink structure.</title>
		<link>http://digwp.com/2011/06/dont-use-postname/</link>
		<comments>http://digwp.com/2011/06/dont-use-postname/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 21:05:03 +0000</pubDate>
		<dc:creator>Chris Coyier</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=4569</guid>
		<description><![CDATA[Update: This issue is FIXED in WordPress 3.3. Here&#8217;s the really short version: I used /%postname%/ as my permalink structure on CSS-Tricks for a long time. I have lots of Pages. My site went down. I changed my permalink structure to begin with a number. Now it&#8217;s fine. And the long version: All the sudden [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> This issue is FIXED in WordPress 3.3.</p>
<p><strong>Here&#8217;s the really short version:</strong> I used /%postname%/ as my permalink structure on <a href="http://css-tricks.com">CSS-Tricks</a> for a long time. I have lots of Pages. My site went down. I changed my permalink structure to begin with a number. Now it&#8217;s fine.</p>
<p><strong>And the long version:</strong></p>
<p>All the sudden one evening the server that runs this site and one of my other sites, CSS-Tricks seemed to get very slow (I noticed while trying to save a draft of a post). I tried visiting the homepage and various other parts of the site and it either took a long time or just timed out completely. Always a heart-sinking time for me, as I know very little about servers and how to troubleshoot them. <span id="more-4569"></span></p>
<p>When the server responded at all, serving up just the base document was by far the slowest thing:</p>
<p><img src="http://digwp.com/wp-content/uploads/slowresponse.png" alt="" title="slowresponse" width="570" height="310" class="alignnone size-full wp-image-4761" /></p>
<p>These sites are hosted on a <a href="http://mediatemple.net/">MediaTemple</a> (dv) server<sup>1</sup>. MediaTemple is known for responsive support and theoretically I&#8217;m on some kind of VIP program although I&#8217;m pretty sure I get the same level of support anybody else would. So of course I leaned on them for help. Even if the problem was outside of the scope of their support (likely since they don&#8217;t support the software you run, totally understandable) I thought if I pleaded hard enough they&#8217;d at least help me figure out the root cause.</p>
<p>I knew enough myself to look in Plesk (the server management software that runs on my server) in the Virtuozzo part where I can see &#8220;QoS Alerts&#8221; (Quality of Service). The biggest recurring issue was &#8220;kmemsize&#8221; (server memory), but pretty much everything was in the black.</p>
<p><img src="http://digwp.com/wp-content/uploads/qosalerts.png" alt="" title="qosalerts" width="570" height="264" class="alignnone size-full wp-image-4762" /></p>
<p>In the end, it was ultimately me who figured it out, but Media Temple was quite helpful in that I got to speak with someone on the phone who was clearly quite knowledgeable and helped watch the server as I tried different things confirming what was working and what was not.</p>
<h3>Diagnosing the problem</h3>
<p>I made a quick HTML-only test page on the server and hit that. Assuming the server wasn&#8217;t in a completely dead state, that would come back fairly quickly. Then I made PHP page that just echo&#8217;d something out. That came back even faster. So it&#8217;s not just purely Apache, or server load, or PHP. Then I made PHP page that ran a fairly intense MySQL query. That came back fairly quickly as well. So it wasn&#8217;t MySQL being overloaded either. Then I made a WordPress template where all it did was <code>get_header()</code>. That page took forever to serve up. So I proved that the problem was related to WordPress (something particular to my WordPress setup).</p>
<h3>The root of the problem</h3>
<p>Turns out it was the permalink structure set up in WordPress for CSS-Tricks that was the problem. From day one, about four years now, it&#8217;s been /%postname%/. I really like how short and readable the URL&#8217;s are in that structure. A URL like http://css-tricks.com/css-sprites/ is very clear about what that page is about, as well as great SEO for the search term &#8220;CSS Sprites&#8221;. But alas, having your post structure set up like that has serious performance implications.</p>
<p>I use <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a> for caching, and it&#8217;s worked great for a long time. One of the things that it does is database caching. It displays the results at the end of the page in HTML comments. With the permalink structure set to /%postname%/, the comment on the end of the page looked like this:</p>
<p> <img src="http://digwp.com/wp-content/uploads/postnamequeries.png" alt="" title="postnamequeries" width="542" height="244" class="alignnone size-full wp-image-4763" /></p>
<p>Twenty five hundred queries on one page? That ain&#8217;t right. If I changed the permalink structure to something else, like one of the default options like /%year%/%monthnum%/%postname%/, then flushed the cache and checked what W3 Total Cache was saying, it was this:</p>
<p> <img src="http://digwp.com/wp-content/uploads/view-source_css-tricks.png" alt="" title="view-source_css-tricks" width="515" height="167" class="alignnone size-full wp-image-4764" /></p>
<p>Even that seems high but way more reasonable. </p>
<p>So, database queries? WTF? Why (or even does) WordPress need the database involved with permalink structures? Andrew Nacin, a WordPress core developer, was super helpful in all this. He told me that <a href="https://twitter.com/nacin/status/82236131072147456">queries aren&#8217;t the problem</a> and <a href="https://twitter.com/nacin/status/82239949293895680">urged me</a> to make that clear after publicly sharing these results. It really doesn&#8217;t make sense to me that the number of queries shoots way up under that permalink structure, but hey, I&#8217;m just reporting what I saw.</p>
<p>This is a very relevant part of <a href="http://codex.wordpress.org/Using_Permalinks">The Codex</a>:</p>
<blockquote><p>For performance reasons, it is not a good idea to start your permalink structure with the category, tag, author, or postname fields. The reason is that these are text fields, and using them at the beginning of your permalink structure it takes more time for WordPress to distinguish your Post URLs from Page URLs (which always use the text &#8220;page slug&#8221; as the URL), and to compensate, <strong>WordPress stores a lot of extra information in its database (so much that sites with lots of Pages have experienced difficulties)</strong>. So, it is best to have at least two path segments in your post&#8217;s permalink structure such as /%year%/%postname%/ or even /posts/%postname%/.</p></blockquote>
<p><strong>Emphasis</strong> mine. </p>
<p>So why the number of queries increased so dramatically? No idea. Does WordPress use the database to resolve URLs when you use just /%postname%/? Yes. And if you use one of their recommendations, does it remove the need to interact with the database at all? I also don&#8217;t know, but it&#8217;s certainly faster.</p>
<p>How did I even think of permalinks as a potential problem? I&#8217;m not sure. I just wracked my brain trying to think of things it could be, and remembered that I&#8217;ve read things here and there over the years that this has been a problem. One of those articles was on <a href="http://ottopress.com/2010/category-in-permalinks-considered-harmful/">&#8220;Otto on WordPress&#8221;</a> which delves into this&#8230;</p>
<h3>Starting with a text-based part instead of a number-based part, that&#8217;s the problem.</h3>
<blockquote><p>The problem comes in when you try to use a non-number for the beginning of your permalink string.</p></blockquote>
<p>When WordPress is parsing the URL to figure out what to serve up, it really wants to figure out if it&#8217;s a post or a page. Pages always have the /%postname%/ structure. You can&#8217;t really change that. So if you use any one of the word-based permalink keywords (%category%, %tag%, %postname%, or %author%), which can theoretically be anything, WordPress can&#8217;t easily tell the difference between Posts and Pages. </p>
<p>Fairly obvious right? Your posts structure is /%postname%/ and your pages structure is /%postname%/ &#8211; if you publish one of each and call them both &#8220;Contact&#8221;, how does it tell them apart? Thankfully WordPress is smart enough to not let you choose the same slug for both, but it still proves problematic for URL parsing. </p>
<p>So if you&#8217;ve chosen to begin your URL structure with one of the text-based options, WordPress <a href="https://twitter.com/#!/nacin/status/82551983222964224">triggers a flag</a> called <strong>use_verbose_page_rules</strong> which literally <a href="https://twitter.com/#!/nacin/status/82248754593402880">creates a rule</a> for every single page that you have. So instead of a rather concise set of rewrite rules (maybe 10) now you have a very thick set of rewrite rules (10 + # of pages you have). I have 550 pages or so on CSS-Tricks, so this is clearly problematic. Andrew Nacin guesses performance issues seep in around <a href="https://twitter.com/nacin/status/82227583655223296">50-100 pages</a>. Not only do these new rewrite rules need to be read through on every single page request, the need to be recreated every time you create new content. Both very slow processes.</p>
<p>If you use anything numeric to start your permalink structure (or even a static word like &#8220;/posts/&#8221;), the rewrite rules can remain compact, and verbose rules do not need to be used. </p>
<p>Some might say, hey, just use the year or the year and month! That&#8217;s cool, go for it. I like that for the most part. Some people feel super strongly that having the date in the URL is vital since it gives people information about when the article was published. I don&#8217;t feel that strongly. I think that information is vital but it&#8217;s more important it&#8217;s visible on the page itself. SEO expert (not kidding, he&#8217;s the man) <a href="http://yoast.com/">Joost De Valk</a> told me dates in the URL&#8217;s can kill clickthrough rates on Search Engine Results Pages since the content can look old before they even see it. </p>
<p>Personally, I&#8217;ve opted to start my URL&#8217;s with /%post_id%/ then also use /%postname%/. It looks a little weird maybe, but I don&#8217;t overly mind it. Performance is more important to me.</p>
<h3>What can WordPress (the project) do?</h3>
<p>I&#8217;d vote that on the Settings page for permalinks, it should at least have a sentence like &#8220;It is not recommended that you begin your permalink structure with /%category%, %tag%, %postname%, or %author% for performance reasons.&#8221;</p>
<h3>What about me?! I use /%postname%/. What should I do?</h3>
<p>The thing to consider is how many pages you have now, and how many pages you might ever have. If you are pretty sure you&#8217;ll have very few, like under 20 pages EVER. Then whatever, I think you are probably fine with that structure. If you think you might have more than that, I think you ought to change now before it becomes a problem. Consider one of the date based structures or starting with the %post_id%.</p>
<h3>What about SEO?</h3>
<p>This one had me sweating. There are a lot of links out there to CSS-Tricks. I don&#8217;t want to lose traffic. That site is decent part of my income. Now all of those incoming links are wrong. That can&#8217;t be good for SEO!</p>
<p>Well as it turns out, it&#8217;s really not that big of a deal. There is a plugin out there that redirects all old posts to the new posts. <strong>Don&#8217;t use that!</strong> You don&#8217;t need it. WordPress automatically handles the 301 redirects from the old format to the new format. 301 redirects are what Google needs to know about your new format and update itself and retain your ranks. It&#8217;s been five days since my new transition, and even after a little snafu where I left it on a date-based structure while testing a little too long and Google picked it up, I&#8217;m right back where I was before and Google is showing my new structure just fine.</p>
<hr />
<p><sup>1</sup> <small>Media Temple (dv) Dedicated-Virtual 3.5 &#8211; Extreme w/ additional 256MB memory upgrade.</small></p>
<hr />
<p><small>© 2011 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2011/06/dont-use-postname/">Permalink</a> | <a href="http://digwp.com/2011/06/dont-use-postname/#comments">157 comments</a> | Add to <a href="http://del.icio.us/post?url=http://digwp.com/2011/06/dont-use-postname/&title=So really, don&#8217;t use just /%postname%/ as your permalink structure.">del.icio.us</a> | Post tags: <br/></small></p>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2011/06/dont-use-postname/feed/</wfw:commentRss>
		<slash:comments>157</slash:comments>
		</item>
		<item>
		<title>Fun Edit Posts Link (✍)</title>
		<link>http://digwp.com/2011/06/fun-edit-posts-link/</link>
		<comments>http://digwp.com/2011/06/fun-edit-posts-link/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 21:46:55 +0000</pubDate>
		<dc:creator>Chris Coyier</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=4747</guid>
		<description><![CDATA[Tiny little fun idea by Dave Rupert. Put this: &#60;?php edit_post_link('✍','',' '); ?&#62; before all your: &#60;?php the_title() ?&#62; So like: &#60;h1&#62;&#60;?php edit_post_link('✍','',' '); ?&#62; &#60;?php the_title() ?&#62;&#60;/h1&#62; And when logged in, if you have edit privileges for that post/page/whatever, you&#8217;ll see the titles like: ✍ How To Be Awesome Where the little icon is [...]]]></description>
			<content:encoded><![CDATA[<p>Tiny little fun idea <a href="https://twitter.com/davatron5000/status/83641289945526272">by Dave Rupert</a>. </p>
<p>Put this:</p>
<pre><code>&lt;?php edit_post_link('✍','',' '); ?&gt;</code></pre>
<p>before all your:</p>
<pre><code>&lt;?php the_title() ?&gt;</code></pre>
<p><span id="more-4747"></span></p>
<p>So like:</p>
<pre><code>&lt;h1&gt;&lt;?php edit_post_link('✍','',' '); ?&gt; &lt;?php the_title() ?&gt;&lt;/h1&gt;</code></pre>
<p>And when logged in, if you have edit privileges for that post/page/whatever, you&#8217;ll see the titles like:</p>
<h3>✍ How To Be Awesome</h3>
<p>Where the little icon is a clickable link to edit that page. Just gotta make sure your page is UTF-8, which I bet it already is.</p>
<hr />
<p><small>© 2011 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2011/06/fun-edit-posts-link/">Permalink</a> | <a href="http://digwp.com/2011/06/fun-edit-posts-link/#comments">13 comments</a> | Add to <a href="http://del.icio.us/post?url=http://digwp.com/2011/06/fun-edit-posts-link/&title=Fun Edit Posts Link (✍)">del.icio.us</a> | Post tags: <br/></small></p>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2011/06/fun-edit-posts-link/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

