<?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>Francis Shanahan[.com] &#187; wordpress</title>
	<atom:link href="http://francisshanahan.com/index.php/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://francisshanahan.com</link>
	<description>Thoughts on technology from a citizen scientist</description>
	<lastBuildDate>Fri, 27 Jan 2012 14:18:12 +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>Converting the WordPress Arthemia Theme to HTML5</title>
		<link>http://francisshanahan.com/index.php/2010/wordpress-arthemia-theme-html5/</link>
		<comments>http://francisshanahan.com/index.php/2010/wordpress-arthemia-theme-html5/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 02:49:10 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[Cool & Future Tech]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://francisshanahan.com/?p=2618</guid>
		<description><![CDATA[The other day I converted the current WordPress theme of this site from XHTML Transitional 1.0 to HTML5. It was fairly easy so here&#8217;s what I did.
An XHTML 1.0 transitional website was a great place to start. I used the trusty w3c validator located at http://validator.w3.com.
First thing was to get the Doctype fixed up: I changed
&#60;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&#62;
to
&#60;!DOCTYPE html&#62;
and bingo, we&#8217;re recognized as HTML5 instead of XHTML. Not compliant yet though. I removed the profile attribute from my head tag as so:
&#60;head profile=&#8221;http://gmpg.org/xfn/11&#8243;&#62; which wasn&#8217;t ...]]></description>
			<content:encoded><![CDATA[<p>The other day I converted the current WordPress theme of this site from XHTML Transitional 1.0 to HTML5. It was fairly easy so here&#8217;s what I did.</p>
<p>An XHTML 1.0 transitional website was a great place to start. I used the trusty w3c validator located at <a href="http://validator.w3.com" target="_blank">http://validator.w3.com</a>.</p>
<p>First thing was to get the Doctype fixed up: I changed</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;</p>
<p>to</p>
<p>&lt;!DOCTYPE html&gt;</p>
<p>and bingo, we&#8217;re recognized as HTML5 instead of XHTML. Not compliant yet though. I removed the profile attribute from my head tag as so:</p>
<p>&lt;head profile=&#8221;http://gmpg.org/xfn/11&#8243;&gt; which wasn&#8217;t serving any purpose anyway so it became</p>
<p>&lt;head&gt;</p>
<p>Removed a stray &lt;/link&gt; tag from the header, added an alt tag where there was one missing, removed px from all width and height attributes and removed a frameborder tag (obsolete).</p>
<p>That completed the HTML5 cleanup. At this point the site validated but was not actually using any tags.</p>
<p>Next up adding some HTML5 semantic tags: I added the &lt;header&gt; and &lt;nav&gt; tags in the appropriate places, defined a &lt;section role=&#8221;main&#8221;&gt; tag for the main area of the page. Slapped in some &lt;article&gt; and &lt;header&gt; tags. The only one worth mentioned was the &lt;time&gt; tag which took a different format from the datetime I was using so it&#8217;s:</p>
<p>&lt;time datetime=&#8221;&lt;?php the_time(&#8216;Y-m-d&#8217;) ?&gt;&#8221;&gt;&lt;/time&gt;</p>
<p>And lastly added a &lt;footer&gt; tag. In terms of the theme I touched header.php, footer.php, index.php and single.php. Easy stuff and now I&#8217;m fully geeked out on HTML5.</p>
]]></content:encoded>
			<wfw:commentRss>http://francisshanahan.com/index.php/2010/wordpress-arthemia-theme-html5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Add JCarousel Lite to WordPress</title>
		<link>http://francisshanahan.com/index.php/2009/how-to-add-jcarousel-lite-to-wordpress/</link>
		<comments>http://francisshanahan.com/index.php/2009/how-to-add-jcarousel-lite-to-wordpress/#comments</comments>
		<pubDate>Mon, 11 May 2009 06:20:54 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[Cool & Future Tech]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[jcarousel]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://francisshanahan.com/www/?p=2234</guid>
		<description><![CDATA[A number of folks have asked for detailed step-by-step instructions so here&#8217;s how I added a nice Carousel to the Arthemia theme running under WordPress. I use the free version of the Arthemia theme which doesn&#8217;t have a carousel out of the box. It&#8217;s easy to add one though and of course these instructions apply regardless of the theme you&#8217;re using so here goes.
I&#8217;ll assume you have WordPress installed, doesn&#8217;t matter which version.
Depending on the theme you use, the pages you&#8217;ll need to edit are located in a folder under ...]]></description>
			<content:encoded><![CDATA[<p>A number of folks have asked for detailed step-by-step instructions so here&#8217;s how I added a nice Carousel to the Arthemia theme running under WordPress. I use the free version of the Arthemia theme which doesn&#8217;t have a carousel out of the box. It&#8217;s easy to add one though and of course these instructions apply regardless of the theme you&#8217;re using so here goes.</p>
<p>I&#8217;ll assume you have WordPress installed, doesn&#8217;t matter which version.</p>
<p>Depending on the theme you use, the pages you&#8217;ll need to edit are located in a folder under wp-content/themes/</p>
<p>It&#8217;s confusing but there are actually two JCarousel libraries, each different, one being JCarousel and the other being JCarousel Lite. JCarousel is a fully featured robust carousel library for the ultimate in carousel satisfaction. It&#8217;s very complicated and I didn&#8217;t need its features. I went with JCarousel Lite and I suggest you do too.</p>
<p>Step 1)<br />
Put this code into your theme&#8217;s footer.php file:</p>
<pre class="brush: javascript">

&lt;script src=&quot;http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://www.gmarwaha.com/jquery/jcarousellite/js/jcarousellite_1.0.1.pack.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>The first is a link to JQuery, the 2nd is a link to JCarousel Lite. You need both and in that order.  You can specify these in the header too but the page will appear to load a little quicker in the browser if JS files are moved to the footer.</p>
<p>2) While you have Footer.php open, add this after the above two lines:</p>
<pre class="brush: javascript">

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
$(function() {

$(&quot;#MyCarousel&quot;).jCarouselLite({
btnNext: &quot;.next&quot;,
btnPrev: &quot;.prev&quot;,
vertical: true,
visible: 3,
auto:2000,
speed:1000
});
});
// --&gt;&lt;/script&gt;
</pre>
<p>The above is just a simple declaration to initialize a carousel. It names 3 divs, MyCarousel, Next and Prev which we&#8217;ll create next&#8230;</p>
<p>Step 3) Generate the carousel elements. You can make your elements static but where&#8217;s the fun in that? I used PHP for this and in my case I scroll between 5 or so &#8220;Featured&#8221; items. Here&#8217;s the PHP for that and this should go in your theme&#8217;s index.php file, wherever you want the carousel to show up.</p>
<pre class="brush: php">

&lt;div id=&quot;MyCarousel&quot;&gt;
&lt;ul&gt;

&lt;?php query_posts(&quot;showposts=5&amp;category_name=Featured&quot;); $i = 1; ?&gt;

&lt;?php while (have_posts()) : the_post(); ?&gt;

&lt;li&gt; &lt;a class=&quot;title&quot; rel=&quot;bookmark&quot; href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title() ?&gt;&lt;/a&gt;&lt;/li&gt;

&lt;?php endwhile; ?&gt;

&lt;/ul&gt;
&lt;/div&gt;

&lt;div class=&quot;prev&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;next&quot;&gt;&amp;nbsp;&lt;/div&gt;
</pre>
<p>Basically you&#8217;re just creating a div named MyCarousel, inside there is an unordered list (&lt;ul&gt;) and then there&#8217;s some PHP to loop through the 5 most recent Featured items and create &lt;li&gt; tags for each one.</p>
<p>You should tailor this to your needs. This code uses a WordPress function to find the latest blog entries but your code can pull data from wherever.</p>
<p>Notice this also creates the necessary div tags, MyCarousel, Next and Prev.</p>
<p>Step 4) Celebrate, you&#8217;re done. If everything worked you should get a vertical scrolling carousel on your blog&#8217;s home page. With that working you can add in other blog elements like the blog entry excerpt or number of comments etc.</p>
<p>Hope that&#8217;s clear enough.</p>
]]></content:encoded>
			<wfw:commentRss>http://francisshanahan.com/index.php/2009/how-to-add-jcarousel-lite-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>Improving Performance #1: Hyper Cache vs Super Cache 2</title>
		<link>http://francisshanahan.com/index.php/2009/hyper-cache-vs-super-cache-2/</link>
		<comments>http://francisshanahan.com/index.php/2009/hyper-cache-vs-super-cache-2/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 04:56:37 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[hyper cache]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[super cache]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://francisshanahan.com/www/?p=1803</guid>
		<description><![CDATA[WordPress is nice but it&#8217;s a bit of a hog CPU-wise. Jeff Atwood has a nice piece on this entitled &#8220;Behold WordPress, Destroyer of CPUs&#8220;. 
We have a big set of releases coming up at work and I&#8217;ve become a bit obsessed with performance. We&#8217;re not using WordPress but I figured performance improvement, just like anything, starts at home. So ever since installing WordPress with this Arthemia theme I&#8217;ve been tweaking to try to get the most out of it. 
I&#8217;m measuring performance using Fiddler 2, starting with clear browser, ...]]></description>
			<content:encoded><![CDATA[<p>WordPress is nice but it&#8217;s a bit of a hog CPU-wise. Jeff Atwood has a nice piece on this entitled &#8220;<a href="http://www.codinghorror.com/blog/archives/001105.html">Behold WordPress, Destroyer of CPUs</a>&#8220;. </p>
<p>We have a big set of releases coming up at work and I&#8217;ve become a bit obsessed with performance. We&#8217;re not using WordPress but I figured performance improvement, just like anything, starts at home. So ever since installing WordPress with this Arthemia theme I&#8217;ve been tweaking to try to get the most out of it. </p>
<p>I&#8217;m measuring performance using Fiddler 2, starting with clear browser, no cache and summing up the entire browser session, the HTML, CSS, JS and media. Not very scientific but better than nothing. </p>
<p>The first place to look was the plugin space and there are a few third-party HTML fragment caching plugins available. Naturally I tried WP-CACHE, that didn&#8217;t do much and is pretty much acknowledged as being out of date. It&#8217;s successor is an add on called &#8220;Super Cache&#8221; so I tried that. Not as smooth as I expected. </p>
<p>As soon as it was installed I noticed was my site throwing PHP errors all over the place. A few minutes debugging showed the config had incorrectly chosen some non-existent directory settings. With that fixed Super Cache started caching. I noticed de-activating and then re-activating this plugin screwed up the config and I had to manually edit some files each time. Less than ideal to say the least. </p>
<p>With caching on, response time improved as PHP no longer had to generate pages on the fly but I wasn&#8217;t blown away by any means. </p>
<p>After a few weeks I noticed the site would hang periodically and time out. Just doing nothing. I couldn&#8217;t diagnose this issue but once I de-activated Super Cache things seemed to come back to life. </p>
<p>My thinking is that Super Cache had used a Mutex to lock a file and somehow reached a race condition. In any case I started looking for a new caching product. That&#8217;s when I met Hyper Cache. </p>
<p>Hyper Cache is a lighter-weight caching plugin than the aforementioned SC. No directories to mess with, no editing extraneous files. I just installed it and off it went. </p>
<p>Measuring page rendering time through Fiddler there was not much improvement but the cache seems to rebuild faster with HyperCache and I haven&#8217;t had any mutex/file locking issues so far. </p>
<p>So with PHP on IIS I&#8217;ve found Hyper Cache worked better for me than Super Cache. </p>
]]></content:encoded>
			<wfw:commentRss>http://francisshanahan.com/index.php/2009/hyper-cache-vs-super-cache-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How I Tweaked WordPress</title>
		<link>http://francisshanahan.com/index.php/2009/how-i-tweaked-wordpress/</link>
		<comments>http://francisshanahan.com/index.php/2009/how-i-tweaked-wordpress/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 14:27:05 +0000</pubDate>
		<dc:creator>Francis</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[General Computing]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[Things I've Made]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[tweaking]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://francisshanahan.com/www/?p=1732</guid>
		<description><![CDATA[WordPress is pretty nice out of the box but there&#8217;s a few things you&#8217;ll want to do on top of the base install. I&#8217;ve been tweaking WordPress 2.7 since the day I installed it. It&#8217;s humming just as I like now and I figured I&#8217;d share the few things I changed.

I started with wordpess 2.5 which was my host&#8217;s default installation. I immediately upgraded to 2.7. This was as simple as ftp&#8217;ing some files across and running a database script.
I migrated my old data, which was in SQL Server into ...]]></description>
			<content:encoded><![CDATA[<p>WordPress is pretty nice out of the box but there&#8217;s a few things you&#8217;ll want to do on top of the base install. I&#8217;ve been tweaking WordPress 2.7 since the day I installed it. It&#8217;s humming just as I like now and I figured I&#8217;d share the few things I changed.</p>
<ol>
<li>I started with wordpess 2.5 which was my host&#8217;s default installation. I immediately upgraded to 2.7. This was as simple as ftp&#8217;ing some files across and running a database script.</li>
<li>I migrated my old data, which was in SQL Server into mySQL using some simple SQL scripts. This took about an hour as I&#8217;d never seen the wordpress scheme before. I lost my tags in the process but no big deal.</li>
<li>Then I grabbed the Arthemia Lite theme (<a href="http://colorlabsproject.com/arthemia/">http://colorlabsproject.com/arthemia/</a>) which I&#8217;d first seen on my buddy Chris Webb&#8217;s site (<a href="http://ckwebb.com" target="_blank">ckwebb.com</a>). The lite version is free but with reduced functionality.</li>
<li>I grabbed JCarousel (<a href="http://sorgalla.com/jcarousel/" target="_blank">http://sorgalla.com/jcarousel/</a>) and modified the index.php template to make the featured items scroll in the top right.</li>
<li>I threw in some Google Adsense ads into the main template.</li>
<li>I migrated from Feedburner to Google Feedburner and added in Ads into the RSS in the process.</li>
<li>I did some UI tweaks around the theme but nothing too crazy. E.g. Added an image to the Single Post page, updated the favicon etc.</li>
<li>As far as plugins go I&#8217;m using Akismet for spam prevention, Contact Form ][, All in One SEO and WP Super Cache.</li>
<li>Modified the Thumbnail script (timthumb) so I don&#8217;t have to upload the images to my server and can link to them directly. This makes new posts much much faster.</li>
</ol>
<p>That&#8217;s about it. Last night I upgraded from 2.7 to 2.7.1 which was very easy and took about 10 mins. Pretty happy so far.</p>
]]></content:encoded>
			<wfw:commentRss>http://francisshanahan.com/index.php/2009/how-i-tweaked-wordpress/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

