<?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>Mr Portman &#124; Primary School Teacher</title>
	<atom:link href="http://www.mrportman.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mrportman.co.uk</link>
	<description>Website and blog of Clive Portman, a primary school teacher working at Trowse Primary School, Norwich, UK</description>
	<lastBuildDate>Sat, 06 Feb 2010 21:59:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Calling all teachers interested in web apps!</title>
		<link>http://www.mrportman.co.uk/ict/calling-all-teachers-interested-in-web-apps/282/</link>
		<comments>http://www.mrportman.co.uk/ict/calling-all-teachers-interested-in-web-apps/282/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 21:55:45 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[ict]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/?p=282</guid>
		<description><![CDATA[I&#8217;ve come across a Google Docs spreadsheet by way of Tom Barrett, one of the more prolific education twitterers out there. The aim of the document is to collect data on what services are blocked or unblocked by all the LAs in England and Wales.
This is important! As teachers excited by technology many of us [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve come across a Google Docs spreadsheet by way of <a href="http://twitter.com/tombarrett" target="_blank">Tom Barrett</a>, one of the more prolific education twitterers out there. The aim of the document is to collect data on what services are blocked or unblocked by all the LAs in England and Wales.</p>
<p>This is important! As teachers excited by technology many of us are being prevented from innovating because our LAs are blocking everything we come across. I&#8217;m fascinated by this document. Already I can see that Norfolk LA is stricter than all the others completed so far, whereas Notts is the least restrictive.</p>
<p>Please, if you are a teacher in England or Wales, could you have a look and contribute. All you need is a Google Docs account. Here&#8217;s the link: <a rel="nofollow" href="http://bit.ly/bEwfsb" target="_blank">http://bit.ly/bEwfsb</a>. This kind of information is gold-dust and would make an ideal discussion for NAACE, provided we can complete it of course&#8230;</p>
<p>&#8230;so please help!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/ict/calling-all-teachers-interested-in-web-apps/282/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Belated thoughts on BETT 2010</title>
		<link>http://www.mrportman.co.uk/ict/belated-thoughts-on-bett-2010/257/</link>
		<comments>http://www.mrportman.co.uk/ict/belated-thoughts-on-bett-2010/257/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 21:57:09 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[ict]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/?p=257</guid>
		<description><![CDATA[It&#8217;s coming up for a month since BETT 2010, and a few days off work sick gives me the opportunity to gather my thoughts&#8230;
Without doubt, Microsoft had the most impact for me. They seemed to have more prominent stands this year, in the prime spaces on the ground floor, near the centre. What struck me? [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s coming up for a month since BETT 2010, and a few days off work sick gives me the opportunity to gather my thoughts&#8230;</p>
<p>Without doubt, Microsoft had the most impact for me. They seemed to have more prominent stands this year, in the prime spaces on the ground floor, near the centre. What struck me? Their vision of cloud computing for education, named live@edu, and the fact they were actively encouraging people to use Office 2010 beta.</p>
<p style="text-align: left;"><a href="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/liveedu1.jpg"><img class="size-full wp-image-266  alignleft" title="liveedu" src="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/liveedu1.jpg" alt="" width="415" height="90" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">So, what is live@edu? It&#8217;s a free resource provided by Microsoft for educational institutions. With it you get student email, access to collaborative Microsoft tools like Office Live, help with keeping students&#8217; data private, 25GB of online storage per student and a few other things.</p>
<p style="text-align: left;">I&#8217;m excited by it because I see it as the ideal future for the VLE. It&#8217;s free, which is very desirable considering the potential cutbacks to education funding due to the recession, and, it&#8217;s secure, something which concerns me with the VLEs procured by LAs in England. Then, purely from a learning point-of-view, it&#8217;d be exposing children to real applications rather than products designed to mimic such applications in a school environment (although that&#8217;s probably only relevant in KS1 and KS2).</p>
<p style="text-align: left;">
<p style="text-align: left;"><a href="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/office2010.jpg"><img class="alignnone size-full wp-image-270" title="office2010" src="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/office2010.jpg" alt="" width="187" height="66" /></a></p>
<p style="text-align: left;">I noticed 2009 brought some changes to Microsoft&#8217;s attitude towards Beta testing. I don&#8217;t know how they did it before, but it seems they have been very positive in encouraging home and small business users to use beta versions of Windows 7. I downloaded it in July, for example. At BETT 2010, they were actively telling people to donwload the Office 2010 beta, although I&#8217;d actually done that in December.</p>
<p style="text-align: left;">Anyway, I really like Office 2010, and have no intention of going back to Open Office. Office 2010 just works, and we&#8217;ll happily pay for whatever licences we need come the Autumn when the beta runs out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/ict/belated-thoughts-on-bett-2010/257/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Typekit: not quite yet?</title>
		<link>http://www.mrportman.co.uk/webdev/typekit-not-quite-yet/240/</link>
		<comments>http://www.mrportman.co.uk/webdev/typekit-not-quite-yet/240/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 09:51:38 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/?p=240</guid>
		<description><![CDATA[I&#8217;d been struggling with a font for the post headings on my home page and wanted to try something different. Having experimented with Typekit on a concept site of mine (onX3), I thought I&#8217;d give it a go on Mr Portman.
Typekit allows you to use fonts on websites other than those already on people&#8217;s computers. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d been struggling with a font for the post headings on my home page and wanted to try something different. Having experimented with Typekit on a concept site of mine (<a title="On time, one spec, on budget..." href="http://onx3.com" target="_blank">onX3</a>), I thought I&#8217;d give it a go on Mr Portman.</p>
<p>Typekit allows you to use fonts on websites other than those already on people&#8217;s computers. Once registered, you setup a site, add a few lines of script in the &lt;head&gt; element of your page, and you can then use these other fonts in your stylesheet.</p>
<p>I found a font I thought would work really well, called Adelle, so set it up and used it for my post headings. It worked within seconds, but wait&#8230;</p>
<p>&#8230;it looked awful! I was using Firefox at the time and the font was looking blocky (at 30px):</p>
<p><a href="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/adelle1.jpg"><img class="alignnone size-full wp-image-242" title="Blocky text when using Typekit: Adelle font at 30px" src="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/adelle1.jpg" alt="Blocky text when using Typekit: Adelle font at 30px" width="182" height="174" /></a></p>
<p>Perhaps it was the font-size? Here&#8217;s what it looks like at 18px, 16px and 14px:</p>
<p><a href="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/adelle2.jpg"><img class="alignnone size-full wp-image-243" title="Blocky text when using Typekit: Adelle font at 18px, 16px and 14px" src="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/adelle2.jpg" alt="Blocky text when using Typekit: Adelle font at 18px, 16px and 14px" width="173" height="153" /></a></p>
<p>So, I though I&#8217;d find out if it was just Firefox. I opened up IE8 (at 18px, 16px and 14px):</p>
<p><a href="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/adelle4.jpg"><img class="alignnone size-full wp-image-244" title="Blocky text when using Typekit: Adelle font at 180x, 16px and 14px" src="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/adelle4.jpg" alt="Blocky text when using Typekit: Adelle font at 30px" width="173" height="157" /></a></p>
<p>Hmmm. I then tried a few other fonts, but couldn&#8217;t find any I liked, so I can&#8217;t say whether it was just that font or Typekit itself. The fact it works fine on my other site, (<a title="On time, one spec, on budget..." href="http://onx3.com" target="_blank">onX3</a>) suggests it might be the font. I finally settled for Arial:</p>
<p><a href="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/adelle3.jpg"><img class="alignnone size-full wp-image-245" title="The same text with Arial at 18px, 16px and 14px" src="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/02/adelle3.jpg" alt="The same text with Arial at 18px, 16px and 14px" width="178" height="154" /></a></p>
<p>I know even this doesn&#8217;t look perfect, but it&#8217;s a lot better than the others.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/webdev/typekit-not-quite-yet/240/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using WordPress permalinks with localhost</title>
		<link>http://www.mrportman.co.uk/webdev/using-wordpress-permalinks-with-localhost/183/</link>
		<comments>http://www.mrportman.co.uk/webdev/using-wordpress-permalinks-with-localhost/183/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 18:02:18 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/?p=183</guid>
		<description><![CDATA[I&#8217;ve changed the permalink structure on this site, using the Settings tab. It automatically create a .htaccess file for you.
Today, I wanted to set up a fresh installation of this site on my local server, which is WAMP. It just wasn&#8217;t having it, so I looked into the WAMP settings. This would also work on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve changed the permalink structure on this site, using the Settings tab. It automatically create a .htaccess file for you.</p>
<p>Today, I wanted to set up a fresh installation of this site on my local server, which is WAMP. It just wasn&#8217;t having it, so I looked into the WAMP settings. This would also work on other Apache bundles, I believe:</p>
<p>Open your httpd.conf and search for the following lines:</p>
<blockquote><p>#LoadModule rewrite_module modules/mod_rewrite.so</p></blockquote>
<p>&#8230;uncomment it (remove the hash), and:</p>
<blockquote><p>&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride All<br />
Order deny,allow<br />
Deny from all<br />
&lt;/Directory&gt;</p></blockquote>
<p>&#8230;making sure AllowOverride is set to All, as above. Sorted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/webdev/using-wordpress-permalinks-with-localhost/183/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why I don&#8217;t think WordPress makes a good CMS</title>
		<link>http://www.mrportman.co.uk/webdev/why-i-dont-think-wordpress-makes-a-good-cms/173/</link>
		<comments>http://www.mrportman.co.uk/webdev/why-i-dont-think-wordpress-makes-a-good-cms/173/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 20:11:24 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/?p=173</guid>
		<description><![CDATA[A quick Google for WordPress CMS reveals a lot of people seeing it as a real content management system (CMS). I beg to differ.
WordPress is a blogging platform. It was written to allow people to easily create and maintain a blog. With each release, new features are added and the excellent WordPress community combined with [...]]]></description>
			<content:encoded><![CDATA[<p>A quick Google for WordPress CMS reveals a lot of people seeing it as a real content management system (CMS). I beg to differ.</p>
<p>WordPress is a blogging platform. It was written to allow people to easily create and maintain a blog. With each release, new features are added and the excellent WordPress community combined with the ease of producing a plugin, means a hell of a lot of functionality exists for WordPress. But, and it&#8217;s a big butt, it was originally built as a bloggin platform, not as a CMS.</p>
<p>I&#8217;ve made considerable use of WordPress and experimented with it as a CMS, but it seems that every project I work on I find something else which causes me a pain. It&#8217;s not surprising: I&#8217;m using something intended as a blogging platform for a job it wasn&#8217;t designed to do.</p>
<p>Contrast this with a real CMS. I&#8217;ve used Expression Engine for numerous sites and it&#8217;s such a pleasure to work with. Like WordPress, there&#8217;s also a great community, but this time it&#8217;s working on something intended to be used as a CMS, so the resultant plugins are more relevant to what I&#8217;m doing. Everything just takes less time with Expression Engine.</p>
<p>But what about cost? For the price of an Expression Engine commercial licence, and the time it takes me to set-up a site using it, unless the site I&#8217;m building is something fairly straighforward, the labour involved in tweaking WordPress usually means I&#8217;m saving my clients money by using the former. That&#8217;s the bottom line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/webdev/why-i-dont-think-wordpress-makes-a-good-cms/173/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress plugin: More Fields</title>
		<link>http://www.mrportman.co.uk/webdev/wordpress-plugin-more-fields/176/</link>
		<comments>http://www.mrportman.co.uk/webdev/wordpress-plugin-more-fields/176/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 06:08:04 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/?p=176</guid>
		<description><![CDATA[What a little gem this is! Install it and you can set up a box on your write/edit pages with easily accessible custom fields which show all the time.
It makes WordPress a much more realistic proposition as a simple CMS.
]]></description>
			<content:encoded><![CDATA[<p>What a little gem this is! Install it and you can set up a box on your write/edit pages with easily accessible custom fields which show all the time.</p>
<p>It makes WordPress a much more realistic proposition as a simple CMS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/webdev/wordpress-plugin-more-fields/176/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Accessing custom field data in WordPress</title>
		<link>http://www.mrportman.co.uk/webdev/accessing-custom-field-data-in-wordpress/168/</link>
		<comments>http://www.mrportman.co.uk/webdev/accessing-custom-field-data-in-wordpress/168/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 20:39:31 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/?p=168</guid>
		<description><![CDATA[Custom fields add extra functionality to WordPress. They allow you to add a field and a value, then use that information for whatever you want. I&#8217;ve recently been working on a project which lists courses which can last several months, and I wanted to use custom fields to create Begin and End dates.
Despite the praise [...]]]></description>
			<content:encoded><![CDATA[<p>Custom fields add extra functionality to WordPress. They allow you to add a field and a value, then use that information for whatever you want. I&#8217;ve recently been working on a project which lists courses which can last several months, and I wanted to use custom fields to create Begin and End dates.</p>
<p>Despite the praise custom fields are getting, I didn&#8217;t think they were that easy to add to a post &#8211; for this particular project I was being very mindful of making things as simple for the client as possible. However, I found a solution for that in a plugin called More Fields, reviewed elsewhere on this site.</p>
<p>Anyway, another problem with custom fields is that they are stored as a string. This I found to be a real pain. Let&#8217;s say I save a Begin date of 22/02/2010 and another of 16/04/2010.  If I want to compare these using the standard WP syntax for custom fields:</p>
<blockquote><p>query_posts(&#8216;meta_key=miles&amp;meta_compare=&lt;=&amp;meta_value=22&#8242;);</p></blockquote>
<p>&#8230;it doesnt work! Why? Because it&#8217;s a string. That means 22/02/2010 is higher than 16/04/2010! That&#8217;s a pity, because it meant I couldn&#8217;t use the meta_compare within the query_posts tag. Instead, I had to extract the custom fields with the WP loop, as so:</p>
<blockquote><p>$beginDate = get_post_meta($post-&gt;ID, &#8220;Begins&#8221;, true);<br />
$endDate = get_post_meta($post-&gt;ID, &#8220;Ends&#8221;, true);</p>
<p>$postMonths = get_months($beginDate, $endDate);</p></blockquote>
<p>The above code shows the Begins and Ends custom fields being extracted into variables before being passed into a function I talk about elsewhere.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/webdev/accessing-custom-field-data-in-wordpress/168/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a list of the next six months using PHP</title>
		<link>http://www.mrportman.co.uk/webdev/creating-a-list-of-the-next-six-months-using-php/162/</link>
		<comments>http://www.mrportman.co.uk/webdev/creating-a-list-of-the-next-six-months-using-php/162/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 20:14:55 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/?p=162</guid>
		<description><![CDATA[For a recent project, I needed to create a list of the next six months in the sidebar on a WordPress site. Visitors would then select one of these months and be shown a list of courses which were running that month.
It all sounds fairly straightforward, but there were a few problems: one with PHP’s [...]]]></description>
			<content:encoded><![CDATA[<p>For a recent project, I needed to create a list of the next six months in the sidebar on a WordPress site. Visitors would then select one of these months and be shown a list of courses which were running that month.</p>
<p>It all sounds fairly straightforward, but there were a few problems: one with PHP’s date function and another with the fact that some of the courses would span several months and the client was happy for visitors to drop in on the classes whenever they liked.</p>
<p><strong>PHP’s date function problem</strong></p>
<p>My original plan was to use the following within a WHILE loop to create a list of the next six months:</p>
<blockquote><p>echo date(&#8216;F Y&#8217;, strtotime(&#8216;+1 month&#8217;));</p></blockquote>
<p>…but I was finding it would sometimes miss out a month. What the date function does is add an arbitrary number of days (which it thinks is a month) to the present date, rather than just add a month. So, if the date was 31<sup>st</sup> January, it would add 31 days and end up in March, thereby missing February! In the end I came up with the following:</p>
<blockquote><p>$count = 0;</p>
<p>while ($count &lt;= 5) {</p>
<p>$thisMonth = date(&#8216;n&#8217;);</p>
<p>$monthNum = $thisMonth[0] + $count;</p>
<p>$monthNameAndYear = date(&#8220;F Y&#8221;, mktime(0, 0, 0, $monthNum, 10));</p>
<p>echo &#8220;&lt;li&gt;&lt;a href=&#8217;http:/website.com/wp/?cat=15&amp;amp;month=&#8221; . $count . &#8220;&#8216; title=&#8217;View all courses taking place during &#8221; . $monthNameAndYear . &#8220;&#8216;&gt;&#8221;;</p>
<p>echo $monthNameAndYear;</p>
<p>echo &#8220;&lt;/a&gt;&lt;/li&gt;\n&#8221;;</p>
<p>$count++;</p>
<p>}</p></blockquote>
<p>So, what it does is get the number of the today’s month, add the $count variable to it and use the result in another date() function using the mktime() function. The count tops out at five, limiting the list to the next six months of the year.</p>
<p><strong>Courses spanning several months</strong></p>
<p>Several methods failed me before I moved onto this one. Basically, if the courses only lasted for a day, I could’ve edited the post date and shown future dates and that would’ve been no problem. And again, if they had only lasted two months I could’ve had some custom fields and just checked the starting month and the finishing month. Unfortunately, it isn’t quite so simple if you’ve got more months in between. Fortunately, I managed to find this somewhere on the web (apologies for not crediting you if you’re the author – if you contact me I’ll make sure I do):</p>
<blockquote><p>function get_months($beginDate, $endDate) {</p>
<p>$beginDate = explode(&#8220;/&#8221;,$beginDate);</p>
<p>$reverseBeginDate = $beginDate[2] . &#8220;/&#8221; . $beginDate[1] . &#8220;/&#8221; . $beginDate[0];</p>
<p>$endDate = explode(&#8220;/&#8221;,$endDate);</p>
<p>$reverseEndDate = $endDate [2] . &#8220;/&#8221; . $endDate [1] . &#8220;/&#8221; . $endDate [0];</p>
<p>$time1  = strtotime($reverseBeginDate );</p>
<p>$time2  = strtotime($reverseEndDate );</p>
<p>$my     = date(&#8216;mY&#8217;, $time2);</p>
<p>$months = array(date(&#8216;F&#8217;, $time1));</p>
<p>while($time1 &lt; $time2) {</p>
<p>$time1 = strtotime(date(&#8216;Y-m-d&#8217;, $time1).&#8217; +1 month&#8217;);</p>
<p>if(date(&#8216;mY&#8217;, $time1) != $my &amp;&amp; ($time1 &lt; $time2))</p>
<p>$months[] = date(&#8216;F&#8217;, $time1);</p>
<p>}</p>
<p>$months[] = date(&#8216;F&#8217;, $time2);</p>
<p>return $months;</p>
<p>}</p></blockquote>
<p>…I have edited the code slightly, but essentially you give it two dates and it tells you all the months in between. All I had to do then was check the array in the template for the presence of whatever month visitors were after. Bish, bash, bosh!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/webdev/creating-a-list-of-the-next-six-months-using-php/162/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding the category of a post within the WordPress loop</title>
		<link>http://www.mrportman.co.uk/webdev/finding-the-category-of-a-post-within-the-wordpress-loop/158/</link>
		<comments>http://www.mrportman.co.uk/webdev/finding-the-category-of-a-post-within-the-wordpress-loop/158/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 19:01:07 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/webdev/finding-the-category-of-a-post-within-the-wordpress-loop/158/</guid>
		<description><![CDATA[I’d read somewhere that to get the category of a post you used this within the loop:
$post-&#62;post_category
…but for some reason this wasn’t returning anything. After a while looking for a solution, I went for an alternative method using the function:
get_the_category()
It complicates the issue slightly, while adding power, by returning the category of a post as [...]]]></description>
			<content:encoded><![CDATA[<p>I’d read somewhere that to get the category of a post you used this within the loop:</p>
<blockquote><p>$post-&gt;post_category</p></blockquote>
<p>…but for some reason this wasn’t returning anything. After a while looking for a solution, I went for an alternative method using the function:</p>
<blockquote><p>get_the_category()</p></blockquote>
<p>It complicates the issue slightly, while adding power, by returning the category of a post as an array. Then, each category has it’s own array of credentials, such as id, name and so on. As I knew there was only going to be one category attached to my posts, and I was only texting for a category anyway, for this project I ended up with this:</p>
<blockquote><p>$cat = get_the_category();</p>
<p>if ($cat[0]-&gt;name) {</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/webdev/finding-the-category-of-a-post-within-the-wordpress-loop/158/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Suitcase Kid by Jacqueline Wilson</title>
		<link>http://www.mrportman.co.uk/bookreviews/the-suitcase-kid-by-jacqueline-wilson/149/</link>
		<comments>http://www.mrportman.co.uk/bookreviews/the-suitcase-kid-by-jacqueline-wilson/149/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 09:15:36 +0000</pubDate>
		<dc:creator>Mr Portman</dc:creator>
				<category><![CDATA[bookreviews]]></category>

		<guid isPermaLink="false">http://www.mrportman.co.uk/?p=149</guid>
		<description><![CDATA[Now, I know this looks like a book for girls, but it isn&#8217;t. Not just for girls anyway. I read it to the whole class last year and everyone loved it. And the girls brought in their own copy and read along as well!
Some teachers don&#8217;t like Jacqueline Wilson&#8217;s writing style, which is really chatty. [...]]]></description>
			<content:encoded><![CDATA[<p>Now, I know this looks like a book for girls, but it isn&#8217;t. Not just for girls anyway. I read it to the whole class last year and everyone loved it. And the girls brought in their own copy and read along as well!</p>
<p>Some teachers don&#8217;t like Jacqueline Wilson&#8217;s writing style, which is really chatty. I think that as I long as you learn when a chatty writing style is okay, and when it isn&#8217;t, why shouldn&#8217;t you sometimes write like Jacqueline Wilson! You could do a lot worse!</p>
<p>Anyway, I&#8217;d heard The Suitcase Kid was a really good read and that it dealt with an issue a lot of children face nowadays: parents getting divorced.  The story centres on ten-year-old Andy, whose parents have split up and moved in with other people.  No longer living in her idyllic Mulberry Cottage, Andy now lives out of her suitcase &#8211; one week with Mum&#8217;s new family and the next week with Dad&#8217;s.</p>
<p><a href="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/01/thesuitcasekid.jpg"><img class="alignnone size-full wp-image-153" title="The Suitcase Kid" src="http://www.mrportman.co.uk/wordpress/wp-content/uploads/2010/01/thesuitcasekid.jpg" alt="" width="130" height="197" /></a></p>
<p>It&#8217;s a lovely story which deals with a lot of the emotions and troubles experienced by children whose parents are separated or separating.</p>
<p>I&#8217;d recommend this to any child in Y5 or Y6. Although I can&#8217;t see many boys reading it (the publishers changing the cover, might help), I would encourage them to do so if experiencing problems at home, and all girls will probably like it. I think it is a great book to read to a class. For children, I think Y5/Y6 would be the ideal age and girls, in particular. Strong readers in Y4 might also enjoy it.</p>
<p>****~ (4/5)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mrportman.co.uk/bookreviews/the-suitcase-kid-by-jacqueline-wilson/149/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
