<?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>Design is Philosophy - The Pink &#38; Yellow Media Blog &#187; WordPress as CMS</title>
	<atom:link href="http://www.designisphilosophy.com/category/wordpress-as-cms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designisphilosophy.com</link>
	<description>Tutorials and thoughts on Microsoft Expression, CSS and WordPress</description>
	<lastBuildDate>Tue, 24 Aug 2010 16:40:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://www.designisphilosophy.com/?pushpress=hub'/>
		<item>
		<title>Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks</title>
		<link>http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks-20100812/</link>
		<comments>http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks-20100812/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 00:30:41 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Speaking Engagements]]></category>
		<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=861</guid>
		<description><![CDATA[Below you&#8217;ll find the code examples for my Vancouver WordPress Meetup group talk Simple Yet Powerful WordPress Hacks held on August 12, 2010. This article will be expanded after the talk but for now it consists only of the code examples themselves. Replace blog title with a linked image One of my top 10 pet [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/video-tutorials/using-wordpress-in-alternate-configurations-my-wordcamp-whistler-09-presentation-20090203/' rel='bookmark' title='Permanent Link: Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation'>Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation</a></li>
<li><a href='http://www.designisphilosophy.com/css/highlight-current-page-in-wordpress-menus-20081118/' rel='bookmark' title='Permanent Link: Highlight current page in WordPress menus'>Highlight current page in WordPress menus</a></li>
<li><a href='http://www.designisphilosophy.com/events/speaking-about-wordpress-as-cms-at-wordcamp-whistler-what-do-you-want-me-to-cover-20090112/' rel='bookmark' title='Permanent Link: Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?'>Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Below you&#8217;ll find the code examples for my Vancouver WordPress Meetup group talk Simple Yet Powerful WordPress Hacks held on August 12, 2010. This article will be expanded after the talk but for now it consists only of the code examples themselves.</p>
<h3>Replace blog title with a linked image</h3>
<p>One of my top 10 pet peeves is sites where you can&#8217;t click the logo to get to the home page but have to click the &#8220;Home&#8221; button. This code block can be inserted in the header.php file and it will insert an image (logo) that links back to the home page and also has the alternate text and link title set to the name of the site.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;blog-title&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo get_bloginfo('url') ?&gt;</span></span>/&quot; title=&quot;<span style="color: #009900;">&lt;?php bloginfo<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'name'</span><span style="color: #66cc66;">&#41;</span> ?&gt;</span>&quot; rel=&quot;home&quot;&gt;
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('name') ?&gt;</span></span>&quot; src=&quot;<span style="color: #009900;">&lt;?php echo get_bloginfo<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'template_url'</span><span style="color: #66cc66;">&#41;</span> ?&gt;</span>/imageFolder/imageFile.type&quot; /&gt;
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<h3>Add WP 3.0 menus to non-WP 3.0 themes</h3>
<p>To add WP 3.0 menus to themes that were built before the new version of WordPress or don&#8217;t have them built in you need to activate the menu function in functions.php and then add a call to the menu in your template file.</p>
<p>Add to functions.php:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">register_nav_menus(
	array(
		'menuName' =&gt;__('Menu Name'),
		'2ndMenu' =&gt;__('2nd Menu'),
	)
);</pre></div></div>

<p>Add to template file:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php </span>
<span style="color: #009900;">	wp_nav_menu<span style="color: #66cc66;">&#40;</span>array<span style="color: #66cc66;">&#40;</span></span>
<span style="color: #009900;">		 <span style="color: #ff0000;">'theme_location'</span> <span style="color: #66cc66;">=</span>&gt;</span> 'primary'
	)); 
?&gt;</pre></div></div>

<p>Note that the theme_location call points to the name of the menu as set in functions.php. To target the menu name set inside WordPress use this code instead:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php </span>
<span style="color: #009900;">	wp_nav_menu<span style="color: #66cc66;">&#40;</span>array<span style="color: #66cc66;">&#40;</span></span>
<span style="color: #009900;">		<span style="color: #ff0000;">'name'</span> <span style="color: #66cc66;">=</span>&gt;</span> 'Menu Name'
	)); 
?&gt;</pre></div></div>

<h3>Highlight current page or category in menu</h3>
<p>I&#8217;ve already written an extensive article on this subject that can be found <a href="http://www.designisphilosophy.com/tutorials/highlight-current-page-or-category-20100809/" title="Highlight Current Page or Category in WordPress 3.0 Menus">here</a>. The core of the CSS code is this style:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">.current-menu-item,
.current-page-ancestor,
.current-post-ancestor {
	... style info goes here ...
}</pre></div></div>

<h3>Custom page template in 5 lines of code</h3>
<p>To create a custom page template simply insert the following 5 lines of code at the top of your template file and give it a name other than &#8220;whatever&#8221;. Once saved (as something other than page.php) it will appear as one of your template options inside WordPress.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php </span>
&nbsp;
<span style="color: #009900;"><span style="color: #66cc66;">/</span>* Template <span style="color: #000066;">Name</span>: Whatever *<span style="color: #66cc66;">/</span> </span>
&nbsp;
<span style="color: #009900;">?&gt;</span></pre></div></div>

<h3>Add Featured Image (thumbnail) functionality to your theme</h3>
<p>To activate the Featured Image panel in WordPress admin an enable the function you need to add a small piece of code to the functions.php file. Once this is done and Featured Images have been defined you can call them from within any template file using one of the calls below. </p>
<p>In functions.php:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">add_theme_support( 'post-thumbnails' );</pre></div></div>

<p>In theme file:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php the_post_thumbnail<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span></pre></div></div>

<p>The above call will produce the thumbnail in the size defined inside WordPress admin under Settings -> Media. To call a different size use one of the following:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">the_post_thumbnail('thumbnail');
the_post_thumbnail('medium');
the_post_thumbnail('large');
the_post_thumbnail(array(nnn,nnn));</pre></div></div>

<p>For the last one replace &#8216;nnn&#8217; with any pixel width and height.</p>


