<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>nick boldison</title>
	
	<link>http://nick.boldison.com</link>
	<description>Freelance WordPress &amp; Web Developer Yorkshire, UK</description>
	<lastBuildDate>Thu, 22 Nov 2012 08:34:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/NickBoldison" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="nickboldison" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>WordPress: A Twitter widget that works</title>
		<link>http://nick.boldison.com/wordpress/wordpress-a-twitter-widget-that-works/</link>
		<comments>http://nick.boldison.com/wordpress/wordpress-a-twitter-widget-that-works/#comments</comments>
		<pubDate>Fri, 19 Oct 2012 14:32:49 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=927</guid>
		<description><![CDATA[<p>The other day I noticed a Twitter widget I had created to pull in the latest Tweets from a user&#8217;s timeline into a WordPress theme had stopped working. I found out that it was because Twitter had updated their timeline&#8230;</p><p>The post <a href="http://nick.boldison.com/wordpress/wordpress-a-twitter-widget-that-works/">WordPress: A Twitter widget that works</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
The other day I noticed a Twitter widget I had created to pull in the latest Tweets from a user&#8217;s timeline into a WordPress theme had stopped working. I found out that it was because Twitter had updated their timeline and API and the old URL was now throwing back an error code of 34 (Sorry, that page does not exist).</p>
<p>And example of the old URL that was previously working is: http://twitter.com/statuses/user_timeline/captain_nick.xml.</p>
<p>The URL that a Google around found to work now was: http://api.twitter.com/1/statuses/user_timeline.xml?include_entities=true&amp;include_rts=true&amp;screen_name=captain_nick</p>
<p>I updated my widget and now it seems to work fine. But I though I&#8217;d pass on the widget that I&#8217;ve created in case it can save other people some time adding latest Tweets from Twitter into their WordPress theme as a widget.</p>
<p>First you will need to copy the code below and paste it into your functions.php file in the root of your theme.</p>
<pre class="brush: php">include TEMPLATEPATH . '/functions/widget-twitter.php'; // include the twitter sidget

/*
Gets last x Twitter stauses for a given user and formats in a UL/LI
*/
function getLastXTwitterStatus($userid,$x){

	$url = &quot;http://api.twitter.com/1/statuses/user_timeline.xml?include_entities=true&amp;include_rts=true&amp;screen_name=&quot;.$userid.&quot;&amp;count=&quot;.$x;

	$xml = simplexml_load_file($url);
	echo '&lt;ul class=&quot;tweets&quot;&gt;';
	foreach($xml-&gt;status as $status){
		$text = frog_twitterify( $status-&gt;text );
		echo '&lt;li&gt;'.utf8_decode($text).'&lt;/li&gt;';
	}
	echo '&lt;/ul&gt;';
}

/*
Formats a twitter post nicely
*/
function frog_twitterify($ret) {
	$ret = preg_replace(&quot;#(^|[n ])([w]+?://[w]+[^ &quot;nrt&lt; ]*)#&quot;, &quot;1&lt;a href=&quot;2&quot; target=&quot;_blank&quot;&gt;2&lt;/a&gt;&quot;, $ret);
	$ret = preg_replace(&quot;#(^|[n ])((www|ftp).[^ &quot;tnr&lt; ]*)#&quot;, &quot;1&lt;a href=&quot;http://2&quot; target=&quot;_blank&quot;&gt;2&lt;/a&gt;&quot;, $ret);
	$ret = preg_replace(&quot;/@(w+)/&quot;, &quot;&lt;a href=&quot;http://www.twitter.com/1&quot; target=&quot;_blank&quot;&gt;@1&lt;/a&gt;&quot;, $ret);
	$ret = preg_replace(&quot;/#(w+)/&quot;, &quot;&lt;a href=&quot;http://search.twitter.com/search?q=1&quot; target=&quot;_blank&quot;&gt;#1&lt;/a&gt;&quot;, $ret);
	return $ret;
}</pre>
<p>Basically the &#8216;getLastXTwitterStatus()&#8217; function is passed two variables the Twitter user ID and the number of Tweets to show. It then uses the Twitter API to collect those and display them in a UL &gt; LI format.</p>
<p>The &#8216;frog_twitterify()&#8217; function is used by the &#8217;getLastXTwitterStatus()&#8217; function to format the Tweets in a nice way&#8230;make it all pretty.</p>
<p>Make sure the include line at the top is there also and the path is correct for the next step&#8230;</p>
<p>Next you will need to create a new file called widget-twitter.php and place it in a folder named &#8216;functions&#8217; in the root of your theme. Copy the code below and paste it into your new file. This is used to create a widget that you can add to a sidebar.</p>
<pre class="brush: php">&lt;?php

/*
Plugin Name: Twitter Widget
Plugin URI: http://nick.boldison.com/wordpress/wordpress-a-twitter-widget-that-works/
Description: A widget to add your last Tweets to your sidebar.
Author: Nick Boldison
Version: 1
Author URI: http://nick.boldison.com
*/

class TwitterWidget extends WP_Widget {
    
	/** constructor */
    function TwitterWidget() {
		$options = array( 'description' =&gt; __('A widget to add your last Tweets to your sidebar.') );
		parent::WP_Widget(false, $name = 'Twitter Widget', $options);
    }

    /** @see WP_Widget::widget */
    function widget($args, $instance) {
        extract( $args );
        $title = apply_filters('widget_title', $instance['title']);
		$twitter_id = apply_filters('widget_user', $instance['user']);
		$count = apply_filters('widget_count', $instance['count']);
		?&gt;
		&lt;?php echo $before_widget; ?&gt;
		&lt;?php echo $before_title; ?&gt;&lt;?php echo $title; ?&gt;&lt;?php echo $after_title; ?&gt;
		&lt;?php
		// get last x tweets
		getLastXTwitterStatus($twitter_id,$count);
		?&gt;
		&lt;p&gt;Follow &lt;a href=&quot;http://twitter.com/#!/&lt;?php echo $twitter_id;?&gt;&quot; target=&quot;_blank&quot;&gt;@&lt;?php echo $twitter_id;?&gt;&lt;/a&gt;&lt;/p&gt;
		&lt;?php echo $after_widget; ?&gt;
        &lt;?php
    }

    /** @see WP_Widget::update */
    function update($new_instance, $old_instance) {
		$instance = $old_instance;
		$instance['title'] = strip_tags($new_instance['title']);
		$instance['user'] = strip_tags($new_instance['user']);
		$instance['count'] = strip_tags($new_instance['count']);
        return $instance;
    }

    /** @see WP_Widget::form */
    function form($instance) {
        $title = esc_attr($instance['title']);
		$user = esc_attr($instance['user']);
		$count = esc_attr($instance['count']);
        ?&gt;
        &lt;p&gt;
        	&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;&quot;&gt;&lt;?php _e('Title:'); ?&gt;&lt;/label&gt; 
        	&lt;input class=&quot;widefat&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id('title'); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name('title'); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $title; ?&gt;&quot; /&gt;
        &lt;/p&gt;
		&lt;p&gt;
        	&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id('user'); ?&gt;&quot;&gt;&lt;?php _e('Twitter User:'); ?&gt;&lt;/label&gt; 
        	&lt;input class=&quot;widefat&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id('user'); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name('user'); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $user; ?&gt;&quot; /&gt;
        &lt;/p&gt;
		&lt;p&gt;
        	&lt;label for=&quot;&lt;?php echo $this-&gt;get_field_id('count'); ?&gt;&quot;&gt;&lt;?php _e('Count:'); ?&gt;&lt;/label&gt; 
        	&lt;input class=&quot;widefat&quot; id=&quot;&lt;?php echo $this-&gt;get_field_id('count'); ?&gt;&quot; name=&quot;&lt;?php echo $this-&gt;get_field_name('count'); ?&gt;&quot; type=&quot;text&quot; value=&quot;&lt;?php echo $count; ?&gt;&quot; /&gt;
        &lt;/p&gt;
        &lt;?php
	}
}
// register TwitterWidget widget
add_action('widgets_init', create_function('', 'return register_widget(&quot;TwitterWidget&quot;);'));
?&gt;</pre>
<p>If you go to Appearance -&gt; Widgets now in your admin, the Twitter Widget should be there for you to drag onto a sidebar. If you do so, it will present 3 options: Title, User and Count. Here you should add a title of your choosing, your Twitter username and the number of Tweets to display.</p>
<p>Save and it should now pull Tweets into your sidebar.</p>
<p>The final step is to style the widget up using CSS in your styles.css file. AS it&#8217;s potentially different for each theme, you can do this as you wish. Otherwise it&#8217;ll pull in your default widget UL &gt; LI styles.</p>
<p>Hope that helps anyway!</p>
<p>The post <a href="http://nick.boldison.com/wordpress/wordpress-a-twitter-widget-that-works/">WordPress: A Twitter widget that works</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/wordpress/wordpress-a-twitter-widget-that-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress – How to get the blog description in HTML format</title>
		<link>http://nick.boldison.com/wordpress/wordpress-how-to-get-the-blog-description-in-html-format/</link>
		<comments>http://nick.boldison.com/wordpress/wordpress-how-to-get-the-blog-description-in-html-format/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 14:05:13 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=922</guid>
		<description><![CDATA[<p>Sometimes you may need to add a line break or a HTML tag to the blog description in WordPress to get it to do something other than just the plain tagline. Using the get_bloginfo(&#8216;description&#8217;); function will pull that out, but&#8230;</p><p>The post <a href="http://nick.boldison.com/wordpress/wordpress-how-to-get-the-blog-description-in-html-format/">WordPress &#8211; How to get the blog description in HTML format</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
Sometimes you may need to add a line break or a HTML tag to the blog description in WordPress to get it to do something other than just the plain tagline.</p>
<p>Using the get_bloginfo(&#8216;description&#8217;); function will pull that out, but it turns any HTML tags into HTML entities. A quick fix for that problem is to run it through a PHP function as well when you call it and the HTML tags will be used.</p>
<p>Here is how to do that:</p>
<pre class="brush: php">&lt;?php echo html_entity_decode(get_bloginfo('description')); ?&gt;</pre>
<p>The post <a href="http://nick.boldison.com/wordpress/wordpress-how-to-get-the-blog-description-in-html-format/">WordPress &#8211; How to get the blog description in HTML format</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/wordpress/wordpress-how-to-get-the-blog-description-in-html-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress : How to have query search posts only</title>
		<link>http://nick.boldison.com/wordpress/wordpress-how-to-have-query-search-posts-only/</link>
		<comments>http://nick.boldison.com/wordpress/wordpress-how-to-have-query-search-posts-only/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 13:28:40 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[search posts]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=700</guid>
		<description><![CDATA[<p>If you need to have your WordPress search only search posts for results, you can insert this code before the &#8216;if(have_posts()):&#8217; line on search.php and it will do that for you. // search only posts global $wp_query; $args = array_merge(&#8230;</p><p>The post <a href="http://nick.boldison.com/wordpress/wordpress-how-to-have-query-search-posts-only/">WordPress : How to have query search posts only</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
If you need to have your WordPress search only search posts for results, you can insert this code before the &#8216;if(have_posts()):&#8217; line on search.php and it will do that for you.</p>
<pre class="brush: php">// search only posts
global $wp_query;
$args = array_merge( $wp_query-&gt;query, array( 'post_type' =&gt; 'post' ) );
query_posts( $args ); </pre>
<p>Further to that you can add any arguments from the standard <a href="http://codex.wordpress.org/Class_Reference/WP_Query" target="_blank">WP_Query function</a> to there to make the search more custom <img src='http://nick.boldison.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The post <a href="http://nick.boldison.com/wordpress/wordpress-how-to-have-query-search-posts-only/">WordPress : How to have query search posts only</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/wordpress/wordpress-how-to-have-query-search-posts-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress : TinyMCE text editor shortcuts</title>
		<link>http://nick.boldison.com/wordpress/wordpress-tinymce-text-editor-shortcuts/</link>
		<comments>http://nick.boldison.com/wordpress/wordpress-tinymce-text-editor-shortcuts/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 20:26:51 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=692</guid>
		<description><![CDATA[<p>Some useful shortcuts for the TinyMCE editor in WordPress...</p><p>The post <a href="http://nick.boldison.com/wordpress/wordpress-tinymce-text-editor-shortcuts/">WordPress : TinyMCE text editor shortcuts</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
Some useful shortcuts for the TinyMCE editor in WordPress&#8230;</p>
<table>
<tbody>
<tr>
<th>Action</th>
<th>Windows</th>
<th>Mac</th>
</tr>
<tr>
<td>Insert a link</td>
<td>Alt + Shift + A</td>
<td>Option + Shift + A</td>
</tr>
<tr>
<td>Apply a blockquote</td>
<td>Alt + Shift + Q</td>
<td>Option + Shift + Q</td>
</tr>
<tr>
<td>Unordered list item</td>
<td>Alt + Shift + U</td>
<td>Option + Shift + U</td>
</tr>
<tr>
<td>Ordered list item</td>
<td>Alt + Shift + O</td>
<td>Option + Shift + O</td>
</tr>
<tr>
<td>Left align</td>
<td>Alt + Shift + L</td>
<td>Option + Shift + L</td>
</tr>
<tr>
<td>Center align</td>
<td>Alt + Shift + C</td>
<td>Option + Shift + C</td>
</tr>
<tr>
<td>Right align</td>
<td>Alt + Shift + R</td>
<td>Option + Shift + R</td>
</tr>
<tr>
<td>Switch to HTML mode</td>
<td>Alt + Shift + E</td>
<td>Option + Shift + E</td>
</tr>
<tr>
<td>Insert &lt;!&#8211;more&#8211;&gt;</td>
<td>Alt + Shift + T</td>
<td>Option + Shift + T</td>
</tr>
<tr>
<td>Show full toolbar</td>
<td>Alt + Shift + Z</td>
<td>Option + Shift + Z</td>
</tr>
<tr>
<td>Full screen mode</td>
<td>Alt + Shift + G</td>
<td>Option + Shift + G</td>
</tr>
<tr>
<td>New paragraph</td>
<td>Ctrl + P</td>
<td>Command + P</td>
</tr>
<tr>
<td>Copy</td>
<td>Ctrl + C</td>
<td>Command + C</td>
</tr>
<tr>
<td>Paste</td>
<td>Ctrl + P</td>
<td>Command + P</td>
</tr>
<tr>
<td>Bold</td>
<td>Ctrl + B</td>
<td>Command + B</td>
</tr>
<tr>
<td>Italic</td>
<td>Ctrl + I</td>
<td>Command + I</td>
</tr>
<tr>
<td>Underline</td>
<td>Ctrl + U</td>
<td>Command + U</td>
</tr>
<tr>
<td>New heading H1-H6</td>
<td>Ctrl + 1-6</td>
<td>Command + 1-6</td>
</tr>
</tbody>
</table>
<p>The post <a href="http://nick.boldison.com/wordpress/wordpress-tinymce-text-editor-shortcuts/">WordPress : TinyMCE text editor shortcuts</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/wordpress/wordpress-tinymce-text-editor-shortcuts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Robotic curtain</title>
		<link>http://nick.boldison.com/blog/robotic-curtain/</link>
		<comments>http://nick.boldison.com/blog/robotic-curtain/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 13:33:32 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=203</guid>
		<description><![CDATA[<p>Everyone should have one of these...</p><p>The post <a href="http://nick.boldison.com/blog/robotic-curtain/">Robotic curtain</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
Everyone should have one of these&#8230;</p>
<p><iframe width="648" height="359" src="http://www.youtube.com/embed/rKhbUjVyKIc" frameborder="0" allowfullscreen></iframe></p>
<p>Read more about it here: <a href="http://www.niklasroy.com/project/88/my-little-piece-of-privacy" target="_blank">http://www.niklasroy.com/project/88/my-little-piece-of-privacy</a></p>
<p>The post <a href="http://nick.boldison.com/blog/robotic-curtain/">Robotic curtain</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/blog/robotic-curtain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get your latest Tweet using the JSON timeline</title>
		<link>http://nick.boldison.com/websites/javascript/get-your-latest-tweet-using-the-json-timeline/</link>
		<comments>http://nick.boldison.com/websites/javascript/get-your-latest-tweet-using-the-json-timeline/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 17:35:55 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=646</guid>
		<description><![CDATA[<p>There are a few ways in which I have seen to get the latets Tweet from Twitter to display on a site. The easiest solution I have found uses the JSON timeline of Tweets. In the example below, I have&#8230;</p><p>The post <a href="http://nick.boldison.com/websites/javascript/get-your-latest-tweet-using-the-json-timeline/">Get your latest Tweet using the JSON timeline</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script><br />
There are a few ways in which I have seen to get the latets Tweet from Twitter to display on a site. The easiest solution I have found uses the JSON timeline of Tweets.</p>
<p>In the example below, I have used this method and formatted the tweets into a list. It can then be styled how you like from there.</p>
<h2>The Javascript</h2>
<pre class="brush: js">function twitterCallback2(twitters) {
  var statusHTML = [];
  for (var i=0; i&lt;twitters.length; i++){
    var username = twitters[i].user.screen_name;
    var status = twitters[i].text.replace(/((https?|s?ftp|ssh)://[^&quot;s&lt;&gt;]*[^.,;'&quot;&gt;:s&lt;&gt;)]!])/g, function(url) {
      return '&lt;a href=&quot;'+url+'&quot;&gt;'+url+'&lt;/a&gt;';
    }).replace(/B@([_a-z0-9]+)/ig, function(reply) {
      return  reply.charAt(0)+'&lt;a href=&quot;http://twitter.com/'+reply.substring(1)+'&quot;&gt;'+reply.substring(1)+'&lt;/a&gt;';
    });
    statusHTML.push('&lt;li&gt;&lt;span&gt;'+status+'&lt;/span&gt; &lt;a style=&quot;font-size:85%&quot; href=&quot;http://twitter.com/'+username+'/statuses/'+twitters[i].id_str+'&quot;&gt;' + relative_time(twitters[i].created_at)+'&lt;/a&gt;&lt;/li&gt;');
  }
  jQuery('.twitter_update_list').html(statusHTML.join(''));
}

function relative_time(time_value) {
  var values = time_value.split(&quot; &quot;);
  time_value = values[1] + &quot; &quot; + values[2] + &quot;, &quot; + values[5] + &quot; &quot; + values[3];
  var parsed_date = Date.parse(time_value);
  var relative_to = (arguments.length &gt; 1) ? arguments[1] : new Date();
  var delta = parseInt((relative_to.getTime() - parsed_date) / 1000);
  delta = delta + (relative_to.getTimezoneOffset() * 60);

  if (delta &lt; 60) {
    return 'less than a minute ago';
  } else if(delta &lt; 120) {
    return 'about a minute ago';
  } else if(delta &lt; (60*60)) {
    return (parseInt(delta / 60)).toString() + ' minutes ago';
  } else if(delta &lt; (120*60)) {
    return 'about an hour ago';
  } else if(delta &lt; (24*60*60)) {
    return 'about ' + (parseInt(delta / 3600)).toString() + ' hours ago';
  } else if(delta &lt; (48*60*60)) {
    return '1 day ago';
  } else {
    return (parseInt(delta / 86400)).toString() + ' days ago';
  }
}</pre>
<p>The twitterCallback2() function formats the Tweets nicely for you and uses the relative_time() function to get the time it was created and display that.</p>
<h2>The HTML</h2>
<p>Below is the HTML you should use to display the Tweets. If you want more than 1, simply change the value of &#8216;count&#8217; so it is greater.</p>
<pre class="brush: xml">&lt;ul class=&quot;twitter_update_list&quot;&gt;
	&lt;li&gt;Tweets will replace this...&lt;/li&gt;
&lt;/ul&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://twitter.com/statuses/user_timeline/captain_nick.json?callback=twitterCallback2&amp;amp;count=2&quot;&gt;&lt;/script&gt;
&lt;p&gt;Follow &lt;a href=&quot;http://twitter.com/#!/captain_nick&quot; target=&quot;_blank&quot;&gt;@captain_nick&lt;/a&gt;&lt;/p&gt;</pre>
<p>The post <a href="http://nick.boldison.com/websites/javascript/get-your-latest-tweet-using-the-json-timeline/">Get your latest Tweet using the JSON timeline</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/websites/javascript/get-your-latest-tweet-using-the-json-timeline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress : The proper way to create a home page template that isn’t the standard list of blog articles</title>
		<link>http://nick.boldison.com/wordpress/wordpress-the-proper-way-to-create-a-home-page-template-that-isnt-the-standard-list-of-blog-articles/</link>
		<comments>http://nick.boldison.com/wordpress/wordpress-the-proper-way-to-create-a-home-page-template-that-isnt-the-standard-list-of-blog-articles/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 16:23:08 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=485</guid>
		<description><![CDATA[<p>A quick guide to correctly set WordPress up to have a custom home page template.</p><p>The post <a href="http://nick.boldison.com/wordpress/wordpress-the-proper-way-to-create-a-home-page-template-that-isnt-the-standard-list-of-blog-articles/">WordPress : The proper way to create a home page template that isn&#8217;t the standard list of blog articles</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script><br />
For a while I used to hack around themes to get a home page that had a different look to the standard list of blog articles that you see and created a blog page elsewhere to handle that. It was messy and evidently the incorrect way to go about things. I know WordPress for being flexible and having thought of most circumstances of what people want to do, so I figured the must be a proper way to do it.</p>
<h2>New home page</h2>
<p>Create a page using a text editor and name it something like main.php. This will be the new home page.<br />
Below is the general code you would add when creating a home page that isn&#8217;t a list of blog posts. essentially, it&#8217;s just a replica of the code used when creating a custom <a href="http://codex.wordpress.org/Pages#Page_Templates" target="_blank">page template</a>.</p>
<pre class="brush: php">&lt;?php
/**
 * Template Name: Home
 *
 * @package WordPress
 * @subpackage Theme Name
 */

get_header(); ?&gt;

&lt;?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
		
		&lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;

                &lt;?php if(has_post_thumbnail()){ ?&gt;
			&lt;?php the_post_thumbnail('home'); ?&gt;
		&lt;?php } ?&gt;
        
		&lt;div id=&quot;content&quot;&gt;
		
			&lt;?php the_content(); ?&gt;
		
		&lt;/div&gt;
		
&lt;?php endwhile; // end of the loop. ?&gt;
		
&lt;?php get_footer(); ?&gt;</pre>
<p>Make sure that the &#8216;Template Name: Home&#8217; is at the top of the file as WordPress will read this when checking for page templates. Once done, upload it to the theme folder on you site and in the admin, create a page called something like &#8216;Home&#8217;. In the right column, you should see a box named &#8216;Page Attributes&#8217;. Select the&#8217;Home&#8217; template and save the page.</p>
<h2>Blog home page</h2>
<p>We don&#8217;t need to create a custom php file for the blog page as we will just be using the standard index.php as that&#8217;s what it&#8217;s there for! All we need to do is create a page in the WordPress admin and name it something like &#8216;Blog&#8217;. Just whatever you want the slug to be really for the blog list page. Don&#8217;t select a template for this page, just leave it as default.</p>
<h2>Setting it all up&#8230;</h2>
<p>All that needs to be done now is to set up the theme so that the home page and blog page do what you want them to. Go to Settings -&gt; Reading in your WordPress admin.<br />
For the option &#8216;Front end display&#8217;, check &#8216;A static page (select below)&#8217; . Now for the &#8216;Front page&#8217; dropdown, select &#8216;Home&#8217; or whetever you named the home page and &#8216;Blog&#8217; for the &#8216;Posts page&#8217; dropdown.</p>
<p><img class="alignnone size-full wp-image-492" title="Screen shot 2011-03-27 at 16.58.51" src="http://nick.boldison.com/wp-content/uploads/2011/03/Screen-shot-2011-03-27-at-16.58.511.png" alt="" width="444" height="295" /></p>
<p>Now if you go to the home page of your theme, it should display the home page we just created. Obviously you can add anything to that main.php to make it as creative as you like. Just add the blog link in to get to that and it will be found at the URL you set it to when adding the &#8216;Blog&#8217; page in the admin.</p>
<p>Here is an exmaple of a site I did this with recently that has a cusotm home page and the blog page linked at the top: <a href="http://dinosaurpr.co.uk/" target="_blank">http://dinosaurpr.co.uk/</a></p>
<p>The post <a href="http://nick.boldison.com/wordpress/wordpress-the-proper-way-to-create-a-home-page-template-that-isnt-the-standard-list-of-blog-articles/">WordPress : The proper way to create a home page template that isn&#8217;t the standard list of blog articles</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/wordpress/wordpress-the-proper-way-to-create-a-home-page-template-that-isnt-the-standard-list-of-blog-articles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress : Creating a Twitter Widget</title>
		<link>http://nick.boldison.com/wordpress/wordpress-creating-a-twitter-widget/</link>
		<comments>http://nick.boldison.com/wordpress/wordpress-creating-a-twitter-widget/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 13:05:03 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=474</guid>
		<description><![CDATA[<p>A guide on how to create a fairly flexible Twitter widget for your site or themes you build.</p><p>The post <a href="http://nick.boldison.com/wordpress/wordpress-creating-a-twitter-widget/">WordPress : Creating a Twitter Widget</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script><br />
Here is an easy way to create a fairly customisable Twitter Widget for your WordPress blog. For the following, we need to add the code to the functions.php file within the root of your theme&#8217;s file.</p>
<h3>1. The Widget</h3>
<p>Firstly, you need to create the function for the actual widget. The function here uses a Twitter Widget to display the latest tweets from your account. You can change certain variables in here as you wish, such as the background colour and the text colour.</p>
<pre class="brush: php">&lt;?php

function twitter_widget()
{
    $settings = get_option(&quot;widget_twitter&quot;);

    $twitter_id = $settings['twitter_id'];
    $twitter_width = $settings['twitter_width'];
    $twitter_height = $settings['twitter_height'];

    echo &quot;&lt;div class=&quot;widget&quot;&gt;
    &lt;h1 class=&quot;side_nav_title&quot;&gt;Follow us on Twitter&lt;/h1&gt;
	&lt;script src=&quot;http://widgets.twimg.com/j/2/widget.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
	new TWTR.Widget({
	version: 2,
	type: 'profile',
	rpp: 3,
	interval: 6000,
	width: &quot;.$twitter_width.&quot;,
	height: &quot;.$twitter_height.&quot;,
	theme: {
	shell: {
	background: '#F3F3F3',
	color: '#232323'
	},
	tweets: {
	background: '#F3F3F3',
	color: '#232323',
	links: '#f9a424'
	}
	},
	features: {
	scrollbar: false,
	loop: false,
	live: false,
	hashtags: true,
	timestamp: true,
	avatars: false,
	behavior: 'all'
	}
	}).render().setUser('&quot;.$twitter_id.&quot;').start();
	&lt;/script&gt;
	&lt;/div&gt;&quot;;
}

?&gt;</pre>
<h3>2. The Twitter Widget admin</h3>
<p>Next, we create the admin for the widget; this is what appears once we drag the widget into a sidebar and WordPress gives us a list of options for it.<br />
Here we are creating options for the Twitter username, width and height of the box. You could also add in the colours for the background and text if you wish, just add in extra ones like in the example below.</p>
<pre class="brush: php">&lt;?php

function twitter_widget_admin() {

	$settings = get_option(&quot;widget_twitter&quot;);
	
	// update options
	if (isset($_POST['update_twitter'])) {
	
		$settings['twitter_id'] = strip_tags(stripslashes($_POST['twitter_id']));
		$settings['twitter_width'] = strip_tags(stripslashes($_POST['twitter_width']));
		$settings['twitter_height'] = strip_tags(stripslashes($_POST['twitter_height']));
		
		update_option(&quot;widget_twitter&quot;,$settings);
	}

	echo '&lt;p&gt;
	&lt;label for=&quot;twitter_id&quot;&gt;Twitter Name:
	&lt;input id=&quot;twitter_id&quot; name=&quot;twitter_id&quot; type=&quot;text&quot; class=&quot;widefat&quot; value=&quot;'.$settings['twitter_id'].'&quot; /&gt;&lt;/label&gt;&lt;/p&gt;';
	echo '&lt;p&gt;
	&lt;label for=&quot;twitter_width&quot;&gt;Width:
	&lt;input id=&quot;twitter_width&quot; name=&quot;twitter_width&quot; type=&quot;text&quot; class=&quot;widefat&quot; value=&quot;'.$settings['twitter_width'].'&quot; /&gt;&lt;/label&gt;&lt;/p&gt;';
	echo '&lt;p&gt;
	&lt;label for=&quot;twitter_height&quot;&gt;Height:
	&lt;input id=&quot;twitter_height&quot; name=&quot;twitter_height&quot; type=&quot;text&quot; class=&quot;widefat&quot; value=&quot;'.$settings['twitter_height'].'&quot; /&gt;&lt;/label&gt;&lt;/p&gt;';
	echo '&lt;input type=&quot;hidden&quot; id=&quot;update_twitter&quot; name=&quot;update_twitter&quot; value=&quot;1&quot; /&gt;';

}

?&gt;</pre>
<h3>3. Registering the Widget</h3>
<p>Now all that is left to do is to register the widget this is done with the following 2 lines of code.</p>
<pre class="brush: php">&lt;?php

register_sidebar_widget('Twitter Widget', 'twitter_widget');
register_widget_control('Twitter Widget', 'twitter_widget_admin');

?&gt;</pre>
<h3>4. Using the Widget</h3>
<p>Now to use this widget and add it to one of your sidebar menus go to Appearance -&gt; Widgets in your WordPress admin and it will be available to add to your sidebars with the title &#8216;Twitter Widget&#8217;. Once you drag it to your sidebar, it will give the options which you can manage. Simply add your Twitter username, the width it should be and the height the box should be. Now the widget should appear on the front end of your site in the sidebar you put it in.</p>
<h3>5. Full code</h3>
<p>Below is the full code for creating the Twitter Widget. Simply add it to your functions.php file in your theme folder.</p>
<pre class="brush: php">&lt;?php

function twitter_widget()
{
    $settings = get_option(&quot;widget_twitter&quot;);

    $twitter_id = $settings['twitter_id'];
    $twitter_width = $settings['twitter_width'];
    $twitter_height = $settings['twitter_height'];

    echo &quot;&lt;div class=&quot;widget&quot;&gt;
    &lt;h1 class=&quot;side_nav_title&quot;&gt;Follow us on Twitter&lt;/h1&gt;
	&lt;script src=&quot;http://widgets.twimg.com/j/2/widget.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/javascript&quot;&gt;
	new TWTR.Widget({
	version: 2,
	type: 'profile',
	rpp: 3,
	interval: 6000,
	width: &quot;.$twitter_width.&quot;,
	height: &quot;.$twitter_height.&quot;,
	theme: {
	shell: {
	background: '#F3F3F3',
	color: '#232323'
	},
	tweets: {
	background: '#F3F3F3',
	color: '#232323',
	links: '#f9a424'
	}
	},
	features: {
	scrollbar: false,
	loop: false,
	live: false,
	hashtags: true,
	timestamp: true,
	avatars: false,
	behavior: 'all'
	}
	}).render().setUser('&quot;.$twitter_id.&quot;').start();
	&lt;/script&gt;
	&lt;/div&gt;&quot;;
}

function twitter_widget_admin() {

	$settings = get_option(&quot;widget_twitter&quot;);
	
	// update options
	if (isset($_POST['update_twitter'])) {
	
		$settings['twitter_id'] = strip_tags(stripslashes($_POST['twitter_id']));
		$settings['twitter_width'] = strip_tags(stripslashes($_POST['twitter_width']));
		$settings['twitter_height'] = strip_tags(stripslashes($_POST['twitter_height']));
		
		update_option(&quot;widget_twitter&quot;,$settings);
	}

	echo '&lt;p&gt;
	&lt;label for=&quot;twitter_id&quot;&gt;Twitter Name:
	&lt;input id=&quot;twitter_id&quot; name=&quot;twitter_id&quot; type=&quot;text&quot; class=&quot;widefat&quot; value=&quot;'.$settings['twitter_id'].'&quot; /&gt;&lt;/label&gt;&lt;/p&gt;';
	echo '&lt;p&gt;
	&lt;label for=&quot;twitter_width&quot;&gt;Width:
	&lt;input id=&quot;twitter_width&quot; name=&quot;twitter_width&quot; type=&quot;text&quot; class=&quot;widefat&quot; value=&quot;'.$settings['twitter_width'].'&quot; /&gt;&lt;/label&gt;&lt;/p&gt;';
	echo '&lt;p&gt;
	&lt;label for=&quot;twitter_height&quot;&gt;Height:
	&lt;input id=&quot;twitter_height&quot; name=&quot;twitter_height&quot; type=&quot;text&quot; class=&quot;widefat&quot; value=&quot;'.$settings['twitter_height'].'&quot; /&gt;&lt;/label&gt;&lt;/p&gt;';
	echo '&lt;input type=&quot;hidden&quot; id=&quot;update_twitter&quot; name=&quot;update_twitter&quot; value=&quot;1&quot; /&gt;';

}

register_sidebar_widget('Twitter Widget', 'twitter_widget');
register_widget_control('Twitter Widget', 'twitter_widget_admin');

?&gt;</pre>
<p>Depending upon your styling and the CSS you use on your site, it should create a widget in your sidebar like this.</p>
<p style="text-align: center;"><img class="size-full wp-image-476 aligncenter" title="Picture 1" src="http://nick.boldison.com/wp-content/uploads/2010/12/Picture-1.png" alt="" width="319" height="351" /></p>
<p>The post <a href="http://nick.boldison.com/wordpress/wordpress-creating-a-twitter-widget/">WordPress : Creating a Twitter Widget</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/wordpress/wordpress-creating-a-twitter-widget/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>WordPress : Redirecting to a random page</title>
		<link>http://nick.boldison.com/wordpress/wordpress-redirecting-to-a-random-page/</link>
		<comments>http://nick.boldison.com/wordpress/wordpress-redirecting-to-a-random-page/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 12:13:29 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=468</guid>
		<description><![CDATA[<p>How to create a random redirect using the wp_redirect() function built into WordPress.</p><p>The post <a href="http://nick.boldison.com/wordpress/wordpress-redirecting-to-a-random-page/">WordPress : Redirecting to a random page</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script><br />
To create a random redirect in WordPress, you need to query your posts and get a random post ID and then use wp_redirect() function in WordPress to redirect users away to that page.</p>
<p>&nbsp;</p>
<p>Additionally if the redirect is a 301, you can add a status to the wp_redirect() function in the following way.</p>
<p>&nbsp;</p>
<p>The default value if left empty is 302.</p>
<p>The post <a href="http://nick.boldison.com/wordpress/wordpress-redirecting-to-a-random-page/">WordPress : Redirecting to a random page</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/wordpress/wordpress-redirecting-to-a-random-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress : Creating a menu of subpages from post ID of a child page</title>
		<link>http://nick.boldison.com/wordpress/wordpress-creating-a-menu-of-subpages-from-post-id-of-a-child-page/</link>
		<comments>http://nick.boldison.com/wordpress/wordpress-creating-a-menu-of-subpages-from-post-id-of-a-child-page/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 21:18:53 +0000</pubDate>
		<dc:creator>Nick Boldson</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://nick.boldison.com/?p=459</guid>
		<description><![CDATA[<p>A step by step guide on how to create a menu of child pages by using the post ID of a child page.</p><p>The post <a href="http://nick.boldison.com/wordpress/wordpress-creating-a-menu-of-subpages-from-post-id-of-a-child-page/">WordPress : Creating a menu of subpages from post ID of a child page</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJScript.js"></script><br />
            <script type="text/javascript" src="http://nick.boldison.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script><br />
Below is a step by step guide on how to create a menu of child pages by using the post ID of a child page.<br />
It uses that ID to get the top parent&#8217;s slug, then the top parent&#8217;s ID and finally uses the wp_list_pages() function of WordPress to retrieve and display the list of child pages.</p>
<h3>Get slug of top parent</h3>
<p>Firstly, you need to add the function below called getTopParentPostName(). This function gets the slug of the top parent of the subpage we are on. We need this so that we can then get the ID of the</p>
<p>&nbsp;</p>
<h3>Get top parent&#8217;s ID</h3>
<p>Next we need to use the function get_ID_by_slug() to get the ID of the top parent we just found. This is so we can use the list in the array of arguments in the wp_list_pages() function in WordPress.</p>
<p>&nbsp;</p>
<h3>Displaying the child pages</h3>
<p>Finally we use create the array of arguments we want so we can compile the menu of subpages. This is done using the wp_list_pages() function and passing an array of arguments to it.</p>
<p>&nbsp;</p>
<p>The arguments I have used do the following things:</p>
<p><strong> &#8216;echo&#8217; =&gt; 1</strong> &#8211; this allows the function to echo the menu out once we call it.<br />
<strong> &#8216;title_li&#8217; =&gt; &#8221; </strong>- this just removes the title of the menu&#8230;I don&#8217;t usually fel the need to display this, that&#8217;s all.<br />
<strong> &#8216;child_of&#8217; =&gt; get_ID_by_slug(getTopParentPostName($post-&gt;ID))</strong> &#8211; this uses the post ID of the page we are on to then get the top parent slug, then the ID of that top parent. This ID is then used to get all the children of that ID for displaying in the menu.<br />
<strong> &#8216;sort_column&#8217; =&gt; &#8216;menu_order, post_title&#8217; </strong>- this is just a way to order the items in the menu. It does it by the order you gave them when adding them and then by title alphabetically.</p>
<h3>Full Whammy&#8230;</h3>
<p>So the full code you will need to add to pull out the child pages from a post ID is:</p>
<p>&nbsp;</p>
<p>The post <a href="http://nick.boldison.com/wordpress/wordpress-creating-a-menu-of-subpages-from-post-id-of-a-child-page/">WordPress : Creating a menu of subpages from post ID of a child page</a> appeared first on <a href="http://nick.boldison.com">nick boldison</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nick.boldison.com/wordpress/wordpress-creating-a-menu-of-subpages-from-post-id-of-a-child-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
