<?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>Maff Wilson&#039;s Webby Home</title>
	<atom:link href="http://maffwilson.co.uk/feed" rel="self" type="application/rss+xml" />
	<link>http://maffwilson.co.uk</link>
	<description>Projects, notes, play and contact details.</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:25:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Stopping Plugins Automatically Updating</title>
		<link>http://maffwilson.co.uk/117-stopping-plugins-automatically-updating</link>
		<comments>http://maffwilson.co.uk/117-stopping-plugins-automatically-updating#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:25:03 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=117</guid>
		<description><![CDATA[Chmod 444 /wp-content/plugins/plugin_name
To stop other users from (easily) auto-updating plugins that might have had a lot of customisation work done to them (and thus destroying all that work, grrrr) simply change permissions for the plugin in the plugins folder.  444 should be fine.  You can change this back as and when you need [...]]]></description>
			<content:encoded><![CDATA[<p>Chmod 444 /wp-content/plugins/plugin_name</p>
<p>To stop other users from (easily) auto-updating plugins that might have had a lot of customisation work done to them (and thus destroying all that work, grrrr) simply change permissions for the plugin in the plugins folder.  444 should be fine.  You can change this back as and when you need to edit the plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/117-stopping-plugins-automatically-updating/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Wordpress Mailing List Plugin</title>
		<link>http://maffwilson.co.uk/110-best-wordpress-mailing-list-plugin</link>
		<comments>http://maffwilson.co.uk/110-best-wordpress-mailing-list-plugin#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:04:07 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/110-best-wordpress-mailing-list-plugin</guid>
		<description><![CDATA[After looking for something for a while the best I could find &#8211; by a good margin &#8211; is Sendit.
&#8220;Sendit enable you to send newsletters and collect subscribers from your blog. You can manage one or more list and using in post/pages or using the widget(customizable). You can extract content from post or pages or [...]]]></description>
			<content:encoded><![CDATA[<p>After looking for something for a while the best I could find &#8211; by a good margin &#8211; is <a href="http://wordpress.org/extend/plugins/sendit/">Sendit</a>.</p>
<p>&#8220;Sendit enable you to send newsletters and collect subscribers from your blog. You can manage one or more list and using in post/pages or using the widget(customizable). You can extract content from post or pages or create your content to send to subscribers. You can also edit the template for each mailing lists just put some XHTML code on header and footer. Newsletter will be send in XHTML format.&#8221;</p>
<p>Works like a charm.</p>
<p>A tip: by default only admin can see the Newsletter option.</p>
<p>To fix it so that lesser mortals can see amd use the Newsletter system edit:</p>
<p><code>add_menu_page(__(‘Send’, ’sendit’), __(‘Newsletter’, ’sendit’), 8, __FILE__, ‘invianewsletter’);</code></p>
<p>(and subsequent lines for sub-menu options) </p>
<p>8 means admin: change this to, say, 5 for Editors.</p>
<p>Full numbers explanation here: <a href="http://codex.wordpress.org/Roles_and_Capabilities#User_Level_to_Role_Conversion">http://codex.wordpress.org/Roles_and_Capabilities#User_Level_to_Role_Conversion</a></p>
<p>Another tip:  the confirmation page (confirmation.php) didn&#8217;t work great with my theme &#8211; I had to edit after line 40 to make sure there were the right amount of div tags (<code>div="content"</code> is both a typo and redundant).</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/110-best-wordpress-mailing-list-plugin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress wp_options &#8211; what&#8217;s S?</title>
		<link>http://maffwilson.co.uk/107-wordpress-wp_options-whats-s</link>
		<comments>http://maffwilson.co.uk/107-wordpress-wp_options-whats-s#comments</comments>
		<pubDate>Thu, 13 May 2010 13:37:36 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=107</guid>
		<description><![CDATA[When editing something like ftp_credentials:
a:4:{s:8:&#8221;hostname&#8221;;s:11:&#8221;example.com&#8221;;s:8:&#8221;username&#8221;;s:5:&#8221;admin&#8221;;s:15:&#8221;connection_type&#8221;;s:4:&#8221;ftps&#8221;;s:4:&#8221;port&#8221;;s:17:&#8221;//ftp.example.com&#8221;;
the s is the number of characters in the following value.
]]></description>
			<content:encoded><![CDATA[<p>When editing something like ftp_credentials:</p>
<p>a:4:{s:8:&#8221;hostname&#8221;;s:11:&#8221;example.com&#8221;;s:8:&#8221;username&#8221;;s:5:&#8221;admin&#8221;;s:15:&#8221;connection_type&#8221;;s:4:&#8221;ftps&#8221;;s:4:&#8221;port&#8221;;s:17:&#8221;//ftp.example.com&#8221;;</p>
<p>the s is the number of characters in the following value.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/107-wordpress-wp_options-whats-s/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Claire Birtwistle Graphic Designer</title>
		<link>http://maffwilson.co.uk/103-claire-birtwistle-graphic-designer</link>
		<comments>http://maffwilson.co.uk/103-claire-birtwistle-graphic-designer#comments</comments>
		<pubDate>Thu, 29 Apr 2010 13:38:50 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Claire Birtwistle]]></category>
		<category><![CDATA[graphic design]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=103</guid>
		<description><![CDATA[I&#8217;ve recently completed a portfolio website for Claire Birtwistle who is about to graduate form Leeds College of Art in Graphic Design.
Claire&#8217;s website: clairebirtwistle.com.
The site is entirely bespoke, built by my own fair hands completely from scratch using PHP/MySql from a design Claire created.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently completed a portfolio website for Claire Birtwistle who is about to graduate form Leeds College of Art in Graphic Design.</p>
<p>Claire&#8217;s website: <a href="http://www.clairebirtwistle.com" target="_blank">clairebirtwistle.com</a>.</p>
<p>The site is entirely bespoke, built by my own fair hands completely from scratch using PHP/MySql from a design Claire created.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/103-claire-birtwistle-graphic-designer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oaktree Accountancy Plants An Acorn</title>
		<link>http://maffwilson.co.uk/100-oaktree-accountancy-plants-an-acorn</link>
		<comments>http://maffwilson.co.uk/100-oaktree-accountancy-plants-an-acorn#comments</comments>
		<pubDate>Thu, 08 Apr 2010 15:23:27 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Cockermouth]]></category>
		<category><![CDATA[Oaktree accountancy]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=100</guid>
		<description><![CDATA[Chris MacLeod has setup a local accountancy practice for the Cockermouth area, called Oaktree Accountancy
Link: Oaktree Accountancy.
]]></description>
			<content:encoded><![CDATA[<p>Chris MacLeod has setup a local accountancy practice for the Cockermouth area, called Oaktree Accountancy</p>
<p>Link: <a href="http://www.oakacc.co.uk/">Oaktree Accountancy</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/100-oaktree-accountancy-plants-an-acorn/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2m Careers Expand Into Energy Sector</title>
		<link>http://maffwilson.co.uk/92-2m-careers-expand-into-energy-sector</link>
		<comments>http://maffwilson.co.uk/92-2m-careers-expand-into-energy-sector#comments</comments>
		<pubDate>Thu, 08 Apr 2010 15:11:22 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[2m]]></category>
		<category><![CDATA[Edinburgh]]></category>
		<category><![CDATA[recruitment]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=92</guid>
		<description><![CDATA[The lovely ladies at 2m have expanded rapidly into Energy recruitment.
Link: 2m Careers.
]]></description>
			<content:encoded><![CDATA[<p>The lovely ladies at 2m have expanded rapidly into Energy recruitment.</p>
<p>Link: <a href="http://www.2mcareers.com">2m Careers</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/92-2m-careers-expand-into-energy-sector/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Toby Williams Wedding Photography</title>
		<link>http://maffwilson.co.uk/90-toby-williams-wedding-photography</link>
		<comments>http://maffwilson.co.uk/90-toby-williams-wedding-photography#comments</comments>
		<pubDate>Thu, 08 Apr 2010 15:08:59 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Edinburgh]]></category>
		<category><![CDATA[photogrpahy]]></category>
		<category><![CDATA[Toby Williams]]></category>
		<category><![CDATA[wedding photography]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=90</guid>
		<description><![CDATA[Toby has recently updated some of the work in the wedding section of his website:
Link: Toby Williams Wedding Photography
His Press and PR stuff is still there too.
Link: Toby Williams Photography
]]></description>
			<content:encoded><![CDATA[<p>Toby has recently updated some of the work in the wedding section of his website:</p>
<p>Link: <a href="http://www.tobyphoto.co.uk/weddings">Toby Williams Wedding Photography</a></p>
<p>His Press and PR stuff is still there too.</p>
<p>Link: <a href="http://www.tobyphoto.co.uk/">Toby Williams Photography</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/90-toby-williams-wedding-photography/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Geeks New Site</title>
		<link>http://maffwilson.co.uk/87-geeks-new-site</link>
		<comments>http://maffwilson.co.uk/87-geeks-new-site#comments</comments>
		<pubDate>Thu, 08 Apr 2010 15:04:00 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Edinburgh]]></category>
		<category><![CDATA[geeks]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=87</guid>
		<description><![CDATA[I&#8217;m late writing this post as the new design has been &#8216;live&#8217; since January but mention should go to this beautiful new theme which was designed by designed by Stone Creative Design but built entirely by my own fair hand using a Wordpress backend.
Geeks is a great website with a lot of good, exciting and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m late writing this post as the new design has been &#8216;live&#8217; since January but mention should go to this beautiful new theme which was designed by designed by <a href="http://stonecreativedesign.com">Stone Creative Design</a> but built entirely by my own fair hand using a Wordpress backend.</p>
<p>Geeks is a great website with a lot of good, exciting and energetic young people <feels creakingly old> working on it.  </p>
<p>Link: <a href="http://www.geeks.co.uk">Geeks website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/87-geeks-new-site/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Change the number of posts on archive pages</title>
		<link>http://maffwilson.co.uk/78-solved-change-the-number-of-posts-on-archive-pages</link>
		<comments>http://maffwilson.co.uk/78-solved-change-the-number-of-posts-on-archive-pages#comments</comments>
		<pubDate>Mon, 05 Apr 2010 13:49:22 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[archive page]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=78</guid>
		<description><![CDATA[Been searching for how to do this for a while &#8211; the solution became much easier when I realised (Doh!) that it was the wordpress loop that controlled the number of posts being displayed per page rather than the theme.  
First tried blogmum&#8217;s suggestion of using:

   &#60;? query_posts('showposts=3'); ?&#62;
Add this to archives.php [...]]]></description>
			<content:encoded><![CDATA[<p>Been searching for how to do this for a while &#8211; the solution became much easier when I realised (Doh!) that it was the wordpress loop that controlled the number of posts being displayed per page rather than the theme.  </p>
<p>First tried <a href="http://blogmum.com/2009/06/how-to-change-the-number-of-posts-on-wordpress-archive-pages/">blogmum</a>&#8217;s suggestion of using:</p>
<blockquote><p>
   <code>&lt;? query_posts('showposts=3'); ?&gt;</code></p>
<p>Add this to archives.php to change the number of posts in category, date and author archives; to search.php to change search results&#8217; pages, or to index.php for the front page (as ever, this holds true for the majority of themes, but not absolutely all). The line needs to go *before* the loop <? if ( have_posts() )... etc. Change the number to whatever number of posts you want.</p></blockquote>
<p>However, this only showed all the categories posts which wasn&#8217;t any good for me as the archive pages are category based.</p>
<p><a href="http://codex.wordpress.org/Template_Tags/query_posts">Wordpress documentation</a> gave me the correct solution.</p>
<blockquote><p><code>&lt;?php<br />
global $query_string;<br />
query_posts($query_string . "&#038;posts_per_page=11");<br />
?&gt;</code></p></blockquote>
<p>Note: Place a call to query_posts() in one of your Template files before The Loop begins. The wp_query object will generate a new SQL query using your parameters. When you do this, WordPress ignores the other parameters it receives via the URL (such as page number or category). If you want to preserve that information, you can use the $query_string global variable in the call to query_posts(), as above.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/78-solved-change-the-number-of-posts-on-archive-pages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Wordpress Top Category Function</title>
		<link>http://maffwilson.co.uk/74-solved-wordpress-top-category-function</link>
		<comments>http://maffwilson.co.uk/74-solved-wordpress-top-category-function#comments</comments>
		<pubDate>Fri, 22 Jan 2010 12:24:28 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[styling]]></category>
		<category><![CDATA[top category]]></category>
		<category><![CDATA[top category level]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=74</guid>
		<description><![CDATA[For the new geeks.co.uk design I needed a way of finding which top level category any given post was in and use that in the CSS to make various design elements of the page the specific colour of that top level category. 
On geeks.co.uk, some posts are in a top level category, eg all News [...]]]></description>
			<content:encoded><![CDATA[<p>For the new <a href="http://geeks.co.uk">geeks.co.uk</a> design I needed a way of finding which top level category any given post was in and use that in the CSS to make various design elements of the page the specific colour of that top level category. </p>
<p>On geeks.co.uk, some posts are in a top level category, eg all News articles, and some are in sub categories, eg some Game Reviews are in Wii but not PSP etc.</p>
<p>Also, CSS won&#8217;t work with spaces in the names of labels so for categories like &#8220;Game Reviews&#8221; we have to remove the space to be useful as a CSS label.</p>
<p>Sometimes you want the function call to echo the category name to the page, eg when it&#8217;s used as a title of the page or in breadcrumbs.  Sometimes you just want it returned to use in a CSS label, for example.</p>
<p>So here is my function:</p>
<p><code>function get_top_cat($css = false, $echo = false){<br />
	$maffcat = (array) get_the_category();<br />
	$maffpar = get_cat_name($maffcat[0]->category_parent);<br />
	if ($maffpar == ''){<br />
		$maffcat = (array) get_the_category();<br />
		$maffpar = $maffcat[0]->cat_name;<br />
	}</p>
<p>	if ($css){$maffpar = str_replace (" ", "", $maffpar);}</p>
<p>	if ($echo){ echo $maffpar;}<br />
	else{<br />
	return $maffpar;<br />
	}</p>
<p>}</code></p>
<p>Stick that in your theme&#8217;s functions.php and you should be able to call it by, for example,</p>
<p><code>get_top_cat('', 'true') - will put top category name with spaces on your page<br />
get_top_cat('true', '') - will put top category name without spaces in your code</code></p>
<p>in your webpage files like single.php, archive.php etc</p>
<p>Nb. this works for two-level categories &#8211; it seems that this could easily be extended for more levels by further nesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/74-solved-wordpress-top-category-function/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
