<?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>GuyWeb &#187; Wordpress</title>
	<atom:link href="http://guyweb.co.uk/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://guyweb.co.uk</link>
	<description>Guy Carberry&#039;s personal website</description>
	<lastBuildDate>Thu, 05 May 2011 13:07:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>WordPress conditional statements for simpletons</title>
		<link>http://guyweb.co.uk/2008/08/22/wordpress-conditional-statements-for-simpletons/</link>
		<comments>http://guyweb.co.uk/2008/08/22/wordpress-conditional-statements-for-simpletons/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 14:33:35 +0000</pubDate>
		<dc:creator>Guy Carberry</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.guyweb.co.uk/?p=1185</guid>
		<description><![CDATA[I&#8217;m a PHP thickie to be honest. I blunder around attempting to understand what I&#8217;m doing with programming but rarely have a clue. It&#8217;s all just magic fairy dust to me. When I get something working, frankly I&#8217;m amazed. Today I conquered WordPress conditionals. I thought I&#8217;d log down what I did because I&#8217;m likely [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a PHP thickie to be honest. I blunder around attempting to understand what I&#8217;m doing with programming but rarely have a clue. It&#8217;s all just magic fairy dust to me. When I get something working, frankly I&#8217;m amazed. Today I conquered WordPress conditionals. I thought I&#8217;d log down what I did because I&#8217;m likely to need this knowledge again in the future. If it helps out others along the way, great.</p>
<h2>The challenge</h2>
<p>When creating a WordPress theme you can use a number of individual template files to control different types of content. However, very little often changes from page to page. You end up retyping the same code into each template. When you want to make a change to your theme you have to go and edit the code numerous times across different templates. A better solution would be to have a few template files as possible and apply a different output based on certain conditions. WordPress offers us <a href="http://codex.wordpress.org/Conditional_Tags">conditional tags</a> to do this very thing.</p>
<p>Imagine my scenario. I have blog posts published in full on the front-page of my site. Each of these posts contains a link in the title which takes us to the full, permalinked article plus comments. I can use the same WordPress loop for the homepage as for the single articles save for a two things: 1. The link in the title isn&#8217;t needed on the single post as it would self-link. 2. The link to the comments isn&#8217;t needed for the same reason.</p>
<h2>The solution</h2>
<p><code><strong>&lt;?php if (is_single()) { ?&gt;</strong><br />&lt;?php the_title(); ?&gt;<br /><strong>&lt;?php } else { ?&gt;</strong> <br />&lt;a class="bookmark" href="&lt;?php the_permalink() ?&gt;"<br />rel="bookmark" title="Permanent Link to &lt;?php the_title(); ?&gt; "&gt;<br />&lt;?php the_title(); ?&gt; &lt;/a&gt;<br /><strong>&lt;?php } ?&gt;</strong> </code></p>
<p>The code above illustrates the syntax to use. The emboldened bits provide the conditional logic and the bits between are the code I want to output. And there you have it. Simple really.</p>
]]></content:encoded>
			<wfw:commentRss>http://guyweb.co.uk/2008/08/22/wordpress-conditional-statements-for-simpletons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to reference the theme directory root in WordPress</title>
		<link>http://guyweb.co.uk/2007/04/30/how-to-reference-the-theme-directory-root-in-wordpress/</link>
		<comments>http://guyweb.co.uk/2007/04/30/how-to-reference-the-theme-directory-root-in-wordpress/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 10:36:07 +0000</pubDate>
		<dc:creator>Guy Carberry</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.guyweb.co.uk/2007/04/30/how-to-reference-the-theme-directory-root-in-wordpress/</guid>
		<description><![CDATA[&#60;?php bloginfo('stylesheet_directory'); ?&#62; Something I have to hunt for every time I build a WordPress theme is the method of referencing images and other elements placed within the theme directory I&#8217;ve created. The code above is the means of doing this.]]></description>
			<content:encoded><![CDATA[<p><code>&lt;?php bloginfo('stylesheet_directory'); ?&gt;</code></p>
<p>Something I have to hunt for every time I build a WordPress theme is the method of referencing images and other elements placed within the theme directory I&#8217;ve created. The code above is the means of doing this.</p>
]]></content:encoded>
			<wfw:commentRss>http://guyweb.co.uk/2007/04/30/how-to-reference-the-theme-directory-root-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing GuyWeb V5</title>
		<link>http://guyweb.co.uk/2005/12/27/introducing-guyweb-v5/</link>
		<comments>http://guyweb.co.uk/2005/12/27/introducing-guyweb-v5/#comments</comments>
		<pubDate>Tue, 27 Dec 2005 10:38:01 +0000</pubDate>
		<dc:creator>Guy Carberry</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.guyweb.co.uk/2005/12/27/introducing-guyweb-v5/</guid>
		<description><![CDATA[You&#8217;re viewing the latest version of GuyWeb.co.uk which is very nearly complete. I&#8217;ve been working away on this for the last few months with the aim of making the site more usable to the various different audiences who read it. Here are my rough notes on the new design. Firstly, the site should perform as [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re viewing the latest version of GuyWeb.co.uk which is very nearly complete. I&#8217;ve been working away on this for the last few months with the aim of making the site more usable to the various different audiences who read it. Here are my rough notes on the new design.</p>
<p>Firstly, the site should perform as an online portfolio of my work. I&#8217;ve got to make more of this feature and hope to add to it shortly.</p>
<p>Secondly, the site needs to present friends and family with recent photos from my exciting life.</p>
<p>Thirdly, it needs to have links to my thoughts and ramblings &#8211; articles. I&#8217;ve not written too much lately and although I hope to do more over the next year, it&#8217;s probably best not to put the main emphasis of the site on the &#8216;blog&#8217; part.</p>
<p>Fourthly, I record interesting, relevant links daily using my del.icio.us account. These are now visible via the &#8216;recent links&#8217; feature on the homepage as well as a daily digest in article format.</p>
<p>So, the homepage now introduces the site before presenting links to recent content and then links to all archived content.</p>
<p>The article pages themselves now make use of <a href="http://www.gravatar.com">gravatars</a> if you have one (incidentally, I&#8217;m still awaiting mine). The comments are now open for discussion by default.</p>
<p>Content-wise, I&#8217;m going through all the old posts to check the internal links which have been broken since the days of switching from Movable Type. The information-architecture will be fine-tuned, making use of good contextual-navigation.</p>
<p>As I say, the design is nealry done but there are <a href="http://guycarberry.tadalist.com/lists/public/135325">some things I still need to do</a>. For example, more graphics will be added, icons may change and I&#8217;ll also be listing all of the sites that have influenced this design.</p>
<div class="feature">
<p>The homepage should be looking like this:</p>
<p><img src='http://www.guyweb.co.uk/images/guywebv5.gif' alt='guyweb-v5' /></p>
</div>
<p>If it doesn&#8217;t, you&#8217;re probably viewing it in a bad browser that doesn&#8217;t support web standards or W3C specification. For example, Internet Explorer on both PC and Mac (although it will just about display correctly on IE6/PC). It&#8217;s worth viewing it in Firefox or Opera on PC and Safari on the Mac. Browsing the web as a whole will be greatly imporved if you use a standards-compliant browser.</p>
<p>Here&#8217;s what it looks like in a bunch of good browsers on Windows:</p>
<div class="feature">
<p><img src='http://www.guyweb.co.uk/images/gwonfirefox.gif' alt='guyweb on firefox' /></p>
<p>GuyWeb v5 on Firefox 1.5</p>
<p><img src='http://www.guyweb.co.uk/images/gwonie.gif' alt='guyweb on ie' /></p>
<p>GuyWeb v5 on Internet Explorer 6</p>
<p><img src='http://www.guyweb.co.uk/images/gwonopera.gif' alt='guyweb on opera' /></p>
<p>GuyWeb v5 on Opera 8</p>
<p><img src='http://www.guyweb.co.uk/images/gwpsp1.jpg' alt='gw-psp-1' /></p>
<p>GuyWeb v5 on Sony PSP</p>
<p><img src="http://www.guyweb.co.uk/images/layout-mac-sorted.gif" width="400" height="350" alt="GuyWeb V3" title="GuyWeb V3" /></p>
<p>GuyWeb v3 &#8211; how things used to look.</p>
</div>
<p>Feedback is encouraged so let rip..</p>
]]></content:encoded>
			<wfw:commentRss>http://guyweb.co.uk/2005/12/27/introducing-guyweb-v5/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Biting the bullet</title>
		<link>http://guyweb.co.uk/2005/06/30/biting-the-bullet/</link>
		<comments>http://guyweb.co.uk/2005/06/30/biting-the-bullet/#comments</comments>
		<pubDate>Thu, 30 Jun 2005 11:14:52 +0000</pubDate>
		<dc:creator>Guy Carberry</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.guyweb.co.uk/2005/06/30/biting-the-bullet/</guid>
		<description><![CDATA[I&#8217;m #live# redesigning. This post will grow with my thoughts on the process. Most of you will find this completely boring so feel free to skip past this! It&#8217;s more of a record for me than anything else. I&#8217;ve been happy to use the Kubrick theme for the last couple of months but I&#8217;m now [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m #live# redesigning. This post will grow with my thoughts on the process. Most of you will find this completely boring so feel free to skip past this! It&#8217;s more of a record for me than anything else.</p>
<p>I&#8217;ve been happy to use the Kubrick theme for the last couple of months but I&#8217;m now finally in the position to put my new design into place. It&#8217;s all rather bare-bones at the moment but something more substantial will appear shortly. This is a step-by-step process. Step 1 being the underlying WordPress template code. I&#8217;ve got to clean up all the old bits left over from the default theme. Step 2 will see me work on the CSS styles.</p>
<p>For the initial rather plain design, I&#8217;ve taken inspiration from the likes of Garrett and Tom who avoid cluttering up their blogs with navigation. I may continue along this route or may find that I actally need a nav bar. We&#8217;ll see. The search box is currently at the bottom of each page but I might move it nearer the top. A lot of this is farily experimental at the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://guyweb.co.uk/2005/06/30/biting-the-bullet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transitioning to WordPress 1.5 from Movable Type 3.11</title>
		<link>http://guyweb.co.uk/2005/03/24/transitioning-to-wordpress-15-from-movable-type-311/</link>
		<comments>http://guyweb.co.uk/2005/03/24/transitioning-to-wordpress-15-from-movable-type-311/#comments</comments>
		<pubDate>Thu, 24 Mar 2005 16:38:28 +0000</pubDate>
		<dc:creator>Guy Carberry</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.guyweb.co.uk/2005/03/24/transitioning-to-wordpress-15-from-movable-type-311/</guid>
		<description><![CDATA[I will be using this post to document my transition from one CMS to the other. I&#8217;ll detail any bugs i encounter along the way and link to or explain to the solutions. Blogroll doesn&#8217;t order by name by default (You have to change it from &#8216;random&#8217; in link &#8211; link categories -edit) Categories don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I will be using this post to document my transition from one CMS to the other. I&#8217;ll detail any bugs i encounter along the way and link to or explain to the solutions.</p>
<ol>
<li>Blogroll doesn&#8217;t order by name by default (You have to change it from &#8216;random&#8217; in link &#8211; link categories -edit)</li>
<li><a href="http://wordpress.org/support/topic.php?id=11766#post-138417">Categories don&#8217;t order by name in the default template</a></li>
<li><a href="http://codex.wordpress.org/Combating_Comment_Spam">How to stop comment spam in old entries by SQL</a></li>
<li><a href="http://codex.wordpress.org/Plugins/Auto_shutoff_comments">How to put a time-limit on a comments form.</a> (worth adding the &#8216;ping&#8217; bit too.)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://guyweb.co.uk/2005/03/24/transitioning-to-wordpress-15-from-movable-type-311/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

