<?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>TransformationPowerTools</title>
	<atom:link href="http://www.transformationpowertools.com/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.transformationpowertools.com/wordpress</link>
	<description>for personal growth and transformation</description>
	<lastBuildDate>Fri, 04 May 2012 17:07:19 +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>Adding a Custom Widget Area to a WordPress Template</title>
		<link>http://www.transformationpowertools.com/wordpress/add-custom-widget-area-wordpress</link>
		<comments>http://www.transformationpowertools.com/wordpress/add-custom-widget-area-wordpress#comments</comments>
		<pubDate>Fri, 04 May 2012 17:07:19 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[Easy Coding for Wordpress]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[custom widget]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[widget area]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1565</guid>
		<description><![CDATA[The Codex has a chapter on how to add new widget areas (commonly referred to as &#8216;sidebars&#8217;) to a theme&#8217;s template: &#8216;Widgetizing Themes&#8216; This example here is to give you the direct code to add to functions.php and to the &#8230; <a href="http://www.transformationpowertools.com/wordpress/add-custom-widget-area-wordpress">Check the whole post <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The Codex has a chapter on how to add new widget areas (commonly referred to as &#8216;sidebars&#8217;) to a theme&#8217;s template: &#8216;<a title="widgetizing themes" href="http://codex.wordpress.org/Widgetizing_Themes" target="_blank">Widgetizing Themes</a>&#8216;</p>
<p>This example here is to give you the direct code to add to functions.php and to the template of your theme.</p>
<p>First step: <a title="register sidebar" href="http://codex.wordpress.org/Function_Reference/register_sidebar" target="_blank">register the custom sidebar</a></p>
<p>- this goes into functions.php:</p>
<pre class="brush: php; title: ; notranslate">register_sidebar(array(
'name'         =&gt; 'Custom Widget Area',
'id'            =&gt; 'custom-widgets',
'description'   =&gt; 'a custom widget area',
'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot;&gt;',
'after_widget'  =&gt; '&lt;/li&gt;',
'before_title'  =&gt; '&lt;h2&gt;',
'after_title'   =&gt; '&lt;/h2&gt;'    ));
</pre>
<p>Second step: the custom div with the <a title="dynamic sidebar" href="http://codex.wordpress.org/Function_Reference/dynamic_sidebar" target="_blank">dynamic &#8216;sidebar&#8217;</a></p>
<p>- this goes into the template at the location where you want the custom widget to appear:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if ( is_active_sidebar( 'custom-widgets' ) ) : ?&gt;
&lt;div class=&quot;custom&quot;&gt;&lt;ul&gt;
&lt;?php if ( !dynamic_sidebar( 'custom-widgets' ) ) : ?&gt;
&lt;?php endif; ?&gt;
&lt;/ul&gt;&lt;/div&gt;
&lt;?php endif; ?&gt;
</pre>
<p>The outer conditional statement makes sure that the custom div with the widget is only shown if there is actually an <a title="active sidebar conditional" href="http://codex.wordpress.org/Function_Reference/is_active_sidebar" target="_blank">active widget in the custom area</a>.</p>
<p>The parameter for registering the widget are taken from the example in the codex; you need to adapt them to fit the existing structure of your theme.<br />
You will of course need to add some styles to format the new custom widget area according to your ideas;<br />
for instance to style the title and to suppress the bullets:</p>
<pre class="brush: css; title: ; notranslate">.custom .widgettitle { font-family: arial, sans-serif; }
.custom ul { list-style-type: none; }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/add-custom-widget-area-wordpress/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom Web Site Design and Programming</title>
		<link>http://www.transformationpowertools.com/wordpress/custom-web-site-design-and-programming</link>
		<comments>http://www.transformationpowertools.com/wordpress/custom-web-site-design-and-programming#comments</comments>
		<pubDate>Thu, 26 Apr 2012 15:53:10 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[Custom Web Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1548</guid>
		<description><![CDATA[I am building web sites for quite a few years now, and want to present a web site I programmed in static xhtml a while ago: kunstaufseide.com. This is a German language site promoting colourful artwork. Semi-integrated into this site &#8230; <a href="http://www.transformationpowertools.com/wordpress/custom-web-site-design-and-programming">Check the whole post <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am building web sites for quite a few years now, and want to present a web site I programmed in static xhtml a while ago: <a href="http://www.kunstaufseide.com/" target="_blank"><strong><span style="color: #ff6600;">kunst</span><span style="color: #999999;">auf</span><span style="color: #ff6600;">seide</span>.<span style="color: #999999;">com</span></strong></a>.</p>
<div id="attachment_1551" class="wp-caption aligncenter" style="width: 522px"><img class="size-large wp-image-1551" title="kunstaufseide-cover" src="http://www.transformationpowertools.com/wordpress/wp-content/uploads/2012/04/kunstaufseide-cover-512x332.jpg" alt="kunstaufseide.com" width="512" height="332" /><p class="wp-caption-text">kunstaufseide.com</p></div>
<p>This is a German language site promoting colourful artwork.</p>
<p>Semi-integrated into this site is a <a href="http://kunstaufseide.com/wordpress/"><strong><span style="color: #ff6600;">kunst</span><span style="color: #999999;">auf</span><span style="color: #ff6600;">seide</span> <span style="color: #999999;">blog</span></strong></a> based on a WordPress.org installation with a customized theme build on the then default Kubrick theme.</p>
<p>With German being my mother&#8217;s tongue, creating grammatically correct bi-lingual web sites is no problem for me.</p>
<p>You will also find me frequently present in both the German <a href="http://forum.wpde.org/" target="_blank">WordPress Deutschland Forum</a> and English <a href="http://wordpress.org/support/" target="_blank">WordPress &gt; Support</a>  forums.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/custom-web-site-design-and-programming/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adsense Ad at Random Position in a Posts Page</title>
		<link>http://www.transformationpowertools.com/wordpress/adsense-ad-random-position-posts-page</link>
		<comments>http://www.transformationpowertools.com/wordpress/adsense-ad-random-position-posts-page#comments</comments>
		<pubDate>Sun, 25 Mar 2012 14:53:53 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[do-while-loop]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[php.net]]></category>
		<category><![CDATA[preset range]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1525</guid>
		<description><![CDATA[This code is made to output an adsense ad (or any other block of output) at a random position within the loop, with the restriction to a preset number of possible positions. Thanks to the tutorials of http://www.php.net/ &#8230;]]></description>
			<content:encoded><![CDATA[<p>This code is made to output an adsense ad (or any other block of output) at a random position within the loop, with the restriction to a preset number of possible positions.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php $ad_positions = array(1,2,4); // array of preset possible ad positions

do { $rnd_ad = $ad_positions[rand(0,count($ad_positions)-1)]; } while ($rnd_ad &gt;= $wp_query-&gt;post_count);
// to make sure that the random output fits into the available number of posts ?&gt;

&lt;?php if(have_posts()) : while(have_posts()) : the_post(); // start of the loop // ?&gt;

some part of the post output here

  &lt;?php if( ($wp_query-&gt;current_post+1) == $rnd_ad ) : ?&gt;
    adsense code here
  &lt;?php endif; ?&gt; 

more post output here

&lt;?php endwhile; endif; // end of the loop // ?&gt;</pre>
<p>Thanks to the tutorials of http://www.php.net/ &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/adsense-ad-random-position-posts-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Numbering Posts</title>
		<link>http://www.transformationpowertools.com/wordpress/numbering-posts</link>
		<comments>http://www.transformationpowertools.com/wordpress/numbering-posts#comments</comments>
		<pubDate>Thu, 01 Mar 2012 22:51:24 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[Easy Coding for Wordpress]]></category>
		<category><![CDATA[continuous post number]]></category>
		<category><![CDATA[numbering]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1517</guid>
		<description><![CDATA[To give posts a continuous number in index pages or archives, try this little piece of code: Place it within the loop; condition: needs to be adjusted for any custom query.]]></description>
			<content:encoded><![CDATA[<p>To give posts a continuous number in index pages or archives, try this little piece of code:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
global $query_string;
  $all_post_query = new WP_Query($query_string.'&amp;posts_per_page=-1');
    $count_posts = $all_post_query-&gt;post_count;
  $this_post_nr = 1 + $wp_query-&gt;current_post + (get_query_var('paged')?(get_query_var('paged')-1) : 0) * get_option('posts_per_page');
echo $this_post_nr.' of '.$count_posts.' in this selection of posts.';
?&gt;
</pre>
<p>Place it within the loop;<br />
condition: needs to be adjusted for any custom query.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/numbering-posts/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Logo and Site Title in Twenty Eleven</title>
		<link>http://www.transformationpowertools.com/wordpress/logo-and-site-title-twenty-eleven</link>
		<comments>http://www.transformationpowertools.com/wordpress/logo-and-site-title-twenty-eleven#comments</comments>
		<pubDate>Sun, 19 Feb 2012 14:43:02 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[Easy Coding for Wordpress]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[TwentyEleven]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[logo image]]></category>
		<category><![CDATA[site logo]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1504</guid>
		<description><![CDATA[Often asked question - simple solution:

As always - create a child theme to work with - do not edit Twenty Eleven directly.

Edit header.php in the child theme, and locate the code of the h1 tag; add the image code directly before &#60;?php bloginfo( 'name' ); ?&#62; or replace this with the image code.
Add some css to format the logo image. <a href="http://www.transformationpowertools.com/wordpress/logo-and-site-title-twenty-eleven">logically click here ... <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Often asked question &#8211; simple solution:</p>
<p>As always &#8211; create a <a href="http://codex.wordpress.org/Child_Themes" target="_blank">child theme</a> to work with &#8211; do not edit Twenty Eleven directly.</p>
<p>Edit header.php in the child theme, and locate:</p>
<pre class="brush: php; title: ; notranslate">&lt;h1 id=&quot;site-title&quot;&gt;&lt;span&gt;&lt;a href=&quot;&lt;?php echo esc_url( home_url( '/' ) ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;&lt;?php bloginfo( 'name' ); ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;
</pre>
<p>To add the logo image in front of the site title, change the section to:</p>
<pre class="brush: php; title: ; notranslate">&lt;h1 id=&quot;site-title&quot;&gt;&lt;span&gt;&lt;a href=&quot;&lt;?php echo esc_url( home_url( '/' ) ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;&lt;img id=&quot;site-logo&quot; src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/images/site-logo.png&quot; alt=&quot;&quot; /&gt;&lt;?php bloginfo( 'name' ); ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;
</pre>
<p>To replace the site title with the logo image, change the  section to:</p>
<pre class="brush: php; title: ; notranslate">&lt;h1 id=&quot;site-title&quot;&gt;&lt;span&gt;&lt;a href=&quot;&lt;?php echo esc_url( home_url( '/' ) ); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;&lt;img id=&quot;site-logo&quot; src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/images/site-logo.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;
</pre>
<p>Important: to keep the logo image from stretching, you need to add this to style.css of your theme:</p>
<pre class="brush: css; title: ; notranslate">img#site-logo { width: auto; }
</pre>
<p>In this style, you can add more formatting such as padding or margins for the positioning of the logo.</p>
<p>The above code assumes that the logo image <em><strong>site-logo.png</strong></em> is located in the /images folder of your theme.<br />
You can use any other absolute path to the location of your actual logo image instead:</p>
<pre class="brush: php; title: ; notranslate">src=&quot;http://anyabsolutepath/logo.jpg&quot;</pre>
<p>http://www.w3schools.com/tags/tag_img.asp</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/logo-and-site-title-twenty-eleven/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Twenty Eleven &#8211; New Page Template with Sidebar Correction</title>
		<link>http://www.transformationpowertools.com/wordpress/twenty-eleven-new-page-template-with-sidebar-correction</link>
		<comments>http://www.transformationpowertools.com/wordpress/twenty-eleven-new-page-template-with-sidebar-correction#comments</comments>
		<pubDate>Fri, 20 Jan 2012 11:33:09 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[TwentyEleven]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[page template]]></category>
		<category><![CDATA[sidebar]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1493</guid>
		<description><![CDATA[If you are creating a new page template for a child theme of Twenty Eleven, with a sidebar, you need to correct the body_class output to remove the css class .singular. Add this to functions.php of your child theme: If &#8230; <a href="http://www.transformationpowertools.com/wordpress/twenty-eleven-new-page-template-with-sidebar-correction">Check the whole post <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are creating a new page template for a child theme of Twenty Eleven, with a sidebar, you need to correct the body_class output to remove the css class <code>.singular</code>.</p>
<p>Add this to functions.php of your child theme:</p>
<pre class="brush: php; title: ; notranslate">add_filter('body_class', 'adjust_body_class', 20, 2);
function adjust_body_class($wp_classes, $extra_classes) { 

if( is_page_template('new-sidebar-page-template-file-name.php') ) :
// Filter the body classes     

	  foreach($wp_classes as $key =&gt; $value) {
	  if ($value == 'singular') unset($wp_classes[$key]);
	  }

endif;
// Add the extra classes back untouched
return array_merge($wp_classes, (array) $extra_classes );
}</pre>
<p>If you created more than one new page template with sidebar, change this one line in the code to something like:</p>
<pre class="brush: php; title: ; notranslate">if( is_page_template('new-sidebar-page-template-file-name.php') || is_page_template('another-sidebar-page-template.php') || is_page_template('further-sidebar-page-template.php') ) :</pre>
<p>The above codes are similar to what I used in <a href="http://www.transformationpowertools.com/wordpress/twenty-eleven-sidebar-on-single-posts-and-pages">this recent article</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/twenty-eleven-new-page-template-with-sidebar-correction/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress Post Thumbnails with Caption</title>
		<link>http://www.transformationpowertools.com/wordpress/wordpress-post-thumbnails-with-caption</link>
		<comments>http://www.transformationpowertools.com/wordpress/wordpress-post-thumbnails-with-caption#comments</comments>
		<pubDate>Thu, 05 Jan 2012 19:26:06 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[caption]]></category>
		<category><![CDATA[support forum]]></category>
		<category><![CDATA[thumbnail]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1473</guid>
		<description><![CDATA[This is a tidying up of a WordPress support forum topic &#8211; nothing really that I came up with myself. The question is how to post the caption with a post thumbnail, aka featured image, in an ordered way. This &#8230; <a href="http://www.transformationpowertools.com/wordpress/wordpress-post-thumbnails-with-caption">capture it all ... <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a tidying up of a <a title="WordPress support forum link" href="http://wordpress.org/support/" target="_blank">WordPress support forum</a> topic &#8211; nothing really that I came up with myself.</p>
<p>The question is how to post the caption with a post thumbnail, aka featured image, in an ordered way.</p>
<p>This code below is tested in wp3.3.</p>
<pre class="brush: php; title: ; notranslate">//POST THUMBNAIL AND CAPTION STYLED SIMILAR TO .wp-caption//
function the_post_thumbnail_and_caption($size = '', $attr = '') {
global $post;

$thumb_id = get_post_thumbnail_id($post-&gt;id);

$args = array(
'post_type' =&gt; 'attachment',
'post_status' =&gt; null,
'parent' =&gt; $post-&gt;ID,
'include'  =&gt; $thumb_id
);

$thumbnail_image = get_posts($args);

if ($thumb_id &amp;&amp; $thumbnail_image &amp;&amp; isset($thumbnail_image[0])) {

$image = wp_get_attachment_image_src( $thumb_id, $size );
$image_width = $image[1];

$output = '&lt;div style=&quot;width: ' . ($image_width) . 'px&quot;&gt;';

$attr['class'] = ''; //move any 'class' attributes to the outer div, and remove from the thumbnail

$output .= get_the_post_thumbnail($post-&gt;ID, $size, $attr);

/* //Uncomment to show thumbnail title
$title = $thumbnail_image[0]-&gt;post_title;
if($title) :
$output .= '&lt;p&gt;';
$output .= $title;
$output .= '&lt;/p&gt;';
endif; */

/* //Uncomment to show the thumbnail caption */
$caption = $thumbnail_image[0]-&gt;post_excerpt;
if($caption) :
$output .= '&lt;p&gt;';
$output .= $caption;
$output .= '&lt;/p&gt;';
endif;

/* //Uncomment to show the thumbnail description
$descr = $thumbnail_image[0]-&gt;post_content;
if($descr) :
$output .= '&lt;p&gt;';
$output .= $descr;
$output .= '&lt;/p&gt;';
endif; */

/* //Uncomment to show the thumbnail alt field
$alt = get_post_meta($thumb_id, '_wp_attachment_image_alt', true);
if(count($alt)) :
$output .= '&lt;p&gt;';
$output .= $alt;
$output .= '&lt;/p&gt;';
endif; */

$output .= '&lt;/div&gt;';

}
echo $output;
}
</pre>
<p>(unfortunately, posting here removes the indents which would make the code easier to read)</p>
<p>Possible styles for that to make it look like an ordinary wp caption:</p>
<pre class="brush: css; title: ; notranslate">.thumbnail-caption { padding: 5px; background: #f5f5f5; border: 1px solid #ddd; }
.thumbnail-caption-text { text-align: center; margin-bottom: 5px; font-size: 90%; }
/*
.thumbnail-title-text { text-align: center; margin-bottom: 5px; font-size: 90%; }
.thumbnail-description-text { text-align: center; margin-bottom: 5px; font-size: 90%; }
.thumbnail-alt-text { text-align: center; margin-bottom: 5px; font-size: 90%; }
*/</pre>
<p>Use the code in the template, for instance in single.php, with one of the registered thumbnail sizes as parameter; example:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php the_post_thumbnail_and_caption('large',array('class' =&gt; 'alignleft')); ?&gt;</pre>
<p>A huge &#8216;thank you&#8217; to all the contributers to <a href="http://wordpress.org/support/topic/display-caption-with-the_post_thumbnail" target="_blank">this topic</a> in the forum.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/wordpress-post-thumbnails-with-caption/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mini SEO &#8211; a Meta Description Field for Posts and Pages</title>
		<link>http://www.transformationpowertools.com/wordpress/mini-seo-meta-description-field-for-posts-and-pages</link>
		<comments>http://www.transformationpowertools.com/wordpress/mini-seo-meta-description-field-for-posts-and-pages#comments</comments>
		<pubDate>Tue, 03 Jan 2012 19:49:30 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[meta description]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[search ranking]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[seo plugin]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1462</guid>
		<description><![CDATA[Modern search engines do not rely on meta descriptions and meta keywords anymore for your ranking. However, they do preferably show a proper added meta description instead of the first few words of the post or page. If you can &#8230; <a href="http://www.transformationpowertools.com/wordpress/mini-seo-meta-description-field-for-posts-and-pages">Check the whole post <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Modern search engines do not rely on meta descriptions and meta keywords anymore for your ranking.</p>
<p>However, they do preferably show a proper added meta description instead of the first few words of the post or page.</p>
<p>If you can enter this meta description into your WordPress blog or CMS, specifically for each post and static page, you can fine tune what you would like your customers to see with the search results.</p>
<p>Most users would download and install one of the many SEO plugins, which often come with a lot of unwanted features.</p>
<p>With a bit of programming, you can add your own &#8216;Meta Description Field&#8217; below the post/page editor.</p>
<p>The first part of the code needs to be added into functions.php of your theme:</p>
<pre class="brush: php; title: ; notranslate">// 'Custom Meta Description' field below post/page editor
add_action('admin_menu', 'custom_meta_desc');
add_action('save_post', 'save_custom_meta_desc');
function custom_meta_desc() {
add_meta_box('custom_meta_desc', 'Add meta description &lt;small&gt;(if left empty, the first 200 characters of the excerpt will be used)&lt;/small&gt;', 'custom_meta_desc_input_function', 'post', 'normal', 'high');
add_meta_box('custom_meta_desc', 'Add meta description &lt;small&gt;(if left empty, the first 200 characters of the excerpt will be used)&lt;/small&gt;', 'custom_meta_desc_input_function', 'page', 'normal', 'high');
}
function custom_meta_desc_input_function() {
global $post;
echo '&lt;input type=&quot;hidden&quot; name=&quot;custom_meta_desc_input_hidden&quot; id=&quot;custom_meta_desc_input_hidden&quot; value=&quot;'.wp_create_nonce('custom-meta-desc-nonce').'&quot; /&gt;';
echo '&lt;input type=&quot;text&quot; name=&quot;custom_meta_desc_input&quot; id=&quot;custom_meta_desc_input&quot; style=&quot;width:100%;&quot; value=&quot;'.get_post_meta($post-&gt;ID,'_custom_meta_desc',true).'&quot; /&gt;';
}
function save_custom_meta_desc($post_id) {
if (!wp_verify_nonce($_POST['custom_meta_desc_input_hidden'], 'custom-meta-desc-nonce')) return $post_id;
if (defined('DOING_AUTOSAVE') &amp;&amp; DOING_AUTOSAVE) return $post_id;
$customMetaDesc = $_POST['custom_meta_desc_input'];
update_post_meta($post_id, '_custom_meta_desc', $customMetaDesc);
}
</pre>
<p>The second part will be added into header.php, below the &lt;title&gt; tag:</p>
<pre class="brush: php; title: ; notranslate">&lt;meta name=&quot;description&quot; content=&quot;&lt;?php
if( is_single() || is_page() ) :
$text = get_post_meta($post-&gt;ID,'_custom_meta_desc',true);
if(!$text) $text = ($post-&gt;post_excerpt) ? $post-&gt;post_excerpt : substr($post-&gt;post_content, 0, 200).'...';
echo esc_attr(strip_tags(apply_filters('get_the_excerpt',$text)));
else :
/* optional area to program meta descriptions for index and archive pages, etc */
endif; ?&gt;&quot; /&gt;
</pre>
<div id="attachment_1463" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-1463" title="metadesc" src="http://www.transformationpowertools.com/wordpress/wp-content/uploads/2012/01/metadesc-300x145.jpg" alt="meat description input field" width="300" height="145" /><p class="wp-caption-text">&#39;Meta Description Input&#39; for posts and pages</p></div>
<p>The new input field will show directly below the post or page editor window.</p>
<p>Simply add your meta description text into the field, and press the usual &#8216;update&#8217; button;<br />
if left empty, the meta description will show the first 200 characters of the post or page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/mini-seo-meta-description-field-for-posts-and-pages/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Personal Transformation to a Raw Food Lifestyle</title>
		<link>http://www.transformationpowertools.com/wordpress/personal-raw-food-lifestyle</link>
		<comments>http://www.transformationpowertools.com/wordpress/personal-raw-food-lifestyle#comments</comments>
		<pubDate>Sun, 25 Dec 2011 21:45:09 +0000</pubDate>
		<dc:creator>dr michael</dc:creator>
				<category><![CDATA[Personal Development]]></category>
		<category><![CDATA[bootcamp]]></category>
		<category><![CDATA[breakthrough]]></category>
		<category><![CDATA[energy]]></category>
		<category><![CDATA[fruit and veg]]></category>
		<category><![CDATA[health]]></category>
		<category><![CDATA[lifestyle]]></category>
		<category><![CDATA[limits]]></category>
		<category><![CDATA[raw food]]></category>
		<category><![CDATA[weight-loss]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1378</guid>
		<description><![CDATA[On the last weekend in November, I attended a workshop with Genesis Sunfire in Somerset UK. The workshop was advertised as: &#8216;Moving From Sedation To Living On Soul Vibration &#8211; Rites Of Passage&#8217;. From the content of Genesis&#8217; website, I &#8230; <a href="http://www.transformationpowertools.com/wordpress/personal-raw-food-lifestyle">Check the whole post <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On the last weekend in November, I attended a workshop with <a href="http://jerichosunfire.moonfruit.com/" target="_blank"><strong><em>Genesis Sunfire</em></strong></a> in Somerset UK.</p>
<p>The workshop was advertised as:<br />
<strong>&#8216;Moving From Sedation To Living On Soul Vibration &#8211; Rites Of Passage&#8217;</strong>.</p>
<p>From the content of Genesis&#8217; website, I had no idea what to expect.</p>
<p>I was more or less just accompanying my wife Fiona who was going to make a documentary of the workshop and report on her own personal experiences (you can find <a href="http://fionastolze.com/anyone-for-a-fitness-bootcamp-with-genesis-sunfire" target="_blank">details of the workshop</a> on her site).</p>
<p>Generally, I do like challenges and workshops, and it had been a while since the last one<em></em><em></em>.</p>
<div id="attachment_1392" class="wp-caption alignleft" style="width: 180px"><img class="size-full wp-image-1392" title="michael-in bootcamp-end-nov-2011" src="http://www.transformationpowertools.com/wordpress/wp-content/uploads/2011/12/michael-in-bootcamp-end-nov-2011.png" alt="" width="170" height="300" /><p class="wp-caption-text">this is me at the last day of the workshop - end of Nov - before the big changes</p></div>
<p>And on some level, I was at a point where a change to my lifestyle seemed to be something worthwhile to consider.</p>
<p>I was overeating on a &#8216;standard&#8217; omnivore diet, binging from the fridge and biscuit cupboard, and gaining weight constantly.</p>
<p>I guess my BMI (body mass index) with an estimated 28 was well into the &#8216;overweight&#8217; region; even being 1.83 m (over 8 ft) tall, my weight of over 93 kg (appr. 14 st 9 lbs) was definitively slowing me down.</p>
<p>Theoretically, I thought I knew about healthy eating, because, apart from many other qualifications, I have a diploma in Diet &amp; Nutrition &#8211; but in real life, this had no effect on my eating habits.</p>
<p>Just to repeat: I was totally unprepared for what the workshop really was about.</p>
<p>The Friday evening was about the introduction to the two days of the &#8216;bootcamp&#8217;, to be prepared for eventualities, and about a assessment of each individuals fitness, and the proper preparation and use of the &#8216;salt water flush&#8217;. The goal of the workshop was to step the eating habits one step up towards freedom from food; i.e. from cooked food onmivore to raw food vegetarian; from raw food to living of fruit alone, and then to juices, and further &#8211; starting with the first day of the workshop.</p>
<p>The practical part started on Saturday morning at 5am with the actual salt water flush, and continued with physical exercises designed to carry each participant way beyond any pre-perceived limits (I must admit this was really hard work and totally exhausting for me).<br />
The day ended with motivational talks by Genesis.</p>
<p>Sunday morning &#8211; again at 5am &#8211; saw another salt water flush, and more physical exercises (phew!! more hard work). And a final talk by Genesis about the downfalls of processed food, and the way ahead.</p>
<p>This guy is a brilliant teacher and motivator, who really knows how to deliver the message.</p>
<p>During these days I ate just one carrot and an orange, plus drank plenty water.  I must say that I have spend days in the past during which I virtually did not eat anything until tea time, so that was nothing particular diffficult for me. Although i had never in my recent past eaten so little.</p>
<p>Homework was to continue with the salt water flushes for the next five days, and to continue with a strict raw food diet focussed on fresh fruit and juices during that time &#8211; which we (my wife and I) did.<br />
Since then we are eating mainly raw food daily (definitively over 98% raw), and are now enoying our new raw lifestyle.</p>
<div id="attachment_1419" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-1419 " title="amazing new weight - 1 month after the bootcamp" src="http://www.transformationpowertools.com/wordpress/wp-content/uploads/2011/12/amazing-new-weight-1-month-after-the-bootcamp-300x147.jpg" alt="new weight after one month" width="300" height="147" /><p class="wp-caption-text">first time on the scales - 1 month after the bootcamp</p></div>
<p><em><strong>One month later</strong></em>, which happened to be on Christmas day: I got some new scales, and weighted myself for the first time, and the result was amazing &#8211; just below 80kg (appr. 12 st 8 lbs).<br />
This is an estonishing estimated weight loss of 13 kg (appr. 2 st) in just over four weeks!<br />
And without any hardship, no deprivation of tasty food, or extreme exercise; and despite continuing to prepare cooked and fried meals for the kids (who as a side effect started to accept salads and freshly juiced drinks as well <img src='http://www.transformationpowertools.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   )</p>
<p>In these last four weeks I simply felt lighter, stood straighter, had general more energy.</p>
<p>We are continuing the raw food lifestyle, and are having fun with it.</p>
<div id="attachment_1458" class="wp-caption alignleft" style="width: 220px"><img class="size-medium wp-image-1458 " title="salmon treat on mooli 2" src="http://www.transformationpowertools.com/wordpress/wp-content/uploads/2011/12/salmon-treat-on-mooli-2-300x225.jpg" alt="smoked scottish salmon on mooli with wasabi, dill and lemon" width="210" height="158" /><p class="wp-caption-text">smoked scottish salmon on mooli with wasabi, dill and lemon</p></div>
<p>On Christmas, day we started off with a (nearly*) raw brunch:<br />
smoked Scottish salmon (my first animal product in these four weeks) on oat crackers*, with  mooli, mushrooms, wasabi, dill, and lemon, together with one glass of bubbly*.</p>
<div id="attachment_1450" class="wp-caption alignright" style="width: 220px"><img class="size-medium wp-image-1450 " title="coleslaw of brussel sprouts and red cabbage" src="http://www.transformationpowertools.com/wordpress/wp-content/uploads/2011/12/coleslaw-of-brussel-sprouts-and-red-cabbage-300x183.jpg" alt="" width="210" height="128" /><p class="wp-caption-text">coleslaw with brussel sprouts, red cabbage, parsnips and carrots</p></div>
<p>Christmas dinner was a raw nut loaf with a coleslaw of Brussel sprouts, red cabbage, parsnips and carrot (just olive oil, no majo) with guacamole &#8211; (plus two roast potatoes* and other trimmings* borrowed from the more traditional cooked dinner the rest of the family was eating).</p>
<p><span style="clear: both; display: block;"> </span>My advice: don&#8217;t take things too serious during your transition to total raw food, and enjoy every new discovery of appetizing raw food combinations. Eating raw is fun. Get inspired by raw food recipes but don&#8217;t get hung up on replicating those &#8216;gourmet&#8217; raw food ones with all those exotic ingredients. The simpler the better.</p>
<p>And do book <a href="http://jerichosunfire.moonfruit.com/#/boot-camp/4547820319" target="_blank">the next available workshop</a> with <a href="http://jerichosunfire.moonfruit.com/" target="_blank">Genesis </a>- you&#8217;ll never know where the changes will lead you.</p>
<p><strong><em> update</em></strong>: 7 weeks after the retreat &#8211; my weight is down to about 78kg and seems to stagnate; I feel I have reached some emotional barrier which makes it more difficult for me to focus on this pure raw food lifestyle.</p>
<p>&nbsp;</p>
<p><em><strong>Caveat</strong></em>: if you have watched the articles and video documentation of the workshop, do not attempt to do this transition just based on this information alone &#8211; there is far more to it than any video or textual instruction can teach. You will be very likely to meet  major obstacles much earlier than anticipated. This is not a weight-loss diet &#8211; it might happen, but weight loss is not the main goal for this transition.</p>
<p><span style="font-size: 85%;"><em><strong>Disclaimer</strong></em>:This article is not designed to provide medical advice or professional services. It is intended to be for educational use only. The information provided in this article is not a substitute for professional care and should not be used for diagnosing or treating a health problem or a disease. If you have, or suspect you may have, a health problem you should consult your doctor.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/personal-raw-food-lifestyle/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page Template Sidebar Overwrite Theme Options in Twenty Eleven</title>
		<link>http://www.transformationpowertools.com/wordpress/page-template-sidebar-overwrite-theme-options-twenty-eleven</link>
		<comments>http://www.transformationpowertools.com/wordpress/page-template-sidebar-overwrite-theme-options-twenty-eleven#comments</comments>
		<pubDate>Fri, 23 Dec 2011 12:00:08 +0000</pubDate>
		<dc:creator>alchymyth</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[TwentyEleven]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[filter function]]></category>
		<category><![CDATA[page template]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[theme options]]></category>
		<category><![CDATA[Twenty Eleven]]></category>

		<guid isPermaLink="false">http://www.transformationpowertools.com/wordpress/?p=1406</guid>
		<description><![CDATA[Twenty Eleven already comes with a page template to add a sidebar to static pages. However, this sidebar will always be on the same side as the sidebar on the front  page, ruled by the &#8216;theme options&#8217;. On some pages, &#8230; <a href="http://www.transformationpowertools.com/wordpress/page-template-sidebar-overwrite-theme-options-twenty-eleven">Check the whole post <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Twenty Eleven already comes with a page template to add a sidebar to static pages. However, this sidebar will always be on the same side as the sidebar on the front  page, ruled by the &#8216;theme options&#8217;.<br />
<img class="alignleft size-medium wp-image-1412" title="left-right-sidebar-template" src="http://www.transformationpowertools.com/wordpress/wp-content/uploads/2011/12/left-right-sidebar-template-300x258.jpg" alt="example of left and right sidebars in static pages of Twenty Eleven" width="300" height="258" />On some pages, you might want to show the sidebar on the opposite side.<br />
This freedom of choice is possible with some special page templates and some coding in functions.php of the theme.</p>
<p>The following codes refer to a child theme of Twenty Eleven.</p>
<p>If you don&#8217;t want to follow the steps outlined in the <a href="http://codex.wordpress.org/Child_Themes" target="_blank">Codex</a>, you can download a ready-made child theme from <a href="http://quirm.net/download/80/" target="_blank">quirm.net</a>.</p>
<p>First step: in your child theme folder, create two new page templates &#8211; one for a fixed sidebar on the left, and the other for the sidebar on the right.</p>
<p>To begin with, copy the code of <em>sidebar-page.php</em>, and save it as <em>sidebar-left-page.php</em> and <em>sidebar-right-page.php</em>, resp.</p>
<p>The file names are important as they refer to the same names in the code for functions.php.</p>
<p>Second step: Change the line &#8216; * Template Name: Sidebar Template&#8217; to &#8216; * Template Name: Left  Sidebar Template&#8217; and &#8216; * Template Name: Right Sidebar Template&#8217;, resp.; save the files.</p>
<p>Third step: add the following code to functions.php of your child theme:</p>
<pre class="brush: php; title: ; notranslate">function twentyeleven_child_pagetemplates_body_classes( $wp_classes, $extra ){

  $classes = array();

  if( is_page_template( 'sidebar-left-page.php' ) ) :
  // correction for the Left Sidebar Template
    $classes[] = 'left-sidebar';
    $blacklist = array('right-sidebar','singular');
    // Filter the body classes
    foreach( $blacklist as $val ) {
      if (!in_array($val, $wp_classes)) : continue;
      else:
      foreach($wp_classes as $key =&gt; $value) {
        if ($value == $val) unset($wp_classes[$key]);
      }
      endif;
    }
  endif;

  if( is_page_template( 'sidebar-right-page.php' ) ) :
  // correction for the Right Sidebar Template
    $classes[] = 'right-sidebar';
    $blacklist = array('left-sidebar','singular');
    // Filter the body classes
    foreach( $blacklist as $val ) {
      if (!in_array($val, $wp_classes)) : continue;
      else:
      foreach($wp_classes as $key =&gt; $value) {
        if ($value == $val) unset($wp_classes[$key]);
      }
      endif;
    }
  endif;

return array_merge($wp_classes, (array) $extra, $classes );
}

add_filter( 'body_class', 'twentyeleven_child_pagetemplates_body_classes', 20, 2 );
</pre>
<p>That code will correct the body_classes of the theme, which are central to the layout of your site.</p>
<p>Finished.</p>
<p>Now you will have two more page templates available in the &#8216;page attributes&#8217; section when you create or edit a static page.</p>
<p>The sidebar position of these pages will be independant of the theme options (as long as one of the &#8216;content with sidebar&#8217; options is ticked).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transformationpowertools.com/wordpress/page-template-sidebar-overwrite-theme-options-twenty-eleven/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

