<?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>quirm.net &#187; WordPress</title>
	<atom:link href="http://quirm.net/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://quirm.net</link>
	<description>wordpress &#38; web design</description>
	<lastBuildDate>Fri, 04 May 2012 23:47:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Changing Backgrounds with body class()</title>
		<link>http://quirm.net/2011/10/11/changing-backgrounds-with-body-class/</link>
		<comments>http://quirm.net/2011/10/11/changing-backgrounds-with-body-class/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 15:56:37 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3173</guid>
		<description><![CDATA[The body_class() WordPress function attaches a list of classes to the &#60;body&#62; element according to what type of page is being displayed. These classes can be used &#8212; in conjunction with your theme’s stylesheet &#8212; to display different backgrounds on different pages. Let’s assume your header.php template file contains: &#60;body &#60;?php body_class(); ?&#62;&#62; And your&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2011/10/crayons-150x150.png" alt="" title="crayons" width="150" height="150" class="alignleft size-thumbnail wp-image-3179" /> The <code>body_class()</code> WordPress function attaches a list of classes to the <code>&lt;body&gt;</code> element according to what type of page is being displayed.</p>
<p>These classes can be used &#8212; in conjunction with your theme’s stylesheet &#8212; to display different backgrounds on different pages. </p>
<p class="clearleft" >Let’s assume your header.php template file contains:</p>
<pre><code>&lt;body &lt;?php body_class(); ?&gt;&gt;</code></pre>
<p>And your current CSS for the background looks like:</p>
<pre><code>body {background:#fff url(images/bg.jpg);}</code></pre>
<p><span id="more-3173"></span></p>
<p>In a single post, your body tag would look like:</p>
<pre><code>&lt;body class="single single-post postid-188 single-format-standard logged-in admin-bar"&gt;</code></pre>
<p>A category page could have:</p>
<pre><code>&lt;body class="archive category category-cat-a category-9 logged-in admin-bar"&gt;</code></pre>
<p>whilst a tag page might generate:</p>
<pre><code>&lt;body class="archive tag tag-tag1 tag-92 logged-in admin-bar"&gt;</code></pre>
<h3>The CSS</h3>
<p>You can add some new rules to your theme&#8217;s CSS to target specific backgrounds at particular pages.</p>
<h4>Default Single Post</h4>
<pre><code>body.single {background:#ccc url(images/bg-single.jpg);}</code></pre>
<h4>Single Post with an ID of 188</h4>
<pre><code>body.postid-188 {background:#999 url(images/bg-special.jpg);}</code></pre>
<h4>Default Category Background</h4>
<pre><code>body.category {background:#eee url(images/bg-cat.jpg);}</code></pre>
<h4>Category A Only</h4>
<pre><code>body.category-cat-a {background:#ddd url(images/bg-cat-a.jpg);}</code></pre>
<p>The possibilities are almost endless. </p>
<p>You can find a full list of the classes generated by the <code>body_class()</code> function in the <a href="http://codex.wordpress.org/Function_Reference/body_class">WordPress Codex</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/10/11/changing-backgrounds-with-body-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Headers Already Sent</title>
		<link>http://quirm.net/2011/10/07/headers-already-sent/</link>
		<comments>http://quirm.net/2011/10/07/headers-already-sent/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 08:50:01 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3041</guid>
		<description><![CDATA[The most common reasons for seeing this error message in your WordPress site are spaces, new lines, or invisible characters before an opening &#60;?php tag or after a closing ?&#62; tag in one of the site&#8217;s scripts. But, in order to fix the problem, you have to know which file is causing the problem. Step&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2011/09/message.png" alt="" title="message" width="150" height="150" class="alignleft size-full wp-image-3054" /> The most common reasons for seeing this error message in your WordPress site are spaces, new lines, or invisible characters before an opening <code>&lt;?php</code> tag or after a closing <code>?&gt;</code> tag in one of the site&#8217;s scripts. But, in order to fix the problem, you have to know which file is causing the problem.</p>
<p><span id="more-3041"></span></p>
<h3>Step 1: Interpreting the Error Message </h3>
<p>All of the relevant information is normally given in the first part of the message &#8212; the <code>... output started at...</code> part.</p>
<h4>Example 1</h4>
<p><code>Warning: Cannot modify header information - headers already sent by (output started at /path/wp-content/plugins/foobar/foobar.php:8) in /path/wp-comments-post.php on line 55</code></p>
<p>In this example, the problem is in the foobar.php file of the Foobar plugin.</p>
<h4>Example 2</h4>
<p><code>Warning: Cannot modify header information - headers already sent by (output started at /path/wp-content/themes/wibble/functions.php:11) in /path/wp-includes/pluggable.php on line 850</code></p>
<p>Here, the problem is in functions.php file within the Wibble theme</p>
<h4>Example 3</h4>
<p><code>Warning: Cannot modify header information - headers already sent by (output started at /path/blog/wp-config.php:82) in /path/blog/wp-login.php on line 42</code></p>
<p>The problem is at line 82 of wp-config.php.</p>
<h3>Step 2: Fixing the Problem </h3>
<h4>Example 1: A Plugin</h4>
<p>The easiest option here is to simply delete the plugin and look for an alternative one. If you cannot access your WordPress dashboard, <a href="http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F">reset the plugins folder</a>. Then re-install your plugins &#8212; with the exception of the one that caused the problem.</p>
<h4>Example 2: The Theme</h4>
<p>If you are not comfortable with editing PHP files, then you may want to look at installing another theme. If you cannot access your WordPress dashboard, switch to the default theme by renaming your current theme&#8217;s folder in wp-content/themes and adding &#8220;-old&#8221; to the end of the folder name using <a href="http://codex.wordpress.org/FTP_Clients">FTP</a> or whatever file management application your host provides. This should allow you back into your dashboard where you can download another theme.</p>
<p>If you are comfortable with editing PHP files, then download the file mentioned in the error message (functions.php in the Example 2) and follow the instructions for <a href="http://quirm.net/?p=3041#invisible">removing invisible characters in a file</a>.</p>
<h4>Example 3: wp-config.php</h4>
<ol>
<li>Download wp-config.php from your site&#8217;s main WordPress folder.</li>
<li>Open the file in a <strong>plain text</strong> editor.</li>
<li>Check that the <strong>very first</strong> characters are <code>&lt;?php</code></li>
<li>If the very last characters are <code>?&gt;</code>, remove them.</li>
<li>Check that there are no invisible characters in the file.</li>
<li>Re-upload the amended file.</li>
</ol>
<h3 id="invisible">Removing Invisible Characters in a File</h3>
<ol>
<li>Open the file in a <strong>plain text</strong> editor.</li>
<li>Place the cursor before the first character in the file.</li>
<li>Press the BACKSPACE key &#038; keep it pressed for a count of 10.</li>
<li>Place the cursor after the last character in the file.</li>
<li>Now press the DELETE key on your computer &#038; keep it pressed for a count of 10.</li>
<li>Save the file without pressing any other key.</li>
<li>Check the encoding of the file. Do not encode files as UTF-8 with BOM. The BOM will be seen as a character.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/10/07/headers-already-sent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eJS Twitter</title>
		<link>http://quirm.net/2011/10/04/ejs-twitter/</link>
		<comments>http://quirm.net/2011/10/04/ejs-twitter/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 12:16:13 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3143</guid>
		<description><![CDATA[I was looking for a very simple twitter feed plugin a while back but couldn&#8217;t find one that suited my needs. So I built one&#8230; eJS Twitter adds a Twitter feed widget to your site. It&#8217;s as lightweight as possible with minimal configuration needed to get it up &#038; running. It&#8217;s also compatible with WordPress&#8230;]]></description>
			<content:encoded><![CDATA[<p> I was looking for a very simple twitter feed plugin a while back but couldn&#8217;t find one that suited my needs. So I  built one&#8230;</p>
<p>eJS Twitter adds a Twitter feed widget to your site. It&#8217;s as lightweight as possible with minimal configuration needed to get it up &#038; running.</p>
<p>It&#8217;s also compatible with WordPress 3.2 (or above) and translation-ready. Support available via the <a href="http://quirm.net/forum/forum.php?id=9">Quirm.net forums</a>.</p>

<a href='http://quirm.net/2011/10/04/ejs-twitter/ejstwitter-display/' title='eJs Twitter Display'><img width="66" height="150" src="http://quirm.net/wp-content/uploads/2011/10/eJsTwitter-display-66x150.png" class="attachment-thumbnail" alt="eJs Twitter Display" title="eJs Twitter Display" /></a>
<a href='http://quirm.net/2011/10/04/ejs-twitter/ejstwitter-widget/' title='eJs Twitter Widget'><img width="150" height="150" src="http://quirm.net/wp-content/uploads/2011/10/eJsTwitter-widget-150x150.png" class="attachment-thumbnail" alt="eJs Twitter Settings" title="eJs Twitter Widget" /></a>

<p>Enjoy!</p>
Note: There is a file embedded within this post, please visit this post to download the file.
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/10/04/ejs-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress SEO: Better Titles</title>
		<link>http://quirm.net/2011/10/03/wordpress-seo-better-titles/</link>
		<comments>http://quirm.net/2011/10/03/wordpress-seo-better-titles/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 08:02:39 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3081</guid>
		<description><![CDATA[The content of the HTML &#60;title&#62;&#60;/title&#62; tag is used to: Create a title in the browser toolbar Provide a title for the page when it is bookmarked Display a title for the page in search-engine results It make sense, therefore, to take some time to craft a good title in your WordPress site. In the&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2011/09/html.png" alt="" title="html" width="150" height="150" class="alignright size-full wp-image-3088" /> The content of the <abbr title="HyperText Markup Language">HTML</abbr> &lt;title&gt;&lt;/title&gt; tag is used to:</p>
<ul>
<li>Create a title in the browser toolbar</li>
<li>Provide a title for the page when it is bookmarked</li>
<li>Display a title for the page in search-engine results</li>
</ul>
<p>It make sense, therefore, to take some time to craft a good title in your WordPress site. In the vast majority of WordPress themes, the title is generated in the theme&#8217;s header.php template file. So you need to start by editing this file.</p>
<p><span id="more-3081"></span></p>
<p>Some themes simply use something like:</p>
<pre><code>&lt;title&gt;&lt;?php wp_title();?&gt;&lt;/title&gt;</code></pre>
<p>But that&#8217;s not nearly enough to generate a good title. What you want is code that generates informative, page-specific, titles. So try something like:</p>
<pre><code>&lt;title&gt;&lt;?php global $page, $paged;
if ( $paged &gt;= 2 || $page &gt;= 2 ) $we_are_on = sprintf( __( ' (Page %s) ' ), max( $paged, $page ) );
else $we_are_on = '';

if( is_home () ) : printf(__( '%1$s%2$s on %3$s'), wp_title('', false), $we_are_on, get_bloginfo('name') );

elseif( is_search() ) :
if( trim( get_search_query() ) == '' )  printf(__('No search query entered on %1$s'), get_bloginfo('name') );
else printf( __( 'Search Results for \'%1$s\' on %2$s%3$s' ), trim(get_search_query() ), get_bloginfo('name'), $we_are_on );

elseif ( is_category() || is_author() ) : printf(__( '%1$s%2$s on %3$s' ), wp_title('', false), $we_are_on, get_bloginfo('name') );

elseif( is_tag() ) : printf( __('Entries tagged with \'%1$s\'%2$s on %3$s') , wp_title('', false), $we_are_on, get_bloginfo('name') );

elseif( is_archive() ) :
printf( __('Archives for %1$s%2$s on %3$s'), wp_title('', false), $we_are_on, get_bloginfo('name') );

elseif( is_404() ) : printf(__( 'Page not found on %1$s' ), get_bloginfo('name')  );

else : printf( __('%1$s%2$s'), wp_title(':',true, 'right'), get_bloginfo('name') );

endif;
?&gt;
&lt;/title&gt;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/10/03/wordpress-seo-better-titles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change eShop&#8217;s Merchant Gateway Images</title>
		<link>http://quirm.net/2011/09/30/change-eshops-merchant-gateway-images/</link>
		<comments>http://quirm.net/2011/09/30/change-eshops-merchant-gateway-images/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 21:13:24 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[eShop]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3068</guid>
		<description><![CDATA[The eShop ecommerce plugin ships with a default set of images for the various merchant gateways that can be located in wp-content\uploads\eshop_files. However, if one of these images does not suit your purposes, it&#8217;s relatively easy to change it via your theme&#8217;s functions.php file. The following example illustrates how to change the Cash icon: Upload&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2009/08/cart.png" alt="" title="Ecommerce" width="150" height="150" class="alignleft size-full wp-image-1337" /> The <a href="http://wordpress.org/extend/plugins/eshop/">eShop ecommerce plugin</a> ships with a default set of images for the various merchant gateways that can be located in <code>wp-content\uploads\eshop_files</code>. However, if one of these images does not suit your purposes, it&#8217;s relatively easy to change it via your theme&#8217;s functions.php file. The following example illustrates how to change the Cash icon:</p>
<p><span id="more-3068"></span></p>
<ol>
<li>Upload your new gateway icon to your theme&#8217;s images folder.</li>
<li>Edit your theme&#8217;s function.php file in a plain text editor and add the following new function>
<pre><code>function mythemes_icon_cash() {
	$icon = array(
		'path'=>get_stylesheet_directory(). '/images/cash.png',
		'url'=>get_stylesheet_directory_uri(). '/images/cash.png'
	);
	return $icon;
}
add_filter('eshop_merchant_img_cash', 'mythemes_icon_cash');</code></pre>
</li>
</ol>
<p>There are also filters for each of the other gateway icons:</p>
<pre><code>eshop_merchant_img_cash
eshop_merchant_img_bank
eshop_merchant_img_authorizenet
eshop_merchant_img_payson
eshop_merchant_img_paypal
eshop_merchant_img_ideallite
eshop_merchant_img_webtopay
eshop_merchant_img_ogone
eshop_merchant_img_epn</code></pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/09/30/change-eshops-merchant-gateway-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Memory Issues</title>
		<link>http://quirm.net/2011/09/27/wordpress-memory-issues/</link>
		<comments>http://quirm.net/2011/09/27/wordpress-memory-issues/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 13:45:13 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3027</guid>
		<description><![CDATA[Symptom: Your site crashes and displays a message along the lines of Fatal error: Allowed memory size of xxxxxxxx bytes exhausted Cause: You do not have sufficient memory allocated to PHP within your hosting account. There are a number of ways you can get your site up &#038; running again. The method that works for&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2009/09/idea-142x150.png" alt="" title="Troubleshoot" width="142" height="150" class="alignleft size-thumbnail wp-image-1333" /> <strong>Symptom</strong>: Your site crashes and displays a message along the lines of <code>Fatal error: Allowed memory size of xxxxxxxx bytes exhausted</code></p>
<p><strong>Cause:</strong> You do not have sufficient memory allocated to PHP within your hosting account.</p>
<p>There are a number of ways you can get your site up &#038; running again. The method that works for you will depend upon your host&#8217;s server set up.</p>
<p><span id="more-3027"></span></p>
<h3>Via a php.ini file</h3>
<p>Some hosts allow you to amend some PHP variables on your hosting account via a <a href="http://php.net/manual/en/ini.core.php">php.ini</a> file. If necessary, check with your hosts to see is this option is available to you.</p>
<p>If you already have a php.ini file, download it and open in in a <strong>plain text</strong> editor. Look for <code>memory_limit</code>. If the value is 32M try, 64M. If it&#8217;s already 64M, try 128M:</p>
<p><code>memory_limit = 128M;</code></p>
<p>Then upload the amended file.</p>
<p>If you do not have an php.ini file, check with your host regarding first about creating it.</p>
<h3>Via an .htaccess file</h3>
<p>If you don&#8217;t have access to php.ini, you could try increasing PHP memory  via an .htaccess file. If you do not have an .htaccess file in your domain&#8217;s root folder, you&#8217;ll first need to create one by creating a new file in a <strong>plain text</strong> editor and adding:</p>
<p><code>php_value memory_limit 64M</code></p>
<p>You may run into problems with saving the file. Because .htaccess is a strange file name (the file actually has no name but a 8 letter file extension), it may not be accepted on certain systems (e.g. Windows). With most operating systems, however, all you need to do is to save the file by entering the name as <code>".htaccess"</code> (including the quotes). If this doesn&#8217;t work, you will need to name it something else (e.g. htaccess.txt), upload it to the domain root folder and then rename it using an FTP program</p>
<h3>Via the wp-config.php file</h3>
<p>Download your WordPress wp-config.php file and open it in a <strong>plain text</strong> editor and add:</p>
<p><code>define('WP_MEMORY_LIMIT', '64M');</code></p>
<p>immediately after:</p>
<p><code>define ('WPLANG', '');</code></p>
<p>Then re-upload the changed file.</p>
<h3>Nothing works!</h3>
<p>The methods listed above amy not work with all hosts. If you&#8217;ve tried them all and you&#8217;re still getting fatal error messages, try contacting your hosts for assistance. Just remember to send them a copy of the complete error message and tell them what you have tried so far.</p>
<h3> My hosts won&#8217;t help</h3>
<p>If your hosts insist on limiting your PHP memory allocation to less than 32M, change hosts. You really can&#8217;t run WordPress 3 or above without access to at least 32M.</p>
<p>If you are limited to 32M, it is still possible to run WordPress effectively but you will have to severely limit the number of plugins you use. I&#8217;d also suggest that you steer clear of plugins that parse Post or Page content in either the front or back end of the site as these plugins are likely to be the most memory-hungry. </p>
<p>Start by <a href="http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F">deactivating all plugins</a>, then re-activate them again one-by-one until you hit the same problem. This should give you some idea of how many &#8212; or which &#8212; plugins you can safely use. Repeat the <a href="http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F">mass plugin deactivation</a> again but, this time, only activate those that you have determined to be &#8220;safe&#8221;.</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/09/27/wordpress-memory-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What You Need To Know For eShop</title>
		<link>http://quirm.net/2011/09/23/what-you-need-to-know-for-eshop/</link>
		<comments>http://quirm.net/2011/09/23/what-you-need-to-know-for-eshop/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 14:40:07 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[eShop]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3096</guid>
		<description><![CDATA[eShop &#8211; the WordPress eShop ecommerce plugin has fairly extensive documentation but there is a lot you can do before you even install the plugin. Answering and checking off the following question before you start configuring eShop should make the eShop set-up process a little easier for you. Is Your Merchant Gateway eShop Compatible? There&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2009/09/shopping-cart.png" alt="" title="Shopping Cart" width="150" height="150" class="alignleft size-full wp-image-1335" /> <a href="http://wordpress.org/extend/plugins/eshop/">eShop</a> &#8211; the WordPress eShop ecommerce plugin has fairly <a href="http://quirm.net/wiki/eshop/">extensive documentation</a> but there is a lot you can do <strong>before</strong> you even install the plugin.</p>
<p>Answering and checking off the following question before you start configuring eShop should make the eShop set-up process a little easier for you.</p>
<p><span id="more-3096"></span></p>
<h3 style="clear:left;">Is Your Merchant Gateway eShop Compatible?</h3>
<p>There are a number of merchant gateways that you can use with eShop:</p>
<ul>
<li>Authorize.net</li>
<li>eProcessingNetwork</li>
<li>iDeal Lite</li>
<li>PayPal</li>
<li>Payson</li>
<li>Ogone</li>
<li>webtopay</li>
</ul>
<p>But you may need to make changes to your gateway account to ensure that it is compatible with eShop.<br />
<a href="http://quirm.net/wiki/eshop/setting-up-merchant-gateways/">Check your merchant gateway</a></p>
<h3>Do You Have Your Merchant Gateway Details?</h3>
<p>You will need all of the necessary details for your chosen merchant gateway &#8211; e.g. if you&#8217;re using PayPal, you will need the email address that you use on your PayPal account.<br />
<a href="http://quirm.net/wiki/eshop/setting-up-using-eshop/configuration/merchant-gateways/">Setting up eShop merchant gateways</a></p>
<h3>Where Will You Be Shipping To?</h3>
<p>Will you be selling in your own country only (i.e. by State/County/Province)? Or internationally (i.e. by Country)?<br />
<a href="http://quirm.net/wiki/eshop/setting-up-using-eshop/configuration/shipping-rates/#Countries">Defining your shipping locations</a></p>
<h3>Have You Zoned Your Delivery Locations?</h3>
<p>The cost of shipping an item varies according to its destination. eShop allows you to group different delivery locations into &#8220;zones&#8221; &#038; apply different charges accordingly. You can have up to 9 zones.<br />
Have you divided your shipping locations in 1 or more groups &#8211; called &#8220;zones&#8221;<br />
<a href="http://quirm.net/wiki/eshop/setting-up-using-eshop/configuration/shipping-rates/#Zones">What are shipping zones?</a></p>
<h3>Have You Broken Your Products Down Into Shipping Classes?</h3>
<p>The cost of shipping an item can also vary according to its weight, size, cost or fragility. eShop allows you to define up to 5 shipping classes to accommodate these differences with the 6th reserved for free shipping.<br />
<a href="http://quirm.net/wiki/eshop/setting-up-using-eshop/configuration/shipping-rates/#Shipping-Classes">What are shipping classes?</a></p>
<h3>What Are Your Shipping Costs?</h3>
<p>You should have worked out all of your shipping charges and have determined how to apply them.<br />
Will you charge for the first item based on delivery zone &#038; shipping class with a reduced cost for additional items (Method 1)?<br />
Will you charge for the each item based on delivery zone &#038; shipping class with no reduction for additional items (Method 2)?<br />
Will you charge a flat rate based on delivery zone only (Method 3)?<br />
Will you charge based on delivery zone &#038; product weight (Method 4)?<br />
<a href="http://quirm.net/wiki/eshop/setting-up-using-eshop/configuration/shipping-rates/#Shipping-Rate-Calculations">Calculating shipping</a></p>
<h3>Will You Be Applying Tax?</h3>
<p>If you will be applying tax to products &#8211; such as VAT or sales tax &#8211; you will need details of what tax to apply and when. You also need to decide if tax will also be applied to shipping charges.<br />
<a href="http://quirm.net/wiki/eshop/setting-up-using-eshop/configuration/sales-tax/">Setting up sales tax</a></p>
<h3>Will Your Products Offer Choices?</h3>
<p>eShop includes option sets that allow you to add customer-selectable choices to your products. What options can customers choose from when purchasing one of your products? Different sizes? Different colours? Are some colours more expensive? You can set an additional price &#038; weight for each option within a set.<br />
<a href="http://quirm.net/wiki/eshop/setting-up-using-eshop/option-sets/">Using option sets</a></p>
<h3>Do You Have All The Details And Images For A Single Product?</h3>
<p>You will need all of the text plus at least 1 image for a sample product. You also need to be able to set it&#8217;s price, shipping class, options set(s) and tax rates based on your answers to the questions above. This exercise will help you get a handle on how to set up eShop to suit your needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/09/23/what-you-need-to-know-for-eshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using $s with Double Quotes in WordPress</title>
		<link>http://quirm.net/2011/09/20/using-s-with-double-quotes-in-wordpress/</link>
		<comments>http://quirm.net/2011/09/20/using-s-with-double-quotes-in-wordpress/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 19:02:32 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3057</guid>
		<description><![CDATA[I came across a really worrying issue recently when a site running one of my own themes failed a PCI compliance test. The template file concerned was search.php and the offending code was &#60;?php printf( __("Sorry - I couldn't find anything on %1$s%2$s%3$s", 'theme_name'), '&#60;span&#62;', $my_searchterm, '&#60;/span&#62;');?&#62; From the test results, it seemed that $my_searchterm&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2011/09/warning.png" alt="" title="warning" width="150" height="150" class="alignleft size-full wp-image-3061" /> I came across a really worrying issue recently when a site running one of my own themes failed a PCI compliance test. The template file concerned was search.php and the offending code was</p>
<pre><code>&lt;?php printf( __("Sorry - I couldn't find anything on %1$s%2$s%3$s", 'theme_name'), '&lt;span&gt;', $my_searchterm, '&lt;/span&gt;');?&gt;</code></pre>
<p>From the test results, it seemed that <code>$my_searchterm</code> was not being escaped and that this was opening up an XSS-scripting hole. Yet <code>$my_searchterm</code> was escaped!</p>
<p><span id="more-3057"></span></p>
<p><code>$my_searchterm = trim(get_search_query());</code></p>
<p>After much head scratching &#8212; including some in-depth research into using <code>printf</code> with HTML tags &#8212; I&#8217;d pretty much given up on finding the root cause and was about to remove the entire line when Otto came to the rescue.</p>
<p>I&#8217;d been looking in the wrong place. The isse wasn&#8217;t with <code>$my_searchterm</code> &#8212; it was with:</p>
<pre><code>"Sorry - I couldn't find anything on '%1$s%2$s%3$s"</code></pre>
<p>The standard type specifier for a string substitution when using <code>printf</code> or <code>sprintf</code> is <code>$s</code> (<a href="http://uk.php.net/manual/en/function.sprintf.php">PHP documentation link</a>).</p>
<p>However, in WordPress, <code>$s</code> has a special meaning &#8212; it&#8217;s the <strong>unescaped</strong> search query. By using double quotes in the <code>printf</code>, I had stopped <code>$s</code> from being used as a string substitution and, instead, it was being <strong>parsed</strong> by WordPress.</p>
<p>The solution? Switch to using single quotes.</p>
<pre><code>&lt;?php printf( __('Sorry - I couldn\'t find anything on %1$s%2$s%3$s', 'theme_name'), '&lt;span&gt;', $my_searchterm, '&lt;/span&gt;');?&gt;</code></pre>
<p>Now <code>$s</code> isn&#8217;t parsed &#8212; it&#8217;s substituted.</p>
<p>All in all, I was pretty appalled at how easily I had opened up this particular security hole &#8212; despite being paranoid about sanitising generated output. I also can&#8217;t help thinking that the WP core devs weren&#8217;t having a good day when they decided to use <code>$s </code>for the search query &#8212; especially since <code>printf</code> and <code>sprintf</code> string substitutions are commonplace if you are trying to make a theme translation-ready. Something like <code>$wp_s</code> might have been far safer.</p>
<p>In the meantime, check your scripts for double-quote enclosed string substitutions or you might end up making the same mistake I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/09/20/using-s-with-double-quotes-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Resize the Header in a Twenty Eleven Child Theme</title>
		<link>http://quirm.net/2011/09/18/resize-the-header-in-a-twenty-eleven-child-theme/</link>
		<comments>http://quirm.net/2011/09/18/resize-the-header-in-a-twenty-eleven-child-theme/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 10:52:30 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3011</guid>
		<description><![CDATA[In the WordPress Twenty Eleven theme, the header image needs to be 1000px wide and 288px high. But what if you want to use a smaller (or larger) custom header image? The changes needed to use a wider image are fairly complex and beyond the scope of this article. But changing the header height is&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2011/09/Scale.png" alt="" title="Scale" width="150" height="150" class="alignleft size-full wp-image-3016" /> In the WordPress Twenty Eleven theme, the header image needs to be 1000px wide and 288px high. But what if you want to use a smaller (or larger) custom header image?</p>
<p>The changes needed to use a wider image are fairly complex and beyond the scope of this article. But changing the header height is pretty simple&#8230;</p>
<p><span id="more-3011"></span></p>
<p>Do <strong>not</strong> edit the Twenty Eleven theme itself. As it is the default WordPress 3.2 theme, having access to an <strong>unedited</strong> version of the theme is vital when dealing with a range of site issues. Instead you need to <a href="http://codex.wordpress.org/Child_Themes">create a child theme</a> for your customisations. Or download our <a href="http://quirm.net/themes/twenty-eleven-child/">basic Twenty Eleven child theme</a>.</p>
<p>To make the change, you need to edit the child theme&#8217;s functions.php file using a plan text editor or via Appearance &rarr; Editor. Let&#8217;s suppose you want to reduce the header image height to 150px. After the opening <code>&lt;?php</code> tag in the child&#8217;s functions.php file, add:</p>
<pre><code>function my_header_image_height($height) {
	return 150;
}
add_filter( 'twentyeleven_header_image_height', 'my_header_image_height');</code></pre>
<p>And that&#8217;s it. Done!</p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/09/18/resize-the-header-in-a-twenty-eleven-child-theme/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Adding Text to Your Home Page</title>
		<link>http://quirm.net/2011/09/16/adding-text-to-your-home-page/</link>
		<comments>http://quirm.net/2011/09/16/adding-text-to-your-home-page/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 09:13:12 +0000</pubDate>
		<dc:creator>Mel</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=3001</guid>
		<description><![CDATA[So you want to edit your site&#8217;s home page but it doesn&#8217;t show up under Pages? Assuming that your site&#8217;s front page shows a list of your most recent posts, it is not created in the same way as the other static Pages on your site. It is actually an archive page (which, in WordPress-speak,&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2011/09/testimonial.png" alt="" title="testimonial" width="149" height="137" class="alignleft size-full wp-image-3008" /> So you want to edit your site&#8217;s home page  but it doesn&#8217;t show up under Pages?</p>
<p>Assuming that your site&#8217;s front page shows a list of your most recent posts, it is not created in the same way as the other static Pages on your site. It is actually an archive page (which, in WordPress-speak, is a list of posts)and is generated &#8220;on demand&#8221;. So you cannot just go in and &#8220;edit&#8221; the page in the same the way that you can edit any of the other static Pages that you&#8217;ve created.</p>
<p><span id="more-3001"></span></p>
<p>If you simply want to change the title of the Page in your site&#8217;s navigation menu, try <a href="http://codex.wordpress.org/Appearance_Menus_SubPanel<br />
">creating a custom menu</a>. This give you full control and allow you to change the page&#8217;s label in the menu.</p>
<p>If you want to hide the page&#8217;s title, you can use <a href="http://www.w3.org/Style/CSS/learning">CSS</a> to move the page title off the viewable page. The exact CSS you will use will vary according to your theme but will probably look something like:</p>
<pre><code>
#header h1 {
	position:absolute;
	top:-9999px;
	left:-9999px;
}</code></pre>
<p>If you want to add some text to the page, you have three basic options:</p>
<ol>
<li>Edit your theme&#8217;s index.php template file and add your text &#8212; complete with HTML markup &#8212; to the template file before or after <a href="http://codex.wordpress.org/The_Loop">The Loop</a>.</li>
<li><a href="http://quirm.net/?p=2985">Create a widget-aware area</a> in your theme&#8217;s index.php template file, then use a Text widget to add your new content.</li>
<li>Configure your site to use <a href="http://codex.wordpress.org/Creating_a_Static_Front_Page<br />
">a static front page</a>.</li>
</ol>
<p>If you decide to use options 1 or 2, remember to create a child theme first and add your customised template file to your child theme rather than amending the original parent. This will protect your customisations if/when you update the parent theme at a later date. This is particularly important if you are using the WordPress default theme as having access to an <strong>unedited</strong> version of the theme is vital when dealing with a range of site issues. </p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2011/09/16/adding-text-to-your-home-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