<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/video-tutorials/using-wordpress-in-alternate-configurations-my-wordcamp-whistler-09-presentation-20090203/' rel='bookmark' title='Permanent Link: Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation'>Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation</a></li>
<li><a href='http://www.designisphilosophy.com/css/highlight-current-page-in-wordpress-menus-20081118/' rel='bookmark' title='Permanent Link: Highlight current page in WordPress menus'>Highlight current page in WordPress menus</a></li>
<li><a href='http://www.designisphilosophy.com/events/speaking-about-wordpress-as-cms-at-wordcamp-whistler-what-do-you-want-me-to-cover-20090112/' rel='bookmark' title='Permanent Link: Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?'>Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks-20100812/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BellevueGallery.ca &#8211; A WordPress Site Showcasing Fine Art</title>
		<link>http://www.designisphilosophy.com/wordpress-as-cms/bellevuegallery-ca-a-wordpress-site-showcasing-fine-art-20100428/</link>
		<comments>http://www.designisphilosophy.com/wordpress-as-cms/bellevuegallery-ca-a-wordpress-site-showcasing-fine-art-20100428/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 23:36:43 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[WordPress as CMS]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=729</guid>
		<description><![CDATA[One of our early clients as Pink &#38; Yellow Media was a small fine arts gallery in West Vancouver called Bellevue Gallery. At the time they were looking for a website that reflected their style and sophistication and that showcased both their past, current and upcoming shows and also the individual artists represented by the [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/microsoft-expression-web/new-wordpress-based-site-the-readers-companion-20081002/' rel='bookmark' title='Permanent Link: New WordPress based site: The Reader&#8217;s Companion'>New WordPress based site: The Reader&#8217;s Companion</a></li>
<li><a href='http://www.designisphilosophy.com/wordpress/new-wordpress-based-site-annychihcom-20090130/' rel='bookmark' title='Permanent Link: New WordPress-based Site: AnnyChih.com'>New WordPress-based Site: AnnyChih.com</a></li>
<li><a href='http://www.designisphilosophy.com/tutorials/highlight-current-page-or-category-20100809/' rel='bookmark' title='Permanent Link: Highlight Current Page or Category in WordPress 3.0 Menus'>Highlight Current Page or Category in WordPress 3.0 Menus</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/04/bellevuegallery.jpg"><img class="aligncenter size-medium wp-image-730" title="Bellevue Gallery" src="http://www.designisphilosophy.com/wp-content/uploads/2010/04/bellevuegallery-506x443.jpg" alt="" width="506" height="443" /></a>One of our early clients as Pink &amp; Yellow Media was a small fine arts gallery in West Vancouver called Bellevue Gallery. At the time they were looking for a website that reflected their style and sophistication and that showcased both their past, current and upcoming shows and also the individual artists represented by the gallery. In accordance with the trend at the time we built them a fancy and dynamic Flash-based website that had all the bells and whistles where moving menus, active backgrounds and an interactive experience were concerned. But that was then. Today the web consumer is no longer looking for flashy intros and moving elements &#8211; they want content. Immediately. Today&#8217;s web consumer expects a search on Google to take them straight to the content they are looking for. And to boot they want to be able to interact with the content, whether it be sending it to a friend by email, posting it on Facebook or raving about it on Twitter. Suffice it to say the art of designing Flash-based web sites is quickly fading to the bright star of dynamic CMS-based sites like those built on WordPress.</p>
<h3>A new site is born</h3>
<p>After some discussions with the gallery owners it was decided a new site was needed &#8211; one that not only drove web users directly to the shows, artists or even art pieces they were looking for, but one that also allowed the gallery to communicate more directly with the visitors through a news page and social media. But most importantly we wanted to create a site the gallery could manage on their own by adding shows, artists and photo galleries and write articles about the everyday goings on in the gallery itself. The natural platform for such a site was WordPress.</p>
<p>Based on the original site we knew we needed a front page, an exhibitions list displaying past, current and future shows, a gallery artist page with sub-pages for each artist, a news section, an artist submissions section, a page with info about the gallery itself and finally a contact page. Since the client is an art gallery and they had a huge number of photos of art pieces we needed to find a solution that would make the artwork easy to display for the owners and easy to navigate and digest for the visitors.</p>
<p>The design of the site needed to stay true to the visual identity of the gallery, built over several years. To help in the design process we brought in <a title="Fresh Media Designs" href="http://freshmediadesigns.com/" target="_blank">Alexandra Oosterom from Fresh Media Designs</a> and she turned out a clean yet stylish look for the site that fit with the parameters we outlined.</p>
<h3>Thinking in taxonomies</h3>
<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/04/artistPages.jpg"><img class="aligncenter size-medium wp-image-731" title="Three artist sub-pages side by side" src="http://www.designisphilosophy.com/wp-content/uploads/2010/04/artistPages-506x181.jpg" alt="" width="506" height="181" /></a>The challenge when using a CMS is always to come up with rational and logical taxonomies so different elements nest within each other in a rational way. Originally we planned on setting the site up as a huge list of parent and child static pages but that became cumbersome and blocked some of the features we wanted to include. The solution was to set up a parent category called Gallery Artists with a sub category for each of the artists. Because each artist would have a gallery plus a set of info pages (Artist Statement, Biography and Curriculum Vitae) but not all artists would have all the pages we also needed to come up with a way of creating a dynamic menu to display within each artist page that let the visitor jump from page to page quickly. The result was a clever little PHP hook within one of the post templates (yes, this site has 10 different single post templates depending on what category you are viewing and what page you got there from) that queried the parent category of the post (the artist name) and then listed out all the other posts within that category as a menu. This all came together to create a simple and intuitive navigational tool for the visitor.</p>
<h3>Using NextGEN Gallery outside the norm</h3>
<p>One of the interesting challenges of the site was to create a dynamic gallery artists page that featured the artist name as well as a photo of an art piece and a short bio that would in turn lead to a set of dedicated pages for that individual artist. After playing around with a few different solutions we decided to use the popular <a title="NextGEN Gallery plugin" href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">NextGEN Gallery plugin</a> as the base for the gallery artist page. This plugin removes the process of image and gallery management from the pages and posts in WordPress and puts it in its own administration area. This makes it easier to manage large ammounts of content as was the case here. The output of NextGEN Gallery is also dymanic so a change in gallery order, image description or artist bio will be reflected on all the pages where that gallery or image is embedded with one change.</p>
<p>We set up one gallery for each artist that was then embedded into a separate post for that artist. To display the list of all the artists on the Gallery Artists page we used the NextGEN Gallery Album function. The problem was that the Album function only points to pages, not posts. To curb this problem we had to go in and rewrite a large bulk of the sourcecode in the plugin. After the fix each artist gallery could be related to any page or post by entering the post ID number.</p>


<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/microsoft-expression-web/new-wordpress-based-site-the-readers-companion-20081002/' rel='bookmark' title='Permanent Link: New WordPress based site: The Reader&#8217;s Companion'>New WordPress based site: The Reader&#8217;s Companion</a></li>
<li><a href='http://www.designisphilosophy.com/wordpress/new-wordpress-based-site-annychihcom-20090130/' rel='bookmark' title='Permanent Link: New WordPress-based Site: AnnyChih.com'>New WordPress-based Site: AnnyChih.com</a></li>
<li><a href='http://www.designisphilosophy.com/tutorials/highlight-current-page-or-category-20100809/' rel='bookmark' title='Permanent Link: Highlight Current Page or Category in WordPress 3.0 Menus'>Highlight Current Page or Category in WordPress 3.0 Menus</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress-as-cms/bellevuegallery-ca-a-wordpress-site-showcasing-fine-art-20100428/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Frugalbits.com &#8211; WordPress as a Magazine CMS</title>
		<link>http://www.designisphilosophy.com/news/frugalbits-com-wordpress-as-a-magazine-cms-20100405/</link>
		<comments>http://www.designisphilosophy.com/news/frugalbits-com-wordpress-as-a-magazine-cms-20100405/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 01:42:53 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[custom theme]]></category>
		<category><![CDATA[magazine]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=692</guid>
		<description><![CDATA[Last year I was contacted by two veterans of the publishing business with an idea for a new online magazine called &#8220;Frugalbits&#8220;. It would be a daily publication in which readers would find deals and ideas on how to be more frugal &#8211; a virtue I think we all wish we had more of. They [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks-20100812/' rel='bookmark' title='Permanent Link: Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks'>Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks</a></li>
<li><a href='http://www.designisphilosophy.com/wordpress/new-wordpress-based-site-annychihcom-20090130/' rel='bookmark' title='Permanent Link: New WordPress-based Site: AnnyChih.com'>New WordPress-based Site: AnnyChih.com</a></li>
<li><a href='http://www.designisphilosophy.com/microsoft-expression-web/wordpress-as-cms-the-project-20080312/' rel='bookmark' title='Permanent Link: WordPress as CMS &#8211; The Project'>WordPress as CMS &#8211; The Project</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/04/frugalbits.jpg"><img class="alignright size-medium wp-image-695" title="Frugalbits.com - spend smart" src="http://www.designisphilosophy.com/wp-content/uploads/2010/04/frugalbits-219x300.jpg" alt="" width="219" height="300" /></a>Last year I was contacted by two veterans of the publishing business with an idea for a new online magazine called &#8220;<a title="Frugalbits.com - Spend Smart" href="http://frugalbits.com" target="_blank">Frugalbits</a>&#8220;. It would be a daily publication in which readers would find deals and ideas on how to be more frugal &#8211; a virtue I think we all wish we had more of. They were looking for a highly customizeable web solution for the site and had realized that the answer might be WordPress. Smart ladies.</p>
<p>Several months and many hours of nit picking code later and <a title="Frugalbits.com - Spend Smart" href="http://frugalbits.com/" target="_blank">Frugalbits</a> is now finally live to the world. It&#8217;s a labour of love for me as well as the crew behind the site and it is a project I am exceedingly proud to have been a part of. So, without further ado, let me walk you through some of the interesting elements of the site:</p>
<h3>A Carousel of Stories</h3>
<p>Early on in the process the request came in to have a featured story carousel at the top of the front page. Unlike many other such sites the <a title="Frugalbits.com - Spend Smart" href="http://frugalbits.com/" target="_blank">Frugalbits</a> team didn&#8217;t want to have multiple text stories on the front page but requested instead one main story, named The Daily Deal, to be featured and then have a carousel with the latest 8 stories displayed at the top. Over the years I&#8217;ve worked with many different featured story plugins and carousels and as with pretty much every other plugin I come into contact with I&#8217;ve hated them all. For this one I decided I&#8217;d go out and find something that could be customized down to the last pixel and that ran independently of the whole WordPress plugin regime. And after a lot of searching I finally found a JavaScript based carousel I could take apart and put together exactly the way I wanted it.</p>
<p>The carousel requested would feature 8 stories (4 and 4) and would have a square story picture, a tagline on a translucent banner and the story title itself. In addition the coloured banner the story title would go on should change depending on the category the story belonged to. This meant I needed to create a loop in which 4 fields were queried for each story: thumbnail, tagline, category and title. It quickly became apparent that apart from the title the rest of the fields had to be customized for each story. To solve this I created 3 custom fields; thumbnail, cat and tagline, and the story editor filled out each of these taglines with the appropriate content. It worked quite well and I was satisfied that this solution would work</p>
<p>But. After a beta launch one of the editors brought up a point I never considered: The first entry of the carousel would always be the same as the story on the front page. And since the front page only had one story this was to put it midly somewhat redundant. Fortunately WordPress has an answer for this type of situation: offset.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php query_posts<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'posts_per_page=8&amp;offset=1'</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span></pre></div></div>

<p>An explanation: The carousel is populated using the standard query_posts() function. By using the offset variable in conjuction with posts_per_page I can define how many posts the query should &#8220;skip&#8221; before starting the list. And since I just wanted to skip the first (front page) post, that value should be 1. Problem solved.</p>
<h3>Adding an Author Box</h3>
<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/04/authorBox.jpg"><img class="aligncenter size-full wp-image-694" title="Frugalbits author box" src="http://www.designisphilosophy.com/wp-content/uploads/2010/04/authorBox.jpg" alt="" width="446" height="331" /></a>Because <a title="Frugalbits.com - Spend Smart" href="http://frugalbits.com/" target="_blank">Frugalbits</a> is a magazine it has both &#8220;normal&#8221; articles and also columns written by a select group of columnists. The request was that for these columns there be a box at the top right under the title with a photo, name and a short bio for that columnist. WordPress doesn&#8217;t have a standard function to add such an author box and though there are plugins that do it they are clunky, full of garbage code and not easy to style. I chose to go hard core on this one and just write it right into the single template using a <a title="Source code for a conditional custom field" href="http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials-20090821/" target="_blank">conditional custom field</a>. The result was the nice chunk of code below which produces a nice CSS styled box with the author Gravatar, category name, author name and WordPress user bio when activated with a custom field with the name &#8220;author&#8221; and the value &#8220;true&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php if<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>get_post_meta<span style="color: #66cc66;">&#40;</span>$post-&gt;</span>ID, 'author', true))) { ?&gt;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;authorbox&quot;</span>&gt;</span>  
		<span style="color: #009900;">&lt;?php if <span style="color: #66cc66;">&#40;</span>function_exists<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'get_avatar'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> echo get_avatar<span style="color: #66cc66;">&#40;</span> get_the_author_email<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #ff0000;">'80'</span> <span style="color: #66cc66;">&#41;</span>; <span style="color: #66cc66;">&#125;</span>?&gt;</span>  
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;authortext&quot;</span>&gt;</span>  
			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h4</span>&gt;&lt;?php the_category<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">' '</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span> is by <span style="color: #009900;">&lt;?php the_author_posts_link<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h4</span>&gt;</span>  
			<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;?php the_author_description<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>  
		<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>  <span style="color: #808080; font-style: italic;">&lt;!-- END #authortext --&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>  <span style="color: #808080; font-style: italic;">&lt;!-- END #authorbox --&gt;</span>
<span style="color: #009900;">&lt;?php <span style="color: #66cc66;">&#125;</span> ?&gt;</span></pre></div></div>

<h3>Custom templates</h3>
<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/04/multiLayout.jpg"><img class="aligncenter size-full wp-image-696" title="multiLayout" src="http://www.designisphilosophy.com/wp-content/uploads/2010/04/multiLayout.jpg" alt="" width="507" height="143" /></a>One of the most important features of the <a title="Frugalbits.com - Spend Smart" href="http://frugalbits.com/" target="_blank">Frugalbits</a> site is actually something you hardly notice: The custom templates. Depending on where you are in the site the layout changes subtly. The front page features the carousel, the single post pages have the optional author box, the category pages have only the right sidebar and show thumbnails for each story and the legal pages have an entirely different sidebar from the rest. To top it off the F Spot category has an entirely separate tempalte that looks nothing like the other ones. All this is done by using conditional statements and creating custom theme files for individual pages and categories.</p>
<p>Now that it&#8217;s launched I&#8217;m looking forward to hearing what people have to say about <a title="Frugalbits.com - Spend Smart" href="http://frugalbits.com/" target="_blank">Frugalbits</a> and it&#8217;s functions. Feel free to leave your questions and comments below and please visit the site and learn how to be frugal yourself!</p>


<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks-20100812/' rel='bookmark' title='Permanent Link: Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks'>Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks</a></li>
<li><a href='http://www.designisphilosophy.com/wordpress/new-wordpress-based-site-annychihcom-20090130/' rel='bookmark' title='Permanent Link: New WordPress-based Site: AnnyChih.com'>New WordPress-based Site: AnnyChih.com</a></li>
<li><a href='http://www.designisphilosophy.com/microsoft-expression-web/wordpress-as-cms-the-project-20080312/' rel='bookmark' title='Permanent Link: WordPress as CMS &#8211; The Project'>WordPress as CMS &#8211; The Project</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/news/frugalbits-com-wordpress-as-a-magazine-cms-20100405/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Webcast: An Intimate and Enlightening View into Microsoft Expression Web 3</title>
		<link>http://www.designisphilosophy.com/microsoft-expression-web/webcast-an-intimate-and-enlightening-view-into-microsoft-expression-web-3-20100323/</link>
		<comments>http://www.designisphilosophy.com/microsoft-expression-web/webcast-an-intimate-and-enlightening-view-into-microsoft-expression-web-3-20100323/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 16:52:43 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[Speaking Engagements]]></category>
		<category><![CDATA[WordPress as CMS]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=685</guid>
		<description><![CDATA[I&#8217;m doing a 1 hour live webcast with Microsoft Canada demonstrating advanced WordPress customization with Expression Web 3 on April 6th, and you are welcome to join. It will be an extended version of my MIX10 session with more demos and more time for questions. All you have to do to participate is register. Full [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/microsoft-expression-web/expression-web-2-webcast-june-5th-what-do-you-want-to-know-20080529/' rel='bookmark' title='Permanent Link: Expression Web 2 Webcast June 5th &#8211; What do you want to know?'>Expression Web 2 Webcast June 5th &#8211; What do you want to know?</a></li>
<li><a href='http://www.designisphilosophy.com/microsoft-expression-web/speaking-at-interactive-panel-discussion-the-right-presentation-layer-for-your-solution-20090225/' rel='bookmark' title='Permanent Link: Speaking at Interactive Panel Discussion: The Right Presentation Layer for Your Solution'>Speaking at Interactive Panel Discussion: The Right Presentation Layer for Your Solution</a></li>
<li><a href='http://www.designisphilosophy.com/microsoft-expression/get-microsoft-expression-products-50-off-for-the-holidays-20081223/' rel='bookmark' title='Permanent Link: Get Microsoft Expression Products 50% off for the Holidays!'>Get Microsoft Expression Products 50% off for the Holidays!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/03/microsoft-expression-web-3.jpg"><img class="aligncenter size-full wp-image-686" title="microsoft expression web 3" src="http://www.designisphilosophy.com/wp-content/uploads/2010/03/microsoft-expression-web-3.jpg" alt="" width="506" height="178" /></a></p>
<p>I&#8217;m doing a 1 hour live webcast with Microsoft Canada demonstrating advanced WordPress customization with Expression Web 3 on April 6th, and you are welcome to join. It will be an extended version of my <a title="A Case Study: Rapid WordPress Design and Prototyping with Expression Web 3" href="http://live.visitmix.com/MIX10/Sessions/CL56" target="_blank">MIX10 session</a> with more demos and more time for questions. All you have to do to participate is <a title="Register for the Expression Web webcast" href="http://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=F9-C8-C6-5F-CD-C7-49-CB-21-48-DC-A3-AB-77-7D-A4&#038;Culture=en-CA" target="_blank">register</a>. Full writeup below:</p>
<p><a href="http://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=F9-C8-C6-5F-CD-C7-49-CB-21-48-DC-A3-AB-77-7D-A4&#038;Culture=en-CA" target="_blank"><strong>REGISTER</strong></a><br />
<strong>Invitation Code</strong><strong>: </strong>0781DA<strong><br />
Tuesday, April 6<sup>th, </sup>2010<br />
Start Time: 11:00AM PST (02:00 PM EST)</strong><br />
Webcast Duration:  60 min<br />
Questions about these events?<br />
Call us at  1-888-789-7770</p>
<p>A follow up to Paul Laberge&#8217;s &#8220;101&#8221; webcast, Expression Web MVP and WordPress hacker Morten Rand-Hendriksen takes you through an intimate and enlightening look into his day-to-day work process. He specializes in building solid standards-based websites on the WordPress platform using Microsoft web technologies and Expression Web. The session takes you through real-life examples of customer projects and pulls back the curtain on a work process that employs what Morten jokingly refers to as the &#8220;Unholy Quatern&#8221; &#8211; Microsoft&#8217;s Expression Web 3, Web Platform Installer and Mesh combined with the open-source publishing platform WordPress. Combining these four technologies Morten has developed a process in which rapid site debugging, prototyping and implementation becomes a reality.</p>
<p>Learn the inner workings of WordPress and how to use its theme engine to build pretty much any website you can think of using Expression Web 3 and see how using simple web technologies like WPI and Mesh can make your life as a CMS dev/igner much easier.</p>
<p><strong><a title="Register for the Expression Web webcast" href="http://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=F9-C8-C6-5F-CD-C7-49-CB-21-48-DC-A3-AB-77-7D-A4&#038;Culture=en-CA" target="_blank">Register Today!</a></strong></p>


<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/microsoft-expression-web/expression-web-2-webcast-june-5th-what-do-you-want-to-know-20080529/' rel='bookmark' title='Permanent Link: Expression Web 2 Webcast June 5th &#8211; What do you want to know?'>Expression Web 2 Webcast June 5th &#8211; What do you want to know?</a></li>
<li><a href='http://www.designisphilosophy.com/microsoft-expression-web/speaking-at-interactive-panel-discussion-the-right-presentation-layer-for-your-solution-20090225/' rel='bookmark' title='Permanent Link: Speaking at Interactive Panel Discussion: The Right Presentation Layer for Your Solution'>Speaking at Interactive Panel Discussion: The Right Presentation Layer for Your Solution</a></li>
<li><a href='http://www.designisphilosophy.com/microsoft-expression/get-microsoft-expression-products-50-off-for-the-holidays-20081223/' rel='bookmark' title='Permanent Link: Get Microsoft Expression Products 50% off for the Holidays!'>Get Microsoft Expression Products 50% off for the Holidays!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/microsoft-expression-web/webcast-an-intimate-and-enlightening-view-into-microsoft-expression-web-3-20100323/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>MIX10 Session and Supporting Documents</title>
		<link>http://www.designisphilosophy.com/wordpress-as-cms/mix10-session-supporting-documents-20100314/</link>
		<comments>http://www.designisphilosophy.com/wordpress-as-cms/mix10-session-supporting-documents-20100314/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 05:50:06 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[Speaking Engagements]]></category>
		<category><![CDATA[WordPress as CMS]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=675</guid>
		<description><![CDATA[Above is my MIX10 session A Case Study: Rapid WordPress Design and Prototyping with Expression Web 3 in its entirety in Silverlight video format. It can be blown up to full screen and I highly recommend it as there are code examples. In the session I referenced a bunch of different technologies and applications I [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/tutorials/code-snippets-from-my-wordcamp-presentation-20090124/' rel='bookmark' title='Permanent Link: Code snippets from my WordCamp presentation'>Code snippets from my WordCamp presentation</a></li>
<li><a href='http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials-20090821/' rel='bookmark' title='Permanent Link: BCIT Class Materials'>BCIT Class Materials</a></li>
<li><a href='http://www.designisphilosophy.com/events/the-unholy-quatern-at-web-not-war-2010-in-montreal-20100527/' rel='bookmark' title='Permanent Link: The Unholy Quatern at Web Not War 2010 in Montreal'>The Unholy Quatern at Web Not War 2010 in Montreal</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="516" height="290"><param name="source" value="http://live.visitmix.com/ClientBin/players/VideoPlayer2009_03_27.xap" /><param name="initParams" value="m=http://ecn.channel9.msdn.com/o9/mix/10/wmv/CL56.wmv,autostart=false,autohide=true,showembed=true, thumbnail=http://live.visitmix.com/Skins/MIX10/Styles/images/DefaultPlayerBackground.png, postid=0" /><param name="background" value="#00FFFFFF" /><a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><br />
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/><br />
</a><br />
</object><br />
<br />
<a href="http://www.designisphilosophy.com/wp-content/uploads/2010/03/mortenMix.jpg"><img class="size-full wp-image-676 alignright" title="mortenMix" src="http://www.designisphilosophy.com/wp-content/uploads/2010/03/mortenMix.jpg" alt="" width="250" height="282" /></a></p>
<p>Above is my MIX10 session <a href="http://live.visitmix.com/MIX10/Sessions/CL56">A  Case Study: Rapid WordPress Design and Prototyping with Expression  Web 3</a> in its entirety in Silverlight video format. It can be blown up to full screen and I highly recommend it as there are code examples. </p>
<p>In the session I referenced a bunch of different technologies and applications I use on a day-to-day basis. For those in attendance and those watching on the web here is the exhaustive list of links and tools for you to play around with. I will post a link to the video version of my session when it becomes available approximately 24 hours after the session itself.</p>
<h3>The Unholy Quatern</h3>
<p>The Unholy Quatern consists of 4 basic elements;</p>
<ol>
<li><a title="Download WordPress" href="http://www.wordpress.org" target="_blank">WordPress</a></li>
<li><a title="Download Microsoft Expression Web 3" href="http://expression.microsoft.com" target="_blank">Microsoft Expression Web 3</a></li>
<li><a title="Download the Microsoft Web Platform Installer" href="http://www.microsoft.com/web/Downloads/platform.aspx" target="_blank">Microsoft Web Platform Installer</a></li>
<li><a title="Microsoft Live Mesh" href="http://www.mesh.com" target="_blank">Live Mesh</a></li>
</ol>
<p>If you are only installing WordPress on your local computer there is no need to get WordPress from the original source &#8211; the Web Platform Installer will handle the installation for you. The same applies if you are using a different CMS under the WPI.</p>
<p>NOTE: If you are working in Windows 7 it will be necessary to run Expression Web 3 as Administrator if you want to set up the WPI version of WordPress as a site. Otherwise Expression Web 3 will not have permission to write to the folder and you&#8217;ll be banging your head against a wall for hours trying to figure out why it&#8217;s not working.</p>
<h3>WordPress Code Snippets for Expression Web</h3>
<p>I have created a downloadable version of the WordPress code snippets used in the session. They are availalbe &#8211; and frequently updated &#8211; at the <a title="Download WordPres Code Snippets for Expression Web" href="http://gallery.expression.microsoft.com/en-us/WordPressTools" target="_blank">Expression Gallery</a>. The snippets work with any version of Expression Web and are quite literally plug-and-play. The current version of the WordPress Template Tools comes with a special snippet that lets you create new snippets. Snippets in the current version are:</p>
<ul>
<li>Custom Page Template tag</li>
<li>Custom Field tag</li>
<li>PHP parsing Custom Field</li>
<li>Conditional Custom Field</li>
<li>Image as Header</li>
<li>Get blog/site URL</li>
<li>Get current theme URL</li>
<li>Get blog/site name</li>
<li>Get blog description</li>
<li>PHP include</li>
</ul>
<p>Most of these are plug-and-play and those that are not are fairly easy to understand. They are all 100% standards-based and use current and up-to-date WordPress template tags.</p>
<p>I update the WordPress Template Tools on a random basis whenever I feel there is a new tag that will be useful for other people. If you have an idea for a template tag not currently in the list feel free to contact me with the suggestion.</p>


<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/tutorials/code-snippets-from-my-wordcamp-presentation-20090124/' rel='bookmark' title='Permanent Link: Code snippets from my WordCamp presentation'>Code snippets from my WordCamp presentation</a></li>
<li><a href='http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials-20090821/' rel='bookmark' title='Permanent Link: BCIT Class Materials'>BCIT Class Materials</a></li>
<li><a href='http://www.designisphilosophy.com/events/the-unholy-quatern-at-web-not-war-2010-in-montreal-20100527/' rel='bookmark' title='Permanent Link: The Unholy Quatern at Web Not War 2010 in Montreal'>The Unholy Quatern at Web Not War 2010 in Montreal</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress-as-cms/mix10-session-supporting-documents-20100314/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
<enclosure url="http://ecn.channel9.msdn.com/o9/mix/10/wmv-hq/CL56.wmv" length="115192365" type="video/x-ms-wmv" />
<enclosure url="http://ecn.channel9.msdn.com/o9/mix/10/wmv/CL56.wmv" length="61963903" type="video/x-ms-wmv" />
		</item>
		<item>
		<title>Design Schooled Kids &#8211; Pushing WordPress to the edge</title>
		<link>http://www.designisphilosophy.com/news/design-schooled-kids-pushing-wordpress-to-the-edge-20100120/</link>
		<comments>http://www.designisphilosophy.com/news/design-schooled-kids-pushing-wordpress-to-the-edge-20100120/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 19:18:26 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[services]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=663</guid>
		<description><![CDATA[A couple of months ago I got a tweet from Tracy Sullivan of Design Schooled Kids about creating a web site for her line of stationery for kids. It was an interesting project both because of the products themselves &#8211; stationery that teaches kids to read and write &#8211; and because it posed some unique [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/wordpress/cool-author-box-free-wordpress-plugin-20100514/' rel='bookmark' title='Permanent Link: Cool Author Box: Free WordPress Plugin'>Cool Author Box: Free WordPress Plugin</a></li>
<li><a href='http://www.designisphilosophy.com/news/pinkandyellow-com-resurfaces-with-a-new-design-20100408/' rel='bookmark' title='Permanent Link: PinkAndYellow.com resurfaces with a new design'>PinkAndYellow.com resurfaces with a new design</a></li>
<li><a href='http://www.designisphilosophy.com/news/frugalbits-com-wordpress-as-a-magazine-cms-20100405/' rel='bookmark' title='Permanent Link: Frugalbits.com &#8211; WordPress as a Magazine CMS'>Frugalbits.com &#8211; WordPress as a Magazine CMS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/01/dsk1.jpg"><img class="aligncenter size-full wp-image-665" title="dsk1" src="http://www.designisphilosophy.com/wp-content/uploads/2010/01/dsk1.jpg" alt="dsk1" width="506" height="317" /></a>A couple of months ago I got a tweet from Tracy Sullivan of <a title="Visit Design Schooled Kids" href="http://www.designschooledkids.com" target="_blank">Design Schooled Kids</a> about creating a web site for her line of stationery for kids. It was an interesting project both because of the products themselves &#8211; stationery that teaches kids to read and write &#8211; and because it posed some unique challenges where design and development was concerned.</p>
<p>Well, actually the design portion was already handled by Tracy herself. The challenge in that regard lay in taking Tracy&#8217;s clean and exact designs and making them appear on the web as they did on paper. As for development the main challenge was that although this was to be an online store she wanted it to look nothing like an online store.  So basically the project consisted of taking a new site concept from a paper mock-up to a fully working website. Exactly the kind of stuff I like to do.</p>
<h3>Taking WordPress right to the edge</h3>
<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/01/dsk3.jpg"><img class="alignright size-medium wp-image-667" title="dsk3" src="http://www.designisphilosophy.com/wp-content/uploads/2010/01/dsk3-300x271.jpg" alt="dsk3" width="230" height="207" /></a>The result of a lot of hard work is a website that in my view takes WordPress right to the edge of what it is capable of. Every element of the site is custom built from my basic WaveFront theme to create a look, feel and operation that in no way resembles or even hints at WordPress or a regular e-commerce CMS. That said there is no real reason why any site, WordPress blog or otherwise, should look a certain way. A CMS is after all just a HTML generator that spits out whatever you want it to, and once you have the HTML you can use CSS to display it any way you want. The true challenge here was centered around getting the e-commerce portion to look, work and feel less like a boxed e-commerce solution and more like something classy and custom even though it was built on top of the <a title="Instinct's WP eCommerce plugin" href="http://www.instinct.co.nz/e-commerce/" target="_blank">WP eCommerce</a> plugin. So while on the back end this is a fairly standard WordPress installation with pages, a blog (upcoming) and an e-commerce component, on the outside it looks like a custom site with all the bells and whistles built from scratch. Which is exactly what both Tracy and I wanted.</p>
<h3>Ultra-clean designs pose unique challenges</h3>
<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/01/dsk2.jpg"><img class="size-medium wp-image-666 alignright" title="dsk2" src="http://www.designisphilosophy.com/wp-content/uploads/2010/01/dsk2-297x300.jpg" alt="dsk2" width="230" height="232" /></a>Tracy is a designer of my heart: Obsessively detailed and extremely picky. (To be honest I don&#8217;t think you can call yourself a designer if you don&#8217;t fall into these categories, but that&#8217;s just me.) Her designs looked easy enough, but the true challenge lay in matching her static pages created in InDesign to live dynamic pages on the web. With such a rigid frame to work inside all the regular cross-browser problems like padding- and margin widths, positioning, font sizes etc that we normally choose to ignore or just tweak till they fit within acceptible buffer zones were all of a sudden make-it-or-break-it points that had to be done exactly right. The most notable example was that when each page loaded, whatever page content was in the &#8220;content&#8221; section of the layout had to line up perfectly with the topmost menu item. Sure, that&#8217;s easy enough if all the content is the same, but in this case we were working with four fundamentally different types of pages: Plain text pages for general info (home, about etc), dynamic index pages for each product line consisting of a header image plus a series of thumbnails for each product, single product pages with a larger image off the top with product stats and purchase buttons on the right and info underneath and finally shopping cart pages.</p>
<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/01/dsk4.jpg"><img class="size-medium wp-image-668 alignleft" title="dsk4" src="http://www.designisphilosophy.com/wp-content/uploads/2010/01/dsk4-300x231.jpg" alt="dsk4" width="230" height="177" /></a>This meant the site demanded entirely separate style codes for the different elements depending on the type of page (or more specifically page <em>template</em>) was being displayed. And all these styles had to be flexible enough to be applied to the same item in different ways depending on the current template. Normally this would be easy enough to solve by using custom page templates, but in this case we were using the WP eCommerce plugin which generated all the product indexes, single product pages and shopping carts. As a result I had to dissect the eCommerce plugin pretty much line by line to find where all these elements were generated and how to go about repositioning them. What I found was a plugin that although it looks amazing on the outside was actually quite messy behind the curtain. I won&#8217;t write any further on this topic here &#8211; suffice it to say if you want WP eCommerce to do something that&#8217;s not just basic implementation you better prepare yourself for hours of decrypting bizarre code layouts and counter intuitive solutions. More on that in a different post.</p>
<p>In the end I created multiple theme files for the theme itself as well as the <a title="Instinct's WP eCommerce plugin" href="http://www.instinct.co.nz/e-commerce/" target="_blank">WP eCommerce</a> plugin that allowed for micromanaged control of all the different pages. Not an easy task, but more than doable given enough time and some good background music.</p>
<p>Overall I&#8217;d say DesignSchooledKids.com has been my most challenging project to date, not because of the design or development elements of the baisc site but because the <a title="Instinct's WP eCommerce plugin" href="http://www.instinct.co.nz/e-commerce/" target="_blank">WP eCommerce</a> plugin falls short in way too many places. In the end I made it all work the way it should but that was only because I spent an enormous ammount of time fixing or all together rewriting the code in the plugin so it would behave properly. It&#8217;s a bit of a disappointment really but now that I know how all the pieces fit together I should be able to reproduce it in the future.</p>
<p>Visit <a title="Visit Design Schooled Kids" href="http://www.designschooledkids.com/" target="_blank">Design Schooled Kids</a> and check out both what WordPress can do and what Tracy has to offer.</p>


<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/wordpress/cool-author-box-free-wordpress-plugin-20100514/' rel='bookmark' title='Permanent Link: Cool Author Box: Free WordPress Plugin'>Cool Author Box: Free WordPress Plugin</a></li>
<li><a href='http://www.designisphilosophy.com/news/pinkandyellow-com-resurfaces-with-a-new-design-20100408/' rel='bookmark' title='Permanent Link: PinkAndYellow.com resurfaces with a new design'>PinkAndYellow.com resurfaces with a new design</a></li>
<li><a href='http://www.designisphilosophy.com/news/frugalbits-com-wordpress-as-a-magazine-cms-20100405/' rel='bookmark' title='Permanent Link: Frugalbits.com &#8211; WordPress as a Magazine CMS'>Frugalbits.com &#8211; WordPress as a Magazine CMS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/news/design-schooled-kids-pushing-wordpress-to-the-edge-20100120/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>BCIT Class Materials</title>
		<link>http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials-20090821/</link>
		<comments>http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials-20090821/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 16:00:43 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[WordPress as CMS]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=573</guid>
		<description><![CDATA[I&#8217;m teaching two classes on WordPress at BCIT Friday August 21st. Below are the key code snippets along with a zipped archive of the famous Twitter box featured on this blog and in Computer Arts Magazine. Replace the default heading with a clickable image &#60;h1 id=&#34;blog-title&#34;&#62; &#60;a href=&#34;&#60;?php echo get_bloginfo('url') ?&#62;/&#34; title=&#34;&#60;?php get_bloginfo&#40;'name'&#41; ?&#62;&#34; rel=&#34;home&#34;&#62; [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks-20100812/' rel='bookmark' title='Permanent Link: Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks'>Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m teaching two classes on WordPress at BCIT Friday August 21st. Below are the key code snippets along with a zipped archive of the famous Twitter box featured on this blog and in Computer Arts Magazine.</p>
<h3>Replace the default heading with a clickable image</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;blog-title&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo get_bloginfo('url') ?&gt;</span></span>/&quot; title=&quot;<span style="color: #009900;">&lt;?php get_bloginfo<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'name'</span><span style="color: #66cc66;">&#41;</span> ?&gt;</span>&quot; rel=&quot;home&quot;&gt;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Alternate image text&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo get_bloginfo('template_url') ?&gt;</span></span>/imageFolder/imageFile.type&quot; /&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span></pre></div></div>

<h3>The get_bloginfo(); template function</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php</span>
<span style="color: #009900;"> echo get_bloginfo<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'$show'</span><span style="color: #66cc66;">&#41;</span></span>
<span style="color: #009900;">?&gt;</span></pre></div></div>

<p>Where $show can be name, description, url, template_url etc. Full explanation in the <a href="http://codex.wordpress.org/Function_Reference/get_bloginfo">WordPress Codex</a>.</p>
<h3>Custom Page Template</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php</span>
<span style="color: #009900;"><span style="color: #66cc66;">/</span>*</span>
<span style="color: #009900;">Template <span style="color: #000066;">Name</span>: Whatever</span>
<span style="color: #009900;">*<span style="color: #66cc66;">/</span></span>
<span style="color: #009900;">?&gt;</span></pre></div></div>

<h3>Standard PHP Include</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php include <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'fileName.php'</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span></pre></div></div>

<h3>Insert Custom Field in Template</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php echo get_post_meta<span style="color: #66cc66;">&#40;</span>$post-&gt;</span>ID, '$key', true); ?&gt;</pre></div></div>

<h3>Conditional Custom Field</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php  </span>
<span style="color: #009900;">	if<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>get_post_meta<span style="color: #66cc66;">&#40;</span>$post-&gt;</span>ID, 'divName', true))) { ?&gt;
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;divName&quot;</span>&gt;</span>
			<span style="color: #009900;">&lt;?php echo get_post_meta<span style="color: #66cc66;">&#40;</span>$post-&gt;</span>ID, 'divName', true); ?&gt;		
		<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
	<span style="color: #009900;">&lt;?php <span style="color: #66cc66;">&#125;</span> </span>
<span style="color: #009900;">?&gt;</span></pre></div></div>

<h3>The Twitter Box</h3>
<p><a href='http://www.designisphilosophy.com/wp-content/uploads/2009/08/twitterbox.zip'>Click here</a> to download a zipped archive of the Twitter box. Remember to change the username inside twitter.php, otherwise you&#8217;ll get my tweets on your site!</p>


<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks-20100812/' rel='bookmark' title='Permanent Link: Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks'>Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials-20090821/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation</title>
		<link>http://www.designisphilosophy.com/video-tutorials/using-wordpress-in-alternate-configurations-my-wordcamp-whistler-09-presentation-20090203/</link>
		<comments>http://www.designisphilosophy.com/video-tutorials/using-wordpress-in-alternate-configurations-my-wordcamp-whistler-09-presentation-20090203/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 15:30:48 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[expression]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[template_tags]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordcamp]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=354</guid>
		<description><![CDATA[Finally, after a full week of catching up, here is the video tutorial version of my presentation at WordCamp Whistler 09 for those who were there and those who couldn&#8217;t come. The video is also available on WordPress.tv if you&#8217;d rather watch it there. I recorded the video over the weekend and it contains the [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/tutorials/code-snippets-from-my-wordcamp-presentation-20090124/' rel='bookmark' title='Permanent Link: Code snippets from my WordCamp presentation'>Code snippets from my WordCamp presentation</a></li>
<li><a href='http://www.designisphilosophy.com/events/speaking-about-wordpress-as-cms-at-wordcamp-whistler-what-do-you-want-me-to-cover-20090112/' rel='bookmark' title='Permanent Link: Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?'>Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?</a></li>
<li><a href='http://www.designisphilosophy.com/news/wordcamp-whistler-wordpress-as-cms-20081219/' rel='bookmark' title='Permanent Link: WordCamp Whistler Pitch: Moving Beyond the Blog &#8211; Building Web Sites with WordPress as the CMS'>WordCamp Whistler Pitch: Moving Beyond the Blog &#8211; Building Web Sites with WordPress as the CMS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><object width="516" height="392" data="http://vimeo.com/moogaloop.swf?clip_id=3061704&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=3061704&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /></object><br />
Finally, after a full week of catching up, here is the video tutorial version of my presentation at WordCamp Whistler 09 for those who were there and those who couldn&#8217;t come. The video is also available on <a title="Watch the video at WordPress.tv" href="http://wordpress.tv/2009/02/04/wordcamp-whislter-2009-using-wordpress-in-alternate-configurations/" target="_blank">WordPress.tv</a> if you&#8217;d rather watch it there. I recorded the video over the weekend and it contains the entire presentation including all my fancy slides as well as the code examples and demos. The only thing you won&#8217;t see is me waving my hands around and messing up the code like I did at the actual event ;o)</p>
<h3>Code Snippets</h3>
<p>The last half of the presentation centers around creating Custom Page Templates and Custom Fields for layout purposes. To help you along in your own WordPress site development, here are those code snippets ready to be cut and pasted into your templates:</p>
<h4>Custom Page Templates in 5 lines of code</h4>
<p>This block of code is inserted at the very top of the Custom Page Template file.  To get started, simply open the page.php file, save it under a different name, paste these 5 lines of code at the top of the document, save and upload to your server. To activate the new Custom Page Template just select it from the Template menu under Attributes in the Page Editor within WordPress.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php <span style="color: #66cc66;">/</span>*</span>
<span style="color: #009900;">Template <span style="color: #000066;">Name</span>: Whatever </span>
<span style="color: #009900;">*<span style="color: #66cc66;">/</span> ?&gt;</span></pre></div></div>

<h4>Custom Fields in one line of code</h4>
<p>This code can be used in any template file including but not limited to page.php, any Custom Page Templates, index.php, archives.php, single.php etc etc. The code returns a string of text that matches the text inserted in the custom field. Remember to replace $key with the actual name of the custom field. <a title="Custom Fields in the WordPress Codex" href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">You can read more about Custom Fields and how to use them in the WordPress Codex</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"> <span style="color: #009900;">&lt;?php echo get_post_meta<span style="color: #66cc66;">&#40;</span>$post-&gt;</span>ID, '$key', true); ?&gt;</pre></div></div>

<h4>Custom Field that parses PHP code</h4>
<p>This code is used to parse (interpret) PHP code inserted into custom fields. It is a bit wonky &#8211; for instance it terminates any other custom field code placed directly after it in a page &#8211; so use it with caution. Otherwise it works exactly as the code above.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php $boxContent <span style="color: #66cc66;">=</span> get_post_meta<span style="color: #66cc66;">&#40;</span>$post-&gt;</span>ID, 'centerBox', true); ?&gt; 
<span style="color: #009900;">&lt;?php eval<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'?'</span>.<span style="color: #ff0000;">'&gt;</span></span>'.$boxContent); ?&gt;</pre></div></div>

<h3>Applications Used in the Presentation</h3>
<p>After the presentation several people came up to me and asked what applications I used, so here is a short list:</p>
<h4>BitNami WordPress Stack</h4>
<p>The demo site I used in the presentation was actually installed and running locally within Windows 7. To achieve this I used an ingenious application named <a title="Download the BitNami WordPress Stack" href="http://bitnami.org/stack/wordpress" target="_blank">BitNami WordPress Stack</a>. Once installed this application will run a fully functional version of WordPress with database entry, plug-ins, custom themes and everything else you want to throw at it right inside Windows (XP, Vista and Windows 7 supported) so you don&#8217;t have to keep uploading your files to a server or hassle through complicated XAMP installs to play around with WordPress while offline. You can even install several different WordPress and other open source CMS stacks on your computer simultaneously to further increase your productivity. I have no idea exactly how it works but BitNami works incredibly well. Just remember to set the IP address to &#8220;localhost&#8221; when you install it.<br />
You can download the BitNami WordPress Stack here. For Mac users there is a similar application called <a title="MAMP" href="http://www.mamp.info/en/index.php" target="_blank">MAMP</a> but I know nothing about it.</p>
<h4>Web Developer Add-On for FireFox</h4>
<p>FireFox is my absolute favourite browser and I use it for browsing as well as in the design process. One of the main advantages of FireFox is the myriad of add-ons you can install that make web site development a lot easier. The one I use the most is the <a title="Download the Web Developer add-on for FireFox" href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Web Developer Add-On</a>. This small application within an application lets you see and mess with CSS, turn styles and JavaScript on and off and do tons of other stuff that makes it easier to dissect and troubleshoot buggy web pages. Combine it with the <a title="Download the HTML Validator add-on for FireFox" href="https://addons.mozilla.org/en-US/firefox/addon/249" target="_blank">HTML Validator add-on</a> and you have a true powerhouse in a small browser window.</p>
<h4>Microsoft Expression Web 2</h4>
<p>My web development platform of choice is Microsoft Expression Web 2. This new offering from Microsoft is what enables me to build custom WordPress themes and web sites like <a title="Hire Anny Chih for the Best Job in the World" href="http://www.annychih.com" target="_blank">AnnyChih.com</a> from scratch in less than 24 hours. There are many great things you can talk about with Expression Web 2 but for WordPress theme development the two main features is full PHP support, unrivaled CSS integration and Standards Based CSS generation right out of the box. If you want to know more about Expression Web 2 or want to learn how to use it you can read more on this blog or pick up a copy of my book <a title="Teach Yourself Microsoft Expression Web" href="http://tinyurl.com/styexpressionweb2" target="_blank">Sams Teach Yourself Microsoft Expression Web 2 in 24 Hours</a>. It&#8217;s a good read, I promise.</p>


<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/tutorials/code-snippets-from-my-wordcamp-presentation-20090124/' rel='bookmark' title='Permanent Link: Code snippets from my WordCamp presentation'>Code snippets from my WordCamp presentation</a></li>
<li><a href='http://www.designisphilosophy.com/events/speaking-about-wordpress-as-cms-at-wordcamp-whistler-what-do-you-want-me-to-cover-20090112/' rel='bookmark' title='Permanent Link: Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?'>Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?</a></li>
<li><a href='http://www.designisphilosophy.com/news/wordcamp-whistler-wordpress-as-cms-20081219/' rel='bookmark' title='Permanent Link: WordCamp Whistler Pitch: Moving Beyond the Blog &#8211; Building Web Sites with WordPress as the CMS'>WordCamp Whistler Pitch: Moving Beyond the Blog &#8211; Building Web Sites with WordPress as the CMS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/video-tutorials/using-wordpress-in-alternate-configurations-my-wordcamp-whistler-09-presentation-20090203/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>New WordPress-based Site: AnnyChih.com</title>
		<link>http://www.designisphilosophy.com/wordpress/new-wordpress-based-site-annychihcom-20090130/</link>
		<comments>http://www.designisphilosophy.com/wordpress/new-wordpress-based-site-annychihcom-20090130/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 07:27:43 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=334</guid>
		<description><![CDATA[Two weekends ago my sister-in-law Anny Chih asked for some help sprucing up her WordPress blog. She wanted to apply for The Best Job in the World &#8211; the Tourism Queensland online video contest where you post a 1 minute video application to become the island caretaker of the beautiful Hamilton Island in Australia &#8211; [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/microsoft-expression-web/new-wordpress-based-site-the-readers-companion-20081002/' rel='bookmark' title='Permanent Link: New WordPress based site: The Reader&#8217;s Companion'>New WordPress based site: The Reader&#8217;s Companion</a></li>
<li><a href='http://www.designisphilosophy.com/video-tutorials/using-wordpress-in-alternate-configurations-my-wordcamp-whistler-09-presentation-20090203/' rel='bookmark' title='Permanent Link: Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation'>Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation</a></li>
<li><a href='http://www.designisphilosophy.com/events/speaking-about-wordpress-as-cms-at-wordcamp-whistler-what-do-you-want-me-to-cover-20090112/' rel='bookmark' title='Permanent Link: Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?'>Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.annychih.com"><img class="aligncenter size-full wp-image-335" title="AnnyChih.com" src="http://www.designisphilosophy.com/wp-content/uploads/2009/01/annychih.jpg" alt="AnnyChih.com" width="506" height="417" /></a>Two weekends ago my sister-in-law <a title="Anny Chih for the best job in the world" href="http://www.annychih.com" target="_blank">Anny Chih</a> asked for some help sprucing up her WordPress blog. She wanted to apply for<a title="Anny Chih's application for the Best Job in the World" href="http://bit.ly/anny" target="_blank"> The Best Job in the World</a> &#8211; the <a title="The Best Job in the World" href="http://islandreefjob.com" target="_blank">Tourism Queensland online video contest</a> where you post a 1 minute video application to become the island caretaker of the beautiful Hamilton Island in Australia &#8211; and use the blog to showcase her talents and provide information about both herself and the islands.</p>
<p>Her blog was running the default theme but she wanted something that reflected the contest and also her own sunny disposition. She sketched up a rough draft in PhotoShop and let me get to work on it. I set aside one day to finish the entire redesign (totally crazy) and here is the result.</p>
<h3>WordPress as CMS</h3>
<p>Off the top you&#8217;ll notice I switched the front page to a static one to showcase the video and some info about the contest and Anny herself. The blog portion of the site has been moved to the back end and is accessible from the main menu and also from the Recent Posts box on the bottom right hand side.</p>
<h3>Custom Field Boxes</h3>
<p><img class="aligncenter size-full wp-image-336" title="Custom Fields" src="http://www.designisphilosophy.com/wp-content/uploads/2009/01/customfields.jpg" alt="Custom Fields" width="506" height="139" />At the bottom of the front page there are three boxes containing from left to right info on the contest, Anny&#8217;s 4 most recent tweets and the titles of the 5 most recent posts. The three fields are populated using custom fields from within the WordPress admin area so that they can easily be changed later. In the case of the Twitter box it is populated using the technique outlined in my <a title="How to create a twitter box in your sidebar" href="http://www.designisphilosophy.com/css/create-a-twitter-box-in-your-sidebar-20081106/" target="_blank">Create a Twitter Box in Your Sidebar tutorial</a>.</p>
<p>I used this site as an example during <a title="WordCamp Whistler" href="http://wordcampwhistler.com" target="_blank">WordCamp Whislter</a> last weekend to demonstrate how you can <a title="Using custom fields in WordPress to create advanced layouts" href="http://www.designisphilosophy.com/tutorials/using-conditional-custom-fields-for-advanced-layouts-20081219/" target="_blank">use custom fields for advanced layouts</a>. The entire talk with code examples will be posted over the weekend.</p>
<h3>Subtle Graphic Effects</h3>
<p>I usually spend a lot of time making sure the sites I design have compelling and interesting graphics. In the case of Design is Philosophy I took the principle to the extreme but on AnnyChih.com I focused more on subtlety. For example, the background graphic with the bubbles is separated from the header image so that if you change the size of the browser window you&#8217;ll see the two images moving independently of each other. It&#8217;s a very subtle effect but it means that even people using smaller screens see the circle graphic Anny came up with.</p>
<p>Within the pages and posts I&#8217;ve also added graphic elements like the glowing underlines using CSS. It&#8217;s a simple trick that makes the content look more refined than simple solid lines.</p>
<h3>Threaded Comments</h3>
<p><img class="alignleft size-full wp-image-337" title="Threaded comments" src="http://www.designisphilosophy.com/wp-content/uploads/2009/01/threadedcomments.jpg" alt="Threaded comments" width="211" height="137" /><br />
One of the major upgrades in WordPress 2.7 was the inclusion of threaded comments. By activating and styling this fucntionality the visitors to the site now have the ability to carry on conversations without being confused by the comment order. Again it&#8217;s a subtle effect that greatly enhances the experience for the visitor.</p>


<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/microsoft-expression-web/new-wordpress-based-site-the-readers-companion-20081002/' rel='bookmark' title='Permanent Link: New WordPress based site: The Reader&#8217;s Companion'>New WordPress based site: The Reader&#8217;s Companion</a></li>
<li><a href='http://www.designisphilosophy.com/video-tutorials/using-wordpress-in-alternate-configurations-my-wordcamp-whistler-09-presentation-20090203/' rel='bookmark' title='Permanent Link: Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation'>Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation</a></li>
<li><a href='http://www.designisphilosophy.com/events/speaking-about-wordpress-as-cms-at-wordcamp-whistler-what-do-you-want-me-to-cover-20090112/' rel='bookmark' title='Permanent Link: Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?'>Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress/new-wordpress-based-site-annychihcom-20090130/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Code snippets from my WordCamp presentation</title>
		<link>http://www.designisphilosophy.com/tutorials/code-snippets-from-my-wordcamp-presentation-20090124/</link>
		<comments>http://www.designisphilosophy.com/tutorials/code-snippets-from-my-wordcamp-presentation-20090124/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 17:56:24 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[custom page templates]]></category>
		<category><![CDATA[whistler]]></category>
		<category><![CDATA[wordcamp]]></category>
		<category><![CDATA[wordcamp whistler]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=332</guid>
		<description><![CDATA[Here are some code snippets from my WordCamp Whistler presentation. This article will be expanded in the coming week but in the meantime here they are for anyone wanting to play around with them: Custom Page Templates in 5 lines of code &#60;?php /* Template Name: Whatever */ ?&#62; Custom Fields in one line of [...]


Related posts:<ol><li><a href='http://www.designisphilosophy.com/video-tutorials/using-wordpress-in-alternate-configurations-my-wordcamp-whistler-09-presentation-20090203/' rel='bookmark' title='Permanent Link: Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation'>Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation</a></li>
<li><a href='http://www.designisphilosophy.com/events/speaking-about-wordpress-as-cms-at-wordcamp-whistler-what-do-you-want-me-to-cover-20090112/' rel='bookmark' title='Permanent Link: Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?'>Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?</a></li>
<li><a href='http://www.designisphilosophy.com/news/wordcamp-whistler-wordpress-as-cms-20081219/' rel='bookmark' title='Permanent Link: WordCamp Whistler Pitch: Moving Beyond the Blog &#8211; Building Web Sites with WordPress as the CMS'>WordCamp Whistler Pitch: Moving Beyond the Blog &#8211; Building Web Sites with WordPress as the CMS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here are some code snippets from my WordCamp Whistler presentation. This article will be expanded in the coming week but in the meantime here they are for anyone wanting to play around with them:</p>
<h3>Custom Page Templates in 5 lines of code</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php</span>
<span style="color: #009900;"><span style="color: #66cc66;">/</span>*</span>
<span style="color: #009900;">Template <span style="color: #000066;">Name</span>: Whatever</span>
<span style="color: #009900;">*<span style="color: #66cc66;">/</span></span>
<span style="color: #009900;">?&gt;</span></pre></div></div>

<h3>Custom Fields in one line of code</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php echo get_post_meta<span style="color: #66cc66;">&#40;</span>$post-&gt;</span>ID, '$key', true); ?&gt;</pre></div></div>

<h3>Custom Field that parses PHP code</h3>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php $boxContent <span style="color: #66cc66;">=</span> get_post_meta<span style="color: #66cc66;">&#40;</span>$post-&gt;</span>ID, 'centerBox', true); ?&gt;
<span style="color: #009900;">&lt;?php eval<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'?'</span>.<span style="color: #ff0000;">'&gt;</span></span>'.$boxContent); ?&gt;</pre></div></div>



<p>Related posts:<ol><li><a href='http://www.designisphilosophy.com/video-tutorials/using-wordpress-in-alternate-configurations-my-wordcamp-whistler-09-presentation-20090203/' rel='bookmark' title='Permanent Link: Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation'>Using WordPress in Alternate Configurations &#8211; My WordCamp Whistler 09 Presentation</a></li>
<li><a href='http://www.designisphilosophy.com/events/speaking-about-wordpress-as-cms-at-wordcamp-whistler-what-do-you-want-me-to-cover-20090112/' rel='bookmark' title='Permanent Link: Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?'>Speaking about WordPress as CMS at WordCamp Whistler &#8211; What do you want me to cover?</a></li>
<li><a href='http://www.designisphilosophy.com/news/wordcamp-whistler-wordpress-as-cms-20081219/' rel='bookmark' title='Permanent Link: WordCamp Whistler Pitch: Moving Beyond the Blog &#8211; Building Web Sites with WordPress as the CMS'>WordCamp Whistler Pitch: Moving Beyond the Blog &#8211; Building Web Sites with WordPress as the CMS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/tutorials/code-snippets-from-my-wordcamp-presentation-20090124/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
