<?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>Richard Reay - Web Designer and Developer - Whitley Bay</title>
	<atom:link href="http://www.rreay.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rreay.co.uk</link>
	<description></description>
	<lastBuildDate>Wed, 28 Mar 2012 18:15:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>next_post_link() Fix When Using query_posts()</title>
		<link>http://www.rreay.co.uk/2012/03/28/next_post_link-fix-when-using-query_posts/</link>
		<comments>http://www.rreay.co.uk/2012/03/28/next_post_link-fix-when-using-query_posts/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 18:15:33 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/?p=167</guid>
		<description><![CDATA[<p>In Wordpress if you want to filter the posts being displayed either by category or how many posts etc you use query_posts(). This unfortunately breaks the next_post_link() and previous_post_link() (the links still appear but when you click on them the content stays the same).  Fortunately I found a fix:</p>
]]></description>
			<content:encoded><![CDATA[<p>In WordPress if you want to filter the posts being displayed either by category or how many posts etc you use query_posts(). This unfortunately breaks the next_post_link() and previous_post_link() (the links still appear but when you click on them the content stays the same).  Fortunately I found a fix:</p>
<p>Replace your query_posts() function (in my case):</p>
<pre class="prettyprint">
query_posts("posts_per_page=5");
</pre>
<p>With:</p>
<pre class="prettyprint">
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("posts_per_page=5&#038;paged=$page");
</pre>
<p>More Info: <a href="http://wordpress.org/support/topic/posts_nav_link-now-wont-show-up">http://wordpress.org/support/topic/posts_nav_link-now-wont-show-up</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2012/03/28/next_post_link-fix-when-using-query_posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Serialize Function</title>
		<link>http://www.rreay.co.uk/2011/12/12/jquery-serialize-function/</link>
		<comments>http://www.rreay.co.uk/2011/12/12/jquery-serialize-function/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 15:36:17 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/?p=164</guid>
		<description><![CDATA[<p>I discovered this super useful jQuery function recently when I was working on a project, you run this on a form and it converts the form elements into a query string representing the state of the various elements, a simple method for creating a query string to be used with AJAX updates:</p>
]]></description>
			<content:encoded><![CDATA[<p>I discovered this super useful jQuery function recently when I was working on a project, you run this on a form and it converts the form elements into a query string representing the state of the various elements, a simple method for creating a query string to be used with AJAX updates:</p>
<pre class="prettyprint">
$(function() {
	var loadUrl = "page.php";
	function showValues() {
		var str = $("form").serialize();
		$("#updatethiselement").load(loadUrl, str);
	}
	$("input[name='color']:radio").change(showValues);
});
</pre>
<p>More Info: <a href="http://api.jquery.com/serialize/">http://api.jquery.com/serialize/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2011/12/12/jquery-serialize-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 + jQuery Tabs</title>
		<link>http://www.rreay.co.uk/2011/08/18/css3-jquery-tabs/</link>
		<comments>http://www.rreay.co.uk/2011/08/18/css3-jquery-tabs/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 20:06:04 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/?p=146</guid>
		<description><![CDATA[<p><a href="/tutorials/tabs/index.html" class="demoLink black" title="View the Example" target="_blank">View Example</a></p>

<p>I made a really simple script for some standard jQuery tabs using CSS3 to make the tabs rounded with a gradient, no images involved.</p>]]></description>
			<content:encoded><![CDATA[<p><a href="/tutorials/tabs/index.html" class="demoLink black" title="View the Example" target="_blank">View Example</a></p>
<p>I made a really simple script for some standard jQuery tabs using CSS3 to make the tabs rounded with a gradient, no images involved.</p>
<h3>The HTML:</h3>
<p>The tab names are generated from the &lt;h2&gt;&#8217;s. The only noteworthy thing here is the additional wrapper, this is used to stop the tab container collapsing to 0 height inbetween when the old tab is hidden and the new tab shown, there is a split-second where there is no tab being displayed so the height would skip momentarily on transition. The extra wrapper gets given the height of the old tab temporarily (in the JavaScript) until the new tab is ready then the height attribute is removed, so there is no point in time where the container collapses. There may be a better solution to this, it&#8217;s just the first thing I came up with.</p>
<pre class="prettyprint">
&lt;div id=&quot;tabs&quot;&gt;
	&lt;div id=&quot;tabWrapper&quot;&gt;&lt;!-- this wrapper needed to stop border flickering --&gt;
		&lt;div class=&quot;tab&quot;&gt;
			&lt;h2&gt;Tab 1&lt;/h2&gt;
			&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla id magna lorem. Ut scelerisque, lacus eu laoreet molestie, diam ante egestas nunc, vel ultricies enim velit sit amet leo. Donec diam quam, semper convallis fringilla sed.&lt;/p&gt;
		&lt;/div&gt;
		&lt;div class=&quot;tab&quot;&gt;
			&lt;h2&gt;Tab 2&lt;/h2&gt;
			&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla id magna lorem. Ut scelerisque, lacus eu laoreet molestie, diam ante egestas nunc, vel ultricies enim velit sit amet leo. Donec diam quam, semper convallis fringilla sed.&lt;/p&gt;
		&lt;/div&gt;
	&lt;/div&gt;&lt;!-- end of #tabWrapper --&gt;
&lt;/div&gt;&lt;!-- end of #tabs --&gt;
</pre>
<p>The rounded tabs and gradients aren&#8217;t supported on IE8 and lower, so the tabs turn into squares with a solid background color, if JavaScript is disabled the tabs are not generated and all the content is displayed, as intended.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2011/08/18/css3-jquery-tabs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a jQuery Image Slider</title>
		<link>http://www.rreay.co.uk/2011/08/16/create-a-jquery-image-slider/</link>
		<comments>http://www.rreay.co.uk/2011/08/16/create-a-jquery-image-slider/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 20:23:27 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/?p=129</guid>
		<description><![CDATA[<p><a href="/tutorials/slider/index.html" class="demoLink black" title="View the Example" target="_blank">View Example</a></p>

<p>I decided to make a jQuery image slider however I went down a few blind alleys logic-wise before settling on the method I used, I'll explain how I ended up coding it and the problems I had with some other ways I tried.</p>]]></description>
			<content:encoded><![CDATA[<p><a href="/tutorials/slider/index.html" class="demoLink black" title="View the Example" target="_blank">View Example</a></p>
<p>I decided to make a jQuery image slider however I went down a few blind alleys logic-wise before settling on the method I used, I&#8217;ll explain how I ended up coding it and the problems I had with some other ways I tried.</p>
<h3>The Logic</h3>
<p>Originally my thinking was to loop through the slides and run a function on each of them which handled fading the image in, moving the text area in and then fading the slide out.  However this method caused me several headaches involving the setTimeout() function which I&#8217;ll talk about in more detail later.  Instead I decided to seperate the slide transitions into different functions which call each other manually and just use a global variable as a counter, so no &#8216;for next&#8217; or &#8216;.each()&#8217; as the main looping mechanism.</p>
<p>There are 4 main parts to understand:<br />
1. Navigation creation loop<br />
2. Navigation onClick handler<br />
3. fadeSlideIn() function<br />
4. fadeSlideOut() function</p>
<h3>1. Navigation creation loop</h3>
<p>We want to create a clickable icon for each slide that exists that moves the slider to the selected slide. So we do this by finding out how many slides there are then creating the same amount of list items with unique ID&#8217;s we can reference if they are clicked on:</p>
<pre class="prettyprint">
	// create slider navigation
	if (settings.navigation == true) {
		for (i = 0; i &lt; slide.length; i++) {
			$('#sliderNav ul').append('&lt;li&gt;&lt;/li&gt;');
			$('#sliderNav ul li:last').attr('id', 'navSlide' + i);
		}
	} else {
		$('#sliderNav').css('display', 'none');
		$('#slider').css('height', '300px');
	}
</pre>
<h3>2. Navigation onClick handler</h3>
<p>If a user clicks on any of the navigation icons we want the slider to stop moving, fade the current image out and fade in the image that they clicked on. So the only two things to worry about here are stopping any animations that are queued up already and passing the fade in function the value of which nav item was clicked.</p>
<pre class="prettyprint">
	// slider navigation onclick handler (move to selected slide, turn off auto sliding)
	$('#sliderNav ul li').click(function() {
		settings.autoplay = false;
		// cancel all queued animations
		clearTimeout(slidequeue);
		navClicked = $(this).attr('id');
		navClicked = navClicked.substr(navClicked.length - 1);
		fadeSlideOut();
		setTimeout(function(){fadeSlideIn(navClicked)}, 400);
	});
</pre>
<p>clearTimeout(slidequeue) is the line that removes any queued animation, look at the slidequeue variable in the fadeSlideIn() function below to understand better.</p>
<h3>3. fadeSlideIn() function</h3>
<p>In order to make our slider constantly loop through the images we need to perform a check to see if the counter is at the end or not, and if so we need to change it to the start.  Next we find the navigation list item which corresponds to the image we are going to fade in and make that the active navigation item.  Then we select the next slide and fade it in, then slide the text area up into view.  Finally we use setTimeout() to call the fadeSlideOut() function after the delay we have in the settings (4 seconds by default), note that this setTimeout() call is stored in a variable so we can cancel it if needed (navigation is clicked on).</p>
<pre class="prettyprint">
	var fadeSlideIn = function(moveTo) {
		if (currentSlide == slide.length) { // if no more slides, set counter to the first slide
			currentSlide = 0;
		}
		$('#sliderNav ul li').eq(currentSlide).addClass('activeSlide');
		slide.eq(currentSlide).fadeIn('slow');
		slide.eq(currentSlide).find('.slideText').animate({top: '-75px'}, 1500);
		slidequeue = setTimeout(fadeSlideOut, settings.delay);
	}
</pre>
<h3>4. fadeSlideOut() function</h3>
<p>In this function we almost want to do the reverse of fadeSlideIn(), first we are going to move the text area out of view, second we are going to fade the image out.  After that we want to remove the active class from the corresponding navigation list item. Next we update our global counter variable to keep track of what slide we&#8217;re on and finally we make a check to see if we want to fade the next image in before calling the fadeSlideIn() function.</p>
<pre class="prettyprint">
	var fadeSlideOut = function() {
		slide.eq(currentSlide).find('.slideText').animate({top: '0px'}, 500);
		slide.eq(currentSlide).fadeOut('slow');
		$('#sliderNav ul li').eq(currentSlide).removeClass('activeSlide');
		currentSlide = (currentSlide+1);
		// do not call next slide if nav has been clicked on
		if (settings.autoplay == true) {
			setTimeout(fadeSlideIn, 700);
		}
	}
</pre>
<h3>The setTimeout() Headaches</h3>
<p>setTimeout and loops don&#8217;t mix too well, google this a bit and you&#8217;ll see what I mean, I spent a lot of time trying to force myself down the one big loop path before finally figuring out a much easier way (at least in my head). Originally i had this as my main loop:</p>
<pre class="preetyprint">
	$('.slide').each(function(index) {
</pre>
<p>setTimeout() doesn&#8217;t stop your script for x amount of time then do whatever you tell it to, it simply says &#8216;I&#8217;ll run function x in y seconds&#8217; but carries on with the rest of the code in the meantime, so in the case of loops this can get tricky very quickly.  In the example above I had all the code running inside a setTimeout() function with a delay of 4000*index (index being which iteration of the each we&#8217;re on), so essentially if there are 4 slides, we call the first slide at 0 seconds since index starts at 0, and the next at 4 seconds and so on, however we basically have 12 seconds of animation queued up as soon as the page loads with the loop completely finished running. The main issue is adding logic to this loop, instead of having the animations broken up into logical steps that happen when we want them to, everything happens all at once and is queued up for the next 12 or more seconds depending on how many slides there are, and generally just becomes a lot more difficult to manage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2011/08/16/create-a-jquery-image-slider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Float Clearing</title>
		<link>http://www.rreay.co.uk/2011/07/29/css-float-clearing/</link>
		<comments>http://www.rreay.co.uk/2011/07/29/css-float-clearing/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 13:48:45 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/?p=123</guid>
		<description><![CDATA[<p>I've used the older method of manually adding an element to the HTML to clear floats for years, however this is a much better way of handling it:</p>

<pre class="prettyprint">
/* new clearfix */
.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
	}
* html .clearfix             { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
</pre>
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve used the older method of manually adding an element to the HTML to clear floats for years, however this is a much better way of handling it:</p>
<pre class="prettyprint">
/* new clearfix */
.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
	}
* html .clearfix             { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
</pre>
<p>Source: <a href="http://perishablepress.com/press/2009/12/06/new-clearfix-hack/" title="css float clearing" target="_blank">http://perishablepress.com/press/2009/12/06/new-clearfix-hack/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2011/07/29/css-float-clearing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flyer Design</title>
		<link>http://www.rreay.co.uk/2011/07/18/flyer-design/</link>
		<comments>http://www.rreay.co.uk/2011/07/18/flyer-design/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 19:17:06 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/?p=93</guid>
		<description><![CDATA[<p>I designed a flyer recently to promote my services and send out to local businesses in Whitley Bay.  It's the first time I've done any direct mail advertising so I'm interested to see how it goes. I used the Royal Mail direct mail website, and did it all online it was quite easy, just attach the custom design you've made, edit the text on the back and purchase a mailing list.</p>]]></description>
			<content:encoded><![CDATA[<p>I designed a flyer recently to promote my services and send out to local businesses in Whitley Bay.  It&#8217;s the first time I&#8217;ve done any direct mail advertising so I&#8217;m interested to see how it goes. I used the Royal Mail direct mail website, and did it all online it was quite easy, just attach the custom design you&#8217;ve made, edit the text on the back and purchase a mailing list.</p>
<p><a href="http://www.rreay.co.uk/2011/07/18/flyer-design/flyer_black-10/" rel="attachment wp-att-104"><img class="alignnone size-full wp-image-104" title="flyer_black" src="http://www.rreay.co.uk/wordpress/wp-content/uploads/flyer_black3.jpg" alt="" width="595" height="397" /></a></p>
<p>That&#8217;s the flyer design, with St. Mary&#8217;s Lighthouse on (a local landmark).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2011/07/18/flyer-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Single Page Custom Fields</title>
		<link>http://www.rreay.co.uk/2011/07/16/single-page-custom-fields/</link>
		<comments>http://www.rreay.co.uk/2011/07/16/single-page-custom-fields/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 17:21:21 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/?p=70</guid>
		<description><![CDATA[<p>To pull in data from custom fields on single pages we don't need to use the full wordpress loop:

<pre class="prettyprint">
	&#60;?php get_header(); the_post(); ?&#62;
</pre>

<p>After that just use the get_post_meta(); function.</p>]]></description>
			<content:encoded><![CDATA[<p>To pull in data from custom fields on single pages we don&#8217;t need to use the full wordpress loop:</p>
<pre class="prettyprint">
	&lt;?php get_header(); the_post(); ?&gt;
</pre>
<p>After that just use the get_post_meta(); function.</p>
<pre class="prettyprint">
	&lt;?php echo get_post_meta($post-&gt;ID, 'custom_field_name', true); ?&gt;
</pre>
<p>The third parameter returns either a single result as a string (when set to true), or multiple results as an array (when set to false).</p>
<p>More: <a href="http://codex.wordpress.org/Custom_Fields" target="_blank">http://codex.wordpress.org/Custom_Fields</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2011/07/16/single-page-custom-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Fixed Width Centered Layout</title>
		<link>http://www.rreay.co.uk/2011/07/15/css-fixed-width-centered-layout/</link>
		<comments>http://www.rreay.co.uk/2011/07/15/css-fixed-width-centered-layout/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 19:06:03 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/?p=68</guid>
		<description><![CDATA[The standard method of centering a website is using margin: auto, and text-align to cover older versions of IE.

<pre class="prettyprint">
body {
	text-align: center;
}
#divWrapper {
	width: 900px;
	margin: 0 auto;
	text-align: left;
}
</pre>]]></description>
			<content:encoded><![CDATA[<p>The standard method of centering a website is using margin: auto, and text-align to cover older versions of IE.</p>
<pre>
body {
	text-align: center;
}
#divWrapper {
	width: 900px;
	margin: 0 auto;
	text-align: left;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2011/07/15/css-fixed-width-centered-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript AJAX Initialisation Function</title>
		<link>http://www.rreay.co.uk/2011/07/11/javascript-ajax-initialisation-function/</link>
		<comments>http://www.rreay.co.uk/2011/07/11/javascript-ajax-initialisation-function/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 14:38:59 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/?p=54</guid>
		<description><![CDATA[<p>If unable to use jQuery this is a vanilla JavaScript AJAX initialisation function for use with an XML file.</p>

<pre class="prettyprint">
// ajax initialisation function
function makeRequest(url) {
	http_request = false;
	if (window.XMLHttpRequest) { // Mozilla, Safari
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType('text/xml');
		}
	} 
</pre>]]></description>
			<content:encoded><![CDATA[<p>If unable to use jQuery this is a vanilla JavaScript AJAX initialisation function for use with an XML file.</p>
<pre class="prettyprint">
// ajax initialisation function
function makeRequest(url) {
	http_request = false;
	if (window.XMLHttpRequest) { // Mozilla, Safari
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType('text/xml');
		}
	}
	else if (window.ActiveXObject) { // IE
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
			http_request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
	if (!http_request) {
		alert('Cannot create an XMLHTTP instance');
		return false;
	}
	http_request.onreadystatechange = alertContents;
	http_request.open('GET', url, true);
	http_request.send(null);
}

// any other function should start with
function functionName() {
	if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			<strong>function content here</strong>
		}
		else {
			alert('There was a problem with the request.');
		}
	}
}
</pre>
<p>And in the HTML we have to call the initialisation function and specify the url of the XML file:</p>
<pre class="prettyprint">
&lt;body onLoad=&quot;makeRequest('filename.xml')&quot;&gt;
</pre>
<p>I believe I originally found this in the <a href="http://www.opera.com/developer/" title="http://www.opera.com/developer/" target="_blank">opera developer</a> documentation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2011/07/11/javascript-ajax-initialisation-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Custom Excerpt Link</title>
		<link>http://www.rreay.co.uk/2011/07/10/wordpress-custom-excerpt-link/</link>
		<comments>http://www.rreay.co.uk/2011/07/10/wordpress-custom-excerpt-link/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 22:13:34 +0000</pubDate>
		<dc:creator>richardreay</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.rreay.co.uk/wordpress/?p=37</guid>
		<description><![CDATA[<p>To change the default excerpt link to something more intuitive add the following to functions.php :</p>
<pre class="prettyprint">
function new_excerpt_more($more) {
      global $post;
      return '&#60;a href=&#34;'. get_permalink($post-&#62;ID) . '&#34; class=&#34;blogExcerptLink&#34;&#62; Read More ..&#60;/a&#62;';
}
add_filter('excerpt_more', 'new_excerpt_more');
</pre>]]></description>
			<content:encoded><![CDATA[<p>To change the default excerpt link to something more intuitive add the following to functions.php :</p>
<pre class="prettyprint">
function new_excerpt_more($more) {
      global $post;
      return '&lt;a href=&quot;'. get_permalink($post-&gt;ID) . '&quot; class=&quot;blogExcerptLink&quot;&gt; Read More ..&lt;/a&gt;';
}
add_filter('excerpt_more', 'new_excerpt_more');
</pre>
<p>More: <a title="wordpress excerpt" href="http://codex.wordpress.org/Function_Reference/the_excerpt" target="_blank">http://codex.wordpress.org/Function_Reference/the_excerpt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rreay.co.uk/2011/07/10/wordpress-custom-excerpt-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

