<?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>Mortfiles Evolved &#187; wordpress</title>
	<atom:link href="http://mortfiles.com/evolved/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://mortfiles.com/evolved</link>
	<description></description>
	<lastBuildDate>Thu, 23 Jul 2009 07:00:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Working with custom fields</title>
		<link>http://mortfiles.com/evolved/development/working-with-custom-fields/</link>
		<comments>http://mortfiles.com/evolved/development/working-with-custom-fields/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 13:03:52 +0000</pubDate>
		<dc:creator>Jimi Wikman</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://mortfiles.com/evolved/?p=62</guid>
		<description><![CDATA[How to use Wordpress customfields is always useful to know and I found this on the very informative website perishablepress.com, so all credit to them for putting this together!
Source: http://perishablepress.com/press/2008/12/22/wordpress-custom-fields-tips-tricks/
Display values of a specific key
To loop through and display the values of a specific key, place the following within the loop of your choice, and [...]]]></description>
			<content:encoded><![CDATA[<p>How to use Wordpress customfields is always useful to know and I found this on the very informative website perishablepress.com, so all credit to them for putting this together!</p>
<p>Source: <a href="http://perishablepress.com/press/2008/12/22/wordpress-custom-fields-tips-tricks/">http://perishablepress.com/press/2008/12/22/wordpress-custom-fields-tips-tricks/</a></p>
<h3>Display values of a specific key</h3>
<p>To loop through and display the values of a specific key, place the following within the loop of your choice, and change the “<code>mood</code>” value to that of your desired key value:</p>
<p><code>&lt;?php echo get_post_meta($post-&gt;ID, 'mood', true); ?&gt;</code></p>
<h3>Display multiple values of a specific key</h3>
<p><span id="more-62"></span></p>
<p>Each custom-field key may include multiple values. For example, if you listen to multiple songs during a given post, you may want to list them all with a key of “<code>songs</code>”. Then to loop through and display the multiple values for the <code>songs</code> key, we place the following code into the loop of choice:</p>
<pre><code>&lt;?php $songs = get_post_meta($post-&gt;ID, 'songs', false); ?&gt;
	&lt;h3&gt;This post inspired by:&lt;/h3&gt;
	&lt;ul&gt;
		&lt;?php foreach($songs as $song) {
			echo '&lt;li&gt;'.$song.'&lt;/li&gt;';
			} ?&gt;
	&lt;/ul&gt;</code></pre>
<p>Notice the trick here: by changing the third parameter to “<code>false</code>”, we tell the function to return an array of the values for the specified key. A very handy trick for displaying multiple key values.</p>
<h3>Display content only if a custom field exists</h3>
<p>For cases when not all posts contain some specific custom-field key, use the following code to prevent unwanted, empty or incomplete markup from destroying the validity of your page:</p>
<pre><code>// display an image based on custom-field value, if it exists

&lt;?php $image = get_post_meta($post-&gt;ID, 'url', true);

	if($image) : ?&gt;

	&lt;img src="&lt;?php echo $image; ?&gt;" alt="" /&gt;

	&lt;?php endif; ?&gt;</code></pre>
<h3>Conditional display of custom-field data</h3>
<p>Continuing with the previous technique, here is a basic code template for displaying a list of key values only if they exist:</p>
<pre><code>&lt;?php if(get_post_meta($post-&gt;ID, 'books', true) ||
	 get_post_meta($post-&gt;ID, 'music', true) ||
	 get_post_meta($post-&gt;ID, 'sites', true)
	 ): ?&gt;

	&lt;ul&gt;
		&lt;?php if(get_post_meta($post-&gt;ID, 'books', true)): ?&gt;
		&lt;li&gt;&lt;?php echo get_post_meta($post-&gt;ID, 'books', true); ?&gt;&lt;/li&gt;
		&lt;?php endif; ?&gt;

		&lt;?php if(get_post_meta($post-&gt;ID, 'music', true)): ?&gt;
		&lt;li&gt;&lt;?php echo get_post_meta($post-&gt;ID, 'music', true); ?&gt;&lt;/li&gt;
		&lt;?php endif; ?&gt;

		&lt;?php if(get_post_meta($post-&gt;ID, 'sites', true)): ?&gt;
		&lt;li&gt;&lt;?php echo get_post_meta($post-&gt;ID, 'sites', true); ?&gt;&lt;/li&gt;
		&lt;?php endif; ?&gt;
	&lt;/ul&gt;

&lt;?php endif; ?&gt;</code></pre>
<h3>More conditional content based on custom-field values</h3>
<p>Here’s another neat trick whereby custom-field values are used to determine which type of content appears on a page. In this example, we are checking the value of of a custom-field key called “<code>hobbies</code>”. Depending on the value of the <code>hobbies</code> key, different links are output on the page. Check it out:</p>
<pre><code>&lt;?php $value = get_post_meta($post-&gt;ID, 'hobbies', true);

	if($value == 'gaming') {
		echo '&lt;a href="http://domain.tld/gaming/"&gt;Gaming Stuff&lt;/a&gt;';
	} elseif($value == 'sleeping') {
		echo '&lt;a href="http://domain.tld/sleeping/"&gt;Nap Supplies&lt;/a&gt;';
	} elseif($value == 'eating') {
		echo '&lt;a href="http://domain.tld/eating/"&gt;Dieting Advice&lt;/a&gt;';
	} else {
		echo '&lt;a href="http://domain.tld/"&gt;Home Page&lt;/a&gt;';
	}

?&gt;</code></pre>
<h3>Simplification and externalization</h3>
<p>To clean up our source code a little, we can relocate the <code>get_post_meta()</code> function to the theme’s <code>functions.php</code> file. The immediate benefit here is one less parameter to include in the template tag. To do this, first place the following code into your theme’s <code>functions.php</code> file:</p>
<pre><code>&lt;?php function get_custom_field_data($key, $echo = false) {
	global $post;
	$value = get_post_meta($post-&gt;ID, $key, true);
	if($echo == false) {
		return $value;
	} else {
		echo $value;
	}
}
?&gt;</code></pre>
<p>..and then call the function by placing this code in the desired location within your page template:</p>
<pre><code>&lt;?php if(function_exists('get_custom_field_data')) {
	get_custom_field_data('key', true);
} ?&gt;</code></pre>
<p>The only thing you need to edit here is the value of the “<code>key</code>” parameter, which should be the same as the key for which you would like to display value data. The second parameter is currently set as “<code>true</code>” so that the key value is echoed to the browser. To save the key value as a variable for further processing, change this parameter to “<code>false</code>”.</p>
]]></content:encoded>
			<wfw:commentRss>http://mortfiles.com/evolved/development/working-with-custom-fields/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Why use Wordpress?</title>
		<link>http://mortfiles.com/evolved/development/why-use-wordpress/</link>
		<comments>http://mortfiles.com/evolved/development/why-use-wordpress/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 20:06:52 +0000</pubDate>
		<dc:creator>Jimi Wikman</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://mortfiles.com/evolved/?p=29</guid>
		<description><![CDATA[Why do I want to use Wordpress as the core CMS behind Mortfiles Evolved and how do I intend to use it? Here are some thoughts on that subject.
On the current Mortfiles website I have no less than 3 wordpress installations for different purposes mixed with static files and includes in one big mess, although [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Why do I want to use Wordpress as the core CMS behind Mortfiles Evolved and how do I intend to use it? Here are some thoughts on that subject.</strong></p>
<p>On the current Mortfiles website I have no less than 3 wordpress installations for different purposes mixed with static files and includes in one big mess, although it&#8217;s a working mess. This is not a very efficient way to handle a website obviously and it&#8217;s far easier to merge all areas into one, controlled by one administrative interface. This is where Wordpress comes in.</p>
<p>Now, how do I intend to make all the areas of the old website merge into the Mortfiles Evolved website? The short answer is that I don&#8217;t. There will be several areas that will be cut out and the remaining areas will work just fine using the Wordpress backend through some creative use of templates and custom coding.  The most interesting part of the project will be to use the post feature both for blogging and to maintain a portfolio, both with different designs and different setup. That will be dealt with by making some creative use of the Wordpress template system so that posts under the portfolio for example will use a specific template instead of the default that will be reserved for the blog. Once setup I will be able to maintain both the website, the blog and the portfolio with very little effort.</p>
<p>The advantages of this also include taking advantage of the Wordpress plugin system that has alot of great features such as automatic sitemaps (both in html and xml), Cache system, RSS feeds, newsletters and much, much more. It also means that it&#8217;s possible to take advantage of the Wordpress search system to make the entire website searchable. This is in addition to a great content management system that is easy and fun to use that hold a flexible template system.</p>
<p>All in all this gives a more uniform impression and I think it will be more fun for me to work with, a better experience for my clients and a much more dynamic website for potential clients. Fingers crossed.</p>
]]></content:encoded>
			<wfw:commentRss>http://mortfiles.com/evolved/development/why-use-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dual language for Wordpress</title>
		<link>http://mortfiles.com/evolved/development/dual-language-for-wordpress/</link>
		<comments>http://mortfiles.com/evolved/development/dual-language-for-wordpress/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 09:58:54 +0000</pubDate>
		<dc:creator>Jimi Wikman</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wpml]]></category>

		<guid isPermaLink="false">http://mortfiles.com/evolved/?p=26</guid>
		<description><![CDATA[Building a two language website using Wordpress is something of a challenge, but I have some ideas.
I have been pondering many approaches for making Mortfiles Evolved available in both Swedish and English and so far I have looked at using a Wordpress MU setup, using the translation service like I have here on this website, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Building a two language website using Wordpress is something of a challenge, but I have some ideas.</strong></p>
<p>I have been pondering many approaches for making Mortfiles Evolved available in both Swedish and English and so far I have looked at using a Wordpress MU setup, using the translation service like I have here on this website, getting creative with custom fields and finally using something like <a href="http://wpml.org/">WPML</a> or <a href="http://hellosam.net/project/xlanguage">xLanguage</a>.</p>
<p>All choices have their advantages and flaws, but I think that I will go with WPML if it turn out ok, not just for the translation features, but also for the built in navigation that has dropdown features for the subpages that I want for this project. That way I get both in one package which sounds a bit to good to be true&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mortfiles.com/evolved/development/dual-language-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mortfiles:revised</title>
		<link>http://mortfiles.com/evolved/development/mortfilesrevised/</link>
		<comments>http://mortfiles.com/evolved/development/mortfilesrevised/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 12:56:09 +0000</pubDate>
		<dc:creator>Jimi Wikman</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[active collab]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[whmcs]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://mortfiles.com/evolved/?p=9</guid>
		<description><![CDATA[Its been a while now since my last re-design of Mortfiles and to tell the truth its getting a bit bloated and unfocused, which is not exactly promoting sales and its holding me back from getting creative.
In order to fix this I am starting a project where I will rebuild Mortfiles to be a more [...]]]></description>
			<content:encoded><![CDATA[<p><strong><img class="alignright size-full wp-image-13" title="Mortfiles Evolved" src="http://mortfiles.com/evolved/wp-content/uploads/2009/06/Untitled-3.jpg" alt="Mortfiles Evolved" width="296" height="85" />Its been a while now since my last re-design of Mortfiles and to tell the truth its getting a bit bloated and unfocused, which is not exactly promoting sales and its holding me back from getting creative.</strong></p>
<p><strong>In order to</strong> fix this I am starting a project where I will rebuild Mortfiles to be a more focused project that <em>IS</em> focused on business and not as a playground for my mad ideas. This project will also merge Mortfiles.com and Mortfiles.se into one dual language website using Wordpress as backend. The new design will be more focused on sale and it will take advantage of JQuery to make things easier and better looking.</p>
<p><strong>I am also</strong> going to work with WHMCS to build a better orderform to make things a whole lot nicer, which is something that I have put off for a while now as my heart has not really been in it. The WHMCS package is still the best for the job, but I will now merge the two installations into one, which means dual languages and dual currency setup.</p>
<p><strong>I am going </strong>to change the project manager for Mortfiles Evolved and will go for Active Collab instead as I find it more intuitive and nicer in design to work with. I will rework it a bit to make it even more awesome, both through design and hopefully by extending it with some modules down the road.</p>
<p><strong>Right now I</strong> am in the scribbling phase where I poke design thoughts and try to figure out what should go where and why, but hopefully it will come together soon enough.</p>
]]></content:encoded>
			<wfw:commentRss>http://mortfiles.com/evolved/development/mortfilesrevised/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
