<?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>Affiliate Marketing blog from bedazzle &#187; Tips</title>
	<atom:link href="http://www.bedazzle.co.uk/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bedazzle.co.uk</link>
	<description>:-) I like Affiliate Marketing</description>
	<lastBuildDate>Tue, 24 Jan 2012 16:13:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Adding HTML and Shortcode support to WordPress Category Descriptions</title>
		<link>http://www.bedazzle.co.uk/adding-html-and-shortcode-support-to-wordpress-category-descriptions/</link>
		<comments>http://www.bedazzle.co.uk/adding-html-and-shortcode-support-to-wordpress-category-descriptions/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 13:53:40 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category descriptions]]></category>
		<category><![CDATA[Shortcode]]></category>

		<guid isPermaLink="false">http://www.bedazzle.co.uk/?p=235</guid>
		<description><![CDATA[This is a guest article by Dan Harrison, who&#8217;s the director and chief developer for WordPress Doctors. Dan is also an experienced affiliate marketeer, focusing on eco and gadget niches. Many of us spend a lot of time on our affiliate sites making them damn useful for our website visitors. That includes adding plenty of [...]]]></description>
			<content:encoded><![CDATA[<p>This is a guest article by <a href="http://www.danharrison.co.uk">Dan Harrison</a>, who&#8217;s the director and chief developer for <a href="http://www.wpdoctors.co.uk" title="WordPress Doctors">WordPress Doctors</a>. Dan is also an experienced affiliate marketeer, focusing on eco and gadget niches.</p>
<p>Many of us spend a lot of time on our affiliate sites making them damn useful for our website visitors. That includes adding plenty of relevant and useful content. How many of you are <b>adding descriptions to all of your categories</b>? I expect quite a few of you are already doing it. </p>
<p>Are you frustrated by WordPress&#8217;s default behaviour of not permitting HTML in Category Descriptions? Do you want to add bold, images, perhaps even video to your categories? Well this article shows you how to fix that, plus another little trick for supporting WordPress shortcodes.</p>
<h3>Adding HTML in Category Descriptions</h3>
<p>This is a very simple fix, allowing HTML in category descriptions just requires you to add the following code to <tt><b>functions.php</b></tt> for your current theme:</p>
<pre>
$filters = array('pre_term_description',
	'pre_link_description',
	'pre_link_notes',
	'pre_user_description'
);

foreach ( $filters as $filter ) {
	remove_filter($filter, 'wp_filter_kses');
}
remove_filter('term_description', 'wp_kses_data');
</pre>
<p>That code basically tells WordPress <b>not to strip out HTML</b> when saving a category description. So now, HTML will work in your current theme.<br/><br />
<center><img src="http://www.bedazzle.co.uk/wp-content/uploads/2011/10/HTML-Categories-description-editing.gif" alt="HTML Categories description editing" title="HTML Categories description editing" width="600" height="382" class="aligncenter" /><br/><br />
<img src="http://www.bedazzle.co.uk/wp-content/uploads/2011/10/HTML-Categories-description-rendered.gif" alt="HTML Categories description rendered" title="HTML Categories description rendered" width="600" height="290" class="aligncenter" /></center><br/></p>
<h3>Adding Category Descriptions to your WordPress Theme</h3>
<p>If you don&#8217;t already have category descriptions in your theme, then add the following code to your theme&#8217;s <tt><b>category.php</b></tt>. If you don&#8217;t have a <tt><b>functions.php</b></tt> file, then copy <tt><b>index.php</b></tt> to <tt><b>category.php</b></tt>, and make some tweaks.</p>
<pre>&lt;?php
$category_description = category_description();
if (!empty( $category_description)) {
	echo &#039;&lt;div class=&quot;category_description&quot;&gt;&#039;
	      . $category_description .
	     &#039;&lt;/div&gt;&#039;;
}
?&gt;</pre>
<p><br/></p>
<h3>Adding Shortcode Support to Category Descriptions</h3>
<p>If you don&#8217;t know what a WordPress shortcode is, it&#8217;s basically a word inside square brackets that looks a little like HTML, e.g. <tt><b>[example_shortcode /]</b></tt>. In WordPress it&#8217;s the best way to insert &#8216;stuff&#8217; into the main content of a page by a plugin or theme. e.g. this might include inserting YouTube videos without having to insert the nasty embed code.</p>
<p>If you know what they are, then you might appreciate being able to add shortcodes to category descriptions. To add shortcode support, you just need to tweak the code for showing descriptions to the following, using WordPress&#8217; <tt><b>do_shortcode()</b></tt> function:</p>
<pre>&lt;?php
$category_description = category_description();
if (!empty( $category_description)) {
	echo &#039;&lt;div class=&quot;category_description&quot;&gt;&#039;
	      . do_shortcode($category_description) .
	     &#039;&lt;/div&gt;&#039;;
}
?&gt;</pre>
<p><center><img src="http://www.bedazzle.co.uk/wp-content/uploads/2011/10/HTML-Categories-with-Shortcode-editing.gif" alt="HTML Categories with Shortcode editing" title="HTML Categories with Shortcode editing" width="504" height="151" class="aligncenter" /><br/><br />
<img src="http://www.bedazzle.co.uk/wp-content/uploads/2011/10/HTML-Categories-with-Shortcode-rendered.gif" alt="HTML Categories with Shortcode rendered" title="HTML Categories with Shortcode rendered" width="600" height="341" class="aligncenter" /></center><br/></p>
<h3>Conclusion</h3>
<p>So there you go, some simple code that you can copy&#8217;n'paste into your WordPress theme to allow you to create pretty category descriptions. I hope you found that useful! </p>
<p>Please do post your examples in the comments below, we&#8217;d love to see what you&#8217;ve done with yours. Please only post 1 or 2 links in your comment though, so that the spam filter doesn&#8217;t automatically remove your comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bedazzle.co.uk/adding-html-and-shortcode-support-to-wordpress-category-descriptions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing multiple WordPress to one database</title>
		<link>http://www.bedazzle.co.uk/installing-multiple-wordpress-to-one-database/</link>
		<comments>http://www.bedazzle.co.uk/installing-multiple-wordpress-to-one-database/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 15:56:28 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bedazzle.co.uk/?p=50</guid>
		<description><![CDATA[If, like me, you have a restriction on the amount of SQL databases you can have on your hosting then this is a little tip that I had trouble finding out when I wanted to create more WordPress sites. I have a restriction of 15 databases with my 1&#038;1 hosting account, I started to look [...]]]></description>
			<content:encoded><![CDATA[<p>If, like me, you have a restriction on the amount of SQL databases you can have on your hosting then this is a little tip that I had trouble finding out when I wanted to create more WordPress sites.</p>
<p>I have a restriction of 15 databases with my 1&#038;1 hosting account, I started to look around for a new host but didn&#8217;t really fancy moving all my domains as it would be a bit of a nightmare, so this is the solution.</p>
<p>In your wp-config.php file you can change the prefix of the tables that are created, the default is &#8216;wp_&#8217; so you can change this to anything else, for example &#8216;ps_&#8217; or &#8216;sq_&#8217;, this will enable multiple installs of wordpress on one database.</p>
<p><img src="http://www.bedazzle.co.uk/wp-content/uploads/2009/12/wp-config" alt="wp-config" title="wp-config"class="aligncenter" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bedazzle.co.uk/installing-multiple-wordpress-to-one-database/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

