<?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 &#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>WordPress, Expression Web, CSS, other stuff</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:10:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.designisphilosophy.com/?pushpress=hub'/>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Custom Post Types &#8211; Vancouver WordPress Meetup Slides</title>
		<link>http://www.designisphilosophy.com/wordpress-as-cms/custom-post-types-vancouver-wordpress-meetup-slides/</link>
		<comments>http://www.designisphilosophy.com/wordpress-as-cms/custom-post-types-vancouver-wordpress-meetup-slides/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 08:08:47 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[Speaking Engagements]]></category>
		<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[slides]]></category>
		<category><![CDATA[talk]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=1426</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div style="width:550px" id="__ss_7474387"><object id="__sse7474387" width="550" height="450"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=wpmeetupcustomposttypes-110401024153-phpapp01&#038;stripped_title=wp-meetup-custom-post-types&#038;userName=mor10" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse7474387" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=wpmeetupcustomposttypes-110401024153-phpapp01&#038;stripped_title=wp-meetup-custom-post-types&#038;userName=mor10" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="550" height="450"></embed></object></div>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/wordpress-as-cms/custom-post-types-vancouver-wordpress-meetup-slides/' addthis:title='Custom Post Types &#8211; Vancouver WordPress Meetup Slides' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress-as-cms/custom-post-types-vancouver-wordpress-meetup-slides/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Everybody Dance &#8211; From static to dynamic with WordPress</title>
		<link>http://www.designisphilosophy.com/wordpress-as-cms/everybody-dance-from-static-to-dynamic-with-wordpress/</link>
		<comments>http://www.designisphilosophy.com/wordpress-as-cms/everybody-dance-from-static-to-dynamic-with-wordpress/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 01:30:09 +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=969</guid>
		<description><![CDATA[This summer Vancouver Ballroom Dance Coach Elaine Carson of Everybody Dance approached us asking for help with her website. She got a site build several years ago that at the time was top-of-the-line, but in the past few years she &#8230; <a href="http://www.designisphilosophy.com/wordpress-as-cms/everybody-dance-from-static-to-dynamic-with-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/11/everybodydanceNEW.jpg"><img class="aligncenter size-medium wp-image-972" title="Everybody Dance - the new site" src="http://www.designisphilosophy.com/wp-content/uploads/2010/11/everybodydanceNEW-506x511.jpg" alt="Everybody Dance - the new site" width="506" height="511" /></a>This summer <a title="Vancouver Ballroom Dance school Everybody Dance with Dance Coach Elaine Carson" href="http://www.everybodydance.ca" target="_blank">Vancouver Ballroom Dance Coach Elaine Carson of Everybody Dance</a> approached us asking for help with her website. She got a site build several years ago that at the time was top-of-the-line, but in the past few years she saw a dramatic decrease in the number of visits to the site and the number of new dancers coming through her doors after finding her online.</p>
<p><a href="http://www.designisphilosophy.com/wp-content/uploads/2010/11/everybodydanceOLD.jpg"><img class="alignright size-medium wp-image-973" title="The old Everybody Dance site" src="http://www.designisphilosophy.com/wp-content/uploads/2010/11/everybodydanceOLD-506x417.jpg" alt="The old Everybody Dance site" width="176" height="145" /></a>A quick look at the site and the code behind it painted an all too familiar picture that I keep seeing again and again: The site was build using tables (correct some time ago, absolutely wrong today) and was static in every sense of the word. As a result the Google rankings were stagnant, the site was hard to index and even harder to find and it was pretty much impossible to update without a lot of workarounds and fixes. I say this is an all too familiar sight because more and more clients come to us at <a title="Vancouver Web Design, online marketing and social media marketing with Pink &amp; Yellow Media" href="http://www.pinkandyellow.com" target="_blank">Pink &amp; Yellow Media</a> with sites of just this type: Built with old software to old standards and often in a way that makes them almost impossible to update and manage. The bad news is these kinds of sites are pretty much writeoffs today and can actually be detremental to the success of a business, both online and in real life. The good news is you can always get a new dynamic site built and reinvigorate your online presence in the process. Which is exactly what we did with <a title="Vancouver Ballroom Dance school Everybody Dance with Dance Coach Elaine Carson" href="http://www.everybodydance.ca/" target="_blank">EverybodyDance.ca</a>.</p>
<p>There were three major components to this project: First we needed to update the site to a modern look and make it dynamic so that Elaine and her staff could go in and change the content when they needed to. Secondly the site needed a dynamic calendar so current and prospective students could see what classes were available and when. Finally we needed to up the profile of the site through quality content, optimized code and good old fashioned marketing.</p>
<p>As with most of our small to medium scale projects we used WordPress as the base for this one. That way we could develop a sturdy theme with valid code and provide a platform from which Elaine and her staff could easily add, change and manage their own content. As a bonus WordPress has excellent search engine optimization built in, and with the addition of the All In One SEO Tag plugin this optimization reaches whole new levels. For the design we chose to go with the general red theme of the old site but brought it up to modern standards with a grey gradient wash in the back, more whitespace and a livelier look. The site also features a number of different page layouts depending on what type of content is displayed.</p>
<p>In addition to the site itself our new marketing manager Anny also developed a business and marketing platform for Elaine. Doing an analysis of current customer numbers, income and expenses Anny analyzed the growth potential of the business as a whole and made a whole range of recommendations to help boost student numbers and revenue. As part of this plan was a tiered Google AdWords and Facebook Ads strategy that will be implemented and monitored over the next year. This strategy aims to boost the rankings and visits to the site and is designed to help Vancouverites looking for a good dance school find Elaine and <a title="Vancouver Ballroom Dance school Everybody Dance with Dance Coach Elaine Carson" href="http://www.everybodydance.ca/" target="_blank">Everybody Dance</a>. In a market with hundreds of options that&#8217;s not an easy task but with the new site and the new marketing strategy Elaine is guaranteed to see more eager dancers enter her school in the coming year.</p>
<p>And just for full disclosure: The reason I can say Elaine is a great dance instructor is because Angela and I have been going to her for 3 years and in that time we&#8217;ve gone from people who had no idea how to dance to someone who is at Silver 2 level in 12 different dances.</p>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/wordpress-as-cms/everybody-dance-from-static-to-dynamic-with-wordpress/' addthis:title='Everybody Dance &#8211; From static to dynamic with WordPress' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress-as-cms/everybody-dance-from-static-to-dynamic-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>What would you want in the perfect WordPress photo theme?</title>
		<link>http://www.designisphilosophy.com/wordpress-as-cms/what-would-you-want-in-the-perfect-wordpress-photo-theme/</link>
		<comments>http://www.designisphilosophy.com/wordpress-as-cms/what-would-you-want-in-the-perfect-wordpress-photo-theme/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 23:23:58 +0000</pubDate>
		<dc:creator>Morten Rand-Hendriksen</dc:creator>
				<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.designisphilosophy.com/?p=894</guid>
		<description><![CDATA[After having finished a myriad of enormously time consuming projects I have decided I need to do something just for fun. So I&#8217;m going to build an advanced (and free) WordPress theme for photographers. I&#8217;ve noticed over the last couple &#8230; <a href="http://www.designisphilosophy.com/wordpress-as-cms/what-would-you-want-in-the-perfect-wordpress-photo-theme/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After having finished a myriad of enormously time consuming projects I have decided I need to do something just for fun. So I&#8217;m going to build an advanced (and free) WordPress theme for photographers. I&#8217;ve noticed over the last couple of years that photographers really love WordPress but that the themes out there, great as they are, are quite inflexible and uniform. As a result a lot of photographers go out and buy a premium theme customized for photographers and advertised as being the greatest thing since the SLR only to realize they are just clunky and inflexible WordPress themes built on top of other clunky and inflexible free themes. So, because I have a lot of photographer friends and because I like building WordPress themes I&#8217;m going to build a rock solid WordPress theme specifically for photographers that has tons of customizability and functionality built in.</p>
<h3>Have your say: What would the ideal WordPress theme for photographers look like?</h3>
<p>I&#8217;m a photographer myself, but since I don&#8217;t actually sell my photography services I have chosen not to have a dedicated site for it. Therefore I am not the ideal person to make a list of what the perfect or ideal WordPress photo theme should do in terms of functionality, customizability and integration. So instead of making a list myself only to realize I left out all the important stuff I&#8217;m asking you point blank what you want.</p>
<p>Go to the comments below and give me your dreams, desires and crazy ideas for what a photography WordPress theme should and could do and I&#8217;ll bundle it all up and see if I can incorporate all of, or as much as possible of it into the new theme. Think of it as a collaborative effort: You provide the ideas, I make them into reality!</p>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/wordpress-as-cms/what-would-you-want-in-the-perfect-wordpress-photo-theme/' addthis:title='What would you want in the perfect WordPress photo theme?' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress-as-cms/what-would-you-want-in-the-perfect-wordpress-photo-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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/</link>
		<comments>http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks/#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]]></category>
		<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[WordPress Themes]]></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 &#8230; <a href="http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks/' addthis:title='Vancouver WordPress Meetup Talk: Simple Yet Powerful WordPress Hacks' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/events/vancouver-wordpress-meetup-talk-simple-yet-powerful-wordpress-hacks/feed/</wfw:commentRss>
		<slash:comments>1</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/</link>
		<comments>http://www.designisphilosophy.com/wordpress-as-cms/bellevuegallery-ca-a-wordpress-site-showcasing-fine-art/#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 &#8230; <a href="http://www.designisphilosophy.com/wordpress-as-cms/bellevuegallery-ca-a-wordpress-site-showcasing-fine-art/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/wordpress-as-cms/bellevuegallery-ca-a-wordpress-site-showcasing-fine-art/' addthis:title='BellevueGallery.ca &#8211; A WordPress Site Showcasing Fine Art' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress-as-cms/bellevuegallery-ca-a-wordpress-site-showcasing-fine-art/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/</link>
		<comments>http://www.designisphilosophy.com/news/frugalbits-com-wordpress-as-a-magazine-cms/#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 &#8230; <a href="http://www.designisphilosophy.com/news/frugalbits-com-wordpress-as-a-magazine-cms/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/news/frugalbits-com-wordpress-as-a-magazine-cms/' addthis:title='Frugalbits.com &#8211; WordPress as a Magazine CMS' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/news/frugalbits-com-wordpress-as-a-magazine-cms/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/</link>
		<comments>http://www.designisphilosophy.com/microsoft-expression-web/webcast-an-intimate-and-enlightening-view-into-microsoft-expression-web-3/#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 &#8230; <a href="http://www.designisphilosophy.com/microsoft-expression-web/webcast-an-intimate-and-enlightening-view-into-microsoft-expression-web-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/microsoft-expression-web/webcast-an-intimate-and-enlightening-view-into-microsoft-expression-web-3/' addthis:title='Webcast: An Intimate and Enlightening View into Microsoft Expression Web 3' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/microsoft-expression-web/webcast-an-intimate-and-enlightening-view-into-microsoft-expression-web-3/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>MIX10 Session and Supporting Documents</title>
		<link>http://www.designisphilosophy.com/wordpress-as-cms/mix10-session-supporting-documents/</link>
		<comments>http://www.designisphilosophy.com/wordpress-as-cms/mix10-session-supporting-documents/#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 &#8230; <a href="http://www.designisphilosophy.com/wordpress-as-cms/mix10-session-supporting-documents/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/wordpress-as-cms/mix10-session-supporting-documents/' addthis:title='MIX10 Session and Supporting Documents' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress-as-cms/mix10-session-supporting-documents/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/</link>
		<comments>http://www.designisphilosophy.com/news/design-schooled-kids-pushing-wordpress-to-the-edge/#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[services]]></category>
		<category><![CDATA[WordPress as CMS]]></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; &#8230; <a href="http://www.designisphilosophy.com/news/design-schooled-kids-pushing-wordpress-to-the-edge/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/news/design-schooled-kids-pushing-wordpress-to-the-edge/' addthis:title='Design Schooled Kids &#8211; Pushing WordPress to the edge' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/news/design-schooled-kids-pushing-wordpress-to-the-edge/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/</link>
		<comments>http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials/#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 &#8230; <a href="http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>
<div class="addthis_toolbox addthis_default_style" addthis:url='http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials/' addthis:title='BCIT Class Materials' ><a class="addthis_button_facebook like"></a><a class="addthis_button_twitter"></a><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.designisphilosophy.com/wordpress-as-cms/bcit-class-materials/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

