<?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>Jackplug Web Design</title>
	<atom:link href="http://jackplug.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://jackplug.co.uk</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 03 Jul 2010 16:59:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Image Rotator without Flash</title>
		<link>http://jackplug.co.uk/blog/2010/06/11/image-rotator-without-flash/</link>
		<comments>http://jackplug.co.uk/blog/2010/06/11/image-rotator-without-flash/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 07:06:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=227</guid>
		<description><![CDATA[Given the growing popularity of iPhone and iPad it is better to avoid Flash if possible. For WordPress users looking for an Image Rotator the easiest option is Esther White&#8217;s Wordcycle &#8211; a convenient WordPress wrapper for the jQuery Cycle Plugin. Ester&#8217;s plugin defaults to using the gallery images attached to a post and provides a [...]]]></description>
			<content:encoded><![CDATA[<p>Given the growing popularity of iPhone and iPad it is better to avoid Flash if possible. For WordPress users looking for an Image Rotator the easiest option is Esther White&#8217;s <a href="http://blog.estherswhite.net/wordcycle/" target="_blank">Wordcycle</a> &#8211; a convenient WordPress wrapper for the <a href="http://malsup.com/jquery/cycle/">jQuery Cycle Plugin</a>. Ester&#8217;s plugin defaults to using the gallery images attached to a post and provides a good selection of shortcode tags for customization.</p>
<p>Often it seems that the images load before the script producing an unattractive stack of images before the script kicks in and the rotation starts. The easiest way to prevent this is to use css to set the dimensions of the enclosing div and hide overflow. For example:</p>
<pre>.wordcycle {
position: relative;
width: 500px;
height: 300px;
overflow: hidden;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/06/11/image-rotator-without-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Automatic Excerpts</title>
		<link>http://jackplug.co.uk/blog/2010/05/04/disable-automatic-excerpts/</link>
		<comments>http://jackplug.co.uk/blog/2010/05/04/disable-automatic-excerpts/#comments</comments>
		<pubDate>Tue, 04 May 2010 08:15:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=217</guid>
		<description><![CDATA[When no manual excerpt is provided WordPress will produce a 55 character automatic  excerpt.  This is not very attractive or useful and there are a number of plugins that offer an improved automatic excerpt, allowing the user to fix a whole number of words or even sentences and to customise the &#8216;read more&#8217; link.  For [...]]]></description>
			<content:encoded><![CDATA[<p>When no manual excerpt is provided WordPress will produce a 55 character automatic  excerpt.  This is not very attractive or useful and there are a number of plugins that offer an improved automatic excerpt, allowing the user to fix a whole number of words or even sentences and to customise the &#8216;read more&#8217; link.  For most of my sites however I&#8217;d prefer to create a manual excerpt or to have no excerpt at all.  It took me some determined searching to find the very simple solution.  In place of  <strong>&lt;?php the_excerpt(); ?&gt;</strong> in your theme just use <strong>&lt;?php if (function_exists(&#8216;has_excerpt&#8217;) &amp;&amp; has_excerpt()) the_excerpt(); ?&gt;</strong>.  If you&#8217;d prefer to have the post content when there&#8217;s no manual excerpt use <strong>&lt;?php if (function_exists(&#8216;has_excerpt&#8217;) &amp;&amp; has_excerpt()) the_excerpt();  else the_content(); ?&gt;</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/05/04/disable-automatic-excerpts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Grandchild Subpages</title>
		<link>http://jackplug.co.uk/blog/2010/05/01/show-grandchildsubpages/</link>
		<comments>http://jackplug.co.uk/blog/2010/05/01/show-grandchildsubpages/#comments</comments>
		<pubDate>Sat, 01 May 2010 21:37:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=204</guid>
		<description><![CDATA[A recently developed navigation scheme called for a horizontal menu with a dropline for the second level pages and a third level page list in the sidebar. Although there are lots of sidebar widgets for subpages, it took a bit of digging and cobbling together of information from different sources to implement this hybrid scheme. [...]]]></description>
			<content:encoded><![CDATA[<p>A recently developed navigation scheme called for a horizontal menu with a dropline for the second level pages and a third level page list in the sidebar. Although there are lots of sidebar widgets for subpages, it took a bit of digging and cobbling together of information from different sources to implement this hybrid scheme.</p>
<p>The first step was to add a function to identify the grandchildren.  The easiest way to do this turned out to be via a plugin: <a href="http://www.web-templates.nu/2008/08/25/wp-extra-template-tags/" target="_blank">WP Extra Template Tags</a>.  This very handy collection of additional functions includes _is_grandchild() which was exactly what I needed.</p>
<p>Here&#8217;s the php code that provided the third level page navigation scheme at <a href="http://helfordriversc.co.uk/" target="_blank">Helford River Sailing Club</a>:</p>
<pre>&lt;?php if ( _is_grandchild() ) { ?&gt;
&lt;?php
if($post-&gt;post_parent) {
$children = wp_list_pages("title_li=&amp;depth=1&amp;child_of=".$post-&gt;post_parent."&amp;echo=0");
$titlenamer = get_the_title($post-&gt;post_parent);
} else {
$children = wp_list_pages("title_li=&amp;depth=1&amp;child_of=".$post-&gt;ID."&amp;echo=0");
$titlenamer = get_the_title($post-&gt;ID);
} if ($children) { 
?&gt;
&lt;h2&gt; &lt;? echo $titlenamer ?&gt; &lt;/h2&gt;
&lt;ul&gt; &lt;?php echo $children; ?&gt; &lt;/ul&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/05/01/show-grandchildsubpages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Recent Posts by Category</title>
		<link>http://jackplug.co.uk/blog/2010/05/01/show-recent-posts-by-category/</link>
		<comments>http://jackplug.co.uk/blog/2010/05/01/show-recent-posts-by-category/#comments</comments>
		<pubDate>Sat, 01 May 2010 21:08:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=196</guid>
		<description><![CDATA[A recent commission to design a website for Helford River Sailing Club required recent posts from three separate categories to be shown on the site&#8217;s front page with thumbnails and excerpts under their individual category names.  Eventually Google yielded the component parts of the following piece of code: &#60;?php global $post; $myposts = get_posts('numberposts=10&#38;offset=0&#38;category=17,18,19'); foreach($myposts [...]]]></description>
			<content:encoded><![CDATA[<p>A recent commission to design a website for Helford River Sailing Club required recent posts from three separate categories to be shown on the site&#8217;s front page with thumbnails and excerpts under their individual category names.  Eventually Google yielded the component parts of the following piece of code:</p>
<pre>&lt;?php
global $post;
$myposts = get_posts('numberposts=10&amp;offset=0&amp;category=17,18,19');
foreach($myposts as $post) :
setup_postdata($post);
foreach((get_the_category()) as $category) { echo $category-&gt;cat_name . ' '; }
?&gt;
&lt;li class="cat-post-item"&gt;
&lt;a class="post-title" href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title_attribute(); ?&gt;"&gt;
&lt;?php the_post_thumbnail(); ?&gt;&lt;/a&gt;
&lt;?php the_excerpt(); ?&gt;&lt;/li&gt;
&lt;?php endforeach; ?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/05/01/show-recent-posts-by-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fasthosts and Contact Forms</title>
		<link>http://jackplug.co.uk/blog/2010/04/12/fasthosts-and-contact-forms/</link>
		<comments>http://jackplug.co.uk/blog/2010/04/12/fasthosts-and-contact-forms/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 17:44:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=190</guid>
		<description><![CDATA[If you&#8217;re hosting a site with Fasthosts you&#8217;re likely to find that your contact forms refuse to work. This can be pretty aggravating when you&#8217;ve had a site running on a test server elsewhere and when you go live suddenly you can&#8217;t get emails from your contact forms. Fasthosts are pretty strict about security and [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re hosting a site with Fasthosts you&#8217;re likely to find that your contact forms refuse to work. This can be pretty aggravating when you&#8217;ve had a site running on a test server elsewhere and when you go live suddenly you can&#8217;t get emails from your contact forms.</p>
<p>Fasthosts are pretty strict about security and their system seems to block emails sent via php. This might not be such a bad thing if their support staff were able to suggest an effective solution. They will send you a line of php script which might solve the problem if they could tell you where to put it, but when you&#8217;re using a plugin &#8211; <a href="http://contactform7.com/" target="_blank">Contact Form 7</a> in my case &#8211; it&#8217;s not that easy.</p>
<p>The simplest way to deal with this issue is to switch to SMTP mail sending.   The <a href="http://www.callum-macdonald.com/code/wp-mail-smtp/" target="_blank">WP Mail SMTP</a> plugin worked perfectly for me.  Just install the plugin and set it it send to emails from a Fasthosts email account via SMTP using smtp.fasthosts.co.uk.  Why can&#8217;t Fasthosts suggest this solution to their WordPress users?</p>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/04/12/fasthosts-and-contact-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Category and Single Templates</title>
		<link>http://jackplug.co.uk/blog/2010/03/25/custom-category-and-single-templates/</link>
		<comments>http://jackplug.co.uk/blog/2010/03/25/custom-category-and-single-templates/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 17:06:30 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=141</guid>
		<description><![CDATA[WordPress provides a great way to display different categories in different ways. Basically, if you want to display a particular category in a special way you just create a custom category file called category-slug.php or category-ID.php using the slug or ID from your desired category. The details are at: http://codex.wordpress.org/Template_Hierarchy. There&#8217;s no equivalent way of [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress provides a great way to display different categories in different ways. Basically, if you want to display a particular category in a special way you just create a custom category file called category-slug.php or category-ID.php using the slug or ID from your desired category. The details are at: <a href="http://codex.wordpress.org/Template_Hierarchy" target="_blank">http://codex.wordpress.org/Template_Hierarchy</a>. There&#8217;s no equivalent way of dealing with single posts, but, as usual, there&#8217;s a simple workaround.</p>
<p>Make a copy of single.php and call it, for example, single-default.php.  This will be your default single template.  Make as many extra copies as you need and call them single-2.php, single-3.php etc where 2 and 3 are the IDs of the category you want to treat specially. Modify these to achieve  the display options you need.  Finally remove the contents of single.php and replace them by something like this:</p>
<pre>&lt;?php
if (in_category('2')) {include (TEMPLATEPATH . '/single-2.php');
}
elseif (in_category('3')) {include (TEMPLATEPATH . '/single-3.php');
}
else { include (TEMPLATEPATH . '/single-default.php');
}
?&gt;</pre>
<p>You can add as many &#8216;elseif&#8217; statements as you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/03/25/custom-category-and-single-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Upload with Flash: Making it Work</title>
		<link>http://jackplug.co.uk/blog/2010/03/25/image-upload-with-flash-making-it-work/</link>
		<comments>http://jackplug.co.uk/blog/2010/03/25/image-upload-with-flash-making-it-work/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 15:12:20 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=125</guid>
		<description><![CDATA[Flash upload never seems to work on the hosting servers that I use, but I came across a way to force the server to behave using .htaccess. This works for me, so it might work for you. Just add the following to your .htaccess file: #BEGIN Flash Image Upload Fix &#60;IfModule mod_security.c&#62; &#60;Files async-upload.php&#62; SecFilterEngine [...]]]></description>
			<content:encoded><![CDATA[<p>Flash upload never seems to work on the hosting servers that I use, but I came across a way to force the server to behave using .htaccess. This works for me, so it might work for you. Just add the following to your .htaccess file:</p>
<pre>#BEGIN Flash Image Upload Fix
&lt;IfModule mod_security.c&gt;
&lt;Files async-upload.php&gt;
SecFilterEngine Off
SecFilterScanPOST Off
&lt;/Files&gt;
&lt;/IfModule&gt;
#END Flash Image Upload Fix</pre>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/03/25/image-upload-with-flash-making-it-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sticky Post on Category Page</title>
		<link>http://jackplug.co.uk/blog/2010/03/25/sticky-post-on-category-page/</link>
		<comments>http://jackplug.co.uk/blog/2010/03/25/sticky-post-on-category-page/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 11:10:27 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=111</guid>
		<description><![CDATA[WordPress 2.7 added a facility to make posts sticky so that they are displayed ahead of regular posts.  However, this only works when the front page is set to display latest posts.  All my sites are primarily CMS sites so I always  display a static page as my front page and show posts on a [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress 2.7 added a facility to make posts sticky so that they are displayed ahead of regular posts.  However, this only works when the front page is set to display latest posts.  All my sites are primarily CMS sites so I always  display a static page as my front page and show posts on a category page.  What I usually need is to display a single introductory post for each category when it is first selected.  The simplest way to achieve this using the sticky tag seems to be to modify the category template.</p>
<p>If a suitable query_posts statement is added just before the loop in category-php, the category page will show a single sticky post.  Here&#8217;s the code that should be added just before the loop:</p>
<pre>&lt;?php $sticky=get_option('sticky_posts') ;
query_posts('p=' . $sticky[0]); ?&gt;</pre>
<p>The technique described in <a href="http://jackplug.co.uk/in-current-category/">Posts in Current Category</a> can be used in the sidebar to allow the selection of all the other posts in the category.</p>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/03/25/sticky-post-on-category-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Menu Styling with CSS</title>
		<link>http://jackplug.co.uk/blog/2010/03/25/menu-styling-with-css/</link>
		<comments>http://jackplug.co.uk/blog/2010/03/25/menu-styling-with-css/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 09:59:17 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=102</guid>
		<description><![CDATA[WordPress is incredibly helpful if, like me, you want to style your menu tabs to signal the location of the current page. The system automatically adds classes for current_page_item, current_page_parent, current_page_ancestor and current-cat and these can all be used with your css to arrange appropriate signalling. Unfortunately the current-cat class only works on the category [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress is incredibly helpful if, like me, you want to style your menu tabs to signal the location of the current page. The system automatically adds classes for <strong>current_page_item</strong>, <strong>current_page_parent</strong>, <strong>current_page_ancestor</strong> and <strong>current-cat </strong>and these can all be used with your css to arrange appropriate signalling. Unfortunately the current-cat class only works on the category page and not on single posts with the category. When I have a category in the menu bar I like it to show its &#8216;on&#8217; state when viewing a single post within that category.</p>
<p>WordPress 2.8 added a really useful <strong>body class</strong> function.  This can be invoked just by adding <strong>&lt;?php body_class(); ?&gt;</strong> to the body tag. This opens up all sorts of styling opportunities but single posts still don&#8217;t get a category tag.  You can usually get around this by adding <strong>&lt;?php post_class(); ?&gt;</strong> to a suitable div outside the loop.</p>
<p>If all else fails you can add the following new function to the functions.php file:</p>
<pre>function the_category_unlinked($separator = ' ') {$categories = (array) get_the_category();
$thelist = '';
foreach($categories as $category) { // concate
$thelist .= $separator . $category-&gt;category_nicename;
}
echo $thelist;
}</pre>
<p>Then add an id to the body tag and style it appropriately. Something like this:</p>
<pre>id="cat&lt;?php the_category_unlinked('-'); ?&gt;"</pre>
<p>This should result in a category id being added to the body tag and that can then be used to turn on the appropriate menu tab when single posts are being displayed.  For example on this site the css for &#8216;hover&#8217; and &#8216;on&#8217; styles looks like this:</p>
<pre>div#menu ul li a:hover, div#menu ul li.current_page_item a,
div#menu ul li.current-cat a, #cat-wordpress div#menu ul li.cat-item-4 a  {
background: #eff;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/03/25/menu-styling-with-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Managing Widgets</title>
		<link>http://jackplug.co.uk/blog/2010/03/22/managing-widgets/</link>
		<comments>http://jackplug.co.uk/blog/2010/03/22/managing-widgets/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 12:42:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://jackplug.co.uk/?p=80</guid>
		<description><![CDATA[There&#8217;s one plugin I install whenever I start a new site and it&#8217;s called Widget Logic.  It&#8217;s a brilliantly simple enhancement to the widget system that just adds a box to every widget that allows you to enter conditional tags to determine where the widget will be displayed.  Tags such as: is_frontpage() is_page('name') or is_page('id') [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s one plugin I install whenever I start a new site and it&#8217;s called <a href="http://wordpress.org/extend/plugins/widget-logic/">Widget Logic</a>.  It&#8217;s a brilliantly simple enhancement to the widget system that just adds a box to every widget that allows you to enter conditional tags to determine where the widget will be displayed.  Tags such as:</p>
<ul>
<li>
<pre>is_frontpage()</pre>
</li>
<li>
<pre>is_page('name') or is_page('id')</pre>
</li>
<li>
<pre>is_category('name') or is_category('id')</pre>
</li>
<li>
<pre>in_category('name') or in_category('id')</pre>
</li>
</ul>
<p>You can see the full range of conditional tags here: <a href="http://codex.wordpress.org/Conditional_Tags">codex.wordpress.org/Conditional_Tags</a></p>
<p>You can add multiple tags by separating them with a double pipe like this:</p>
<ul>
<li>
<pre>is_frontpage() || is_page('name')</pre>
</li>
</ul>
<p>One useful tag not yet available in the WordPress codex is <strong>is_subpage_of</strong>.  This tag can be added using the <a href="http://www.schloebe.de/wordpress/is-subpage-of-plugin/" target="_blank">Is Subpage Of</a> Plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://jackplug.co.uk/blog/2010/03/22/managing-widgets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
