<?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 &#187; wordpress</title>
	<atom:link href="http://maffwilson.co.uk/tag/wordpress/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>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>
		<item>
		<title>Neo Gallery&#8217;s New Site</title>
		<link>http://maffwilson.co.uk/36-neos-gallerys-new-site</link>
		<comments>http://maffwilson.co.uk/36-neos-gallerys-new-site#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:35:00 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Cockermouth]]></category>
		<category><![CDATA[Cumbria]]></category>
		<category><![CDATA[Market Place]]></category>
		<category><![CDATA[Neo Gallery]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=36</guid>
		<description><![CDATA[Debs did most of the work choosing the theme and sorting out the content &#8211;  but was able to lend her a hand sorting out some of the installation and configuration issues.  
Jolly good looking site I think:  Neo Gallery.
Neo&#8217;s Gallery can be found in Market Place, Cockermouth, Cumbria.
]]></description>
			<content:encoded><![CDATA[<p>Debs did most of the work choosing the theme and sorting out the content &#8211;  but was able to lend her a hand sorting out some of the installation and configuration issues.  </p>
<p>Jolly good looking site I think:  <a href="http://www.neosgallery.com/">Neo Gallery</a>.</p>
<p>Neo&#8217;s Gallery can be found in Market Place, Cockermouth, Cumbria.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/36-neos-gallerys-new-site/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Wordpress Error: &#8220;open_basedir restriction in effect&#8221;</title>
		<link>http://maffwilson.co.uk/30-wordpress-error-open_basedir-restriction-in-effect</link>
		<comments>http://maffwilson.co.uk/30-wordpress-error-open_basedir-restriction-in-effect#comments</comments>
		<pubDate>Tue, 10 Nov 2009 21:28:51 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[open_basedir]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[session path]]></category>
		<category><![CDATA[supanames]]></category>
		<category><![CDATA[tmp]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=30</guid>
		<description><![CDATA[Keep getting this error on Supanames hosted websites:
Warning: touch() [function.touch]: open_basedir restriction in effect. File(/tmp/all-in-one-seo-pack.zip) is not within the allowed path(s): (/home/mydomain/public_html/) in /home/mydoamin/public_html/wp-admin/includes/file.php on line 175
Download failed. Could not create Temporary file
Finally got the answer from Supanames support, which relates to this half of the answer:
http://support.supanames.co.uk/KB/a83/i-cant-upload-images-files-using-upload-file-script.aspx
What you also need to do is:
Enable PHP5 and [...]]]></description>
			<content:encoded><![CDATA[<p>Keep getting this error on Supanames hosted websites:</p>
<p><code>Warning: touch() [function.touch]: open_basedir restriction in effect. File(/tmp/all-in-one-seo-pack.zip) is not within the allowed path(s): (/home/mydomain/public_html/) in /home/mydoamin/public_html/wp-admin/includes/file.php on line 175</p>
<p>Download failed. Could not create Temporary file</code></p>
<p>Finally got the answer from Supanames support, which relates to this half of the answer:</p>
<p>http://support.supanames.co.uk/KB/a83/i-cant-upload-images-files-using-upload-file-script.aspx</p>
<p>What you also need to do is:<br />
Enable PHP5 and also the session save path.</p>
<p>Hey presto the annoying error gone (give it a day or so).</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/30-wordpress-error-open_basedir-restriction-in-effect/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
