<?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>Matthew Simo &#187; wordpress</title>
	<atom:link href="http://matt-simo.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://matt-simo.com</link>
	<description>Front-End Designer/Developer</description>
	<lastBuildDate>Mon, 01 Feb 2010 21:51:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>html5 Comments in WordPress &#8211; quickfix</title>
		<link>http://matt-simo.com/html5-comments-quickfix/</link>
		<comments>http://matt-simo.com/html5-comments-quickfix/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 21:16:29 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[nathan stains]]></category>
		<category><![CDATA[starkers-html]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://matt-simo.com/?p=326</guid>
		<description><![CDATA[Introduction I&#8217;m not even going to acknowledge my terrible blogging habits ( or in reality, lack thereof ) and get to a little something something that will hopefully be of some use to someone. With html5 making a lot of &#8230; <a href="http://matt-simo.com/html5-comments-quickfix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h5>Introduction</h5>
<p>I&#8217;m not even going to acknowledge my terrible blogging habits ( or in reality, lack thereof ) and get to a little something something that will hopefully be of some use to someone.</p>
<p>With html5 making a lot of noise and gaining steam ( <a href="http://mashable.com/2010/01/26/google-voice-web-app/">Google Voice</a> &#038; <a href="http://www.youtube.com/html5">Youtube</a> as examples ), it&#8217;s only a matter of time.</p>
<p>On January 25th, 2010, a nice chap by the name of <a href="http://nathanstaines.com/">Nathan Staines</a> released his html5 version of <a href="http://elliotjaystocks.com/">Elliot Jay Stocks</a>&#8216; <a href="http://elliotjaystocks.com/starkers/">Starkers</a> theme.</p>
<p>As I&#8217;m still in the process of learning the nuances of html5 I decided to use Starkers html5 as a learning ground. Being a <a href="http://twitter.com/matthewsimo">typical twitter user</a> I <a href="http://twitter.com/matthewsimo/status/8417509972">let the world know what I was up to</a>. Nathan fairly quickly <a href="http://twitter.com/nathanstaines/status/8424452760">responded</a>, asking my thoughts and recommendations on any adjustments, I <a href="http://twitter.com/matthewsimo/status/8429465764">replied</a> in kind. </p>
<p>I sat down to see if I could tackle it, I&#8217;ve always been a bit wary of messing with the comments code for wordpress seeing as recursive code can get complicated if you don&#8217;t know exactly what is going on. I thought it was an excellent opportunity to learn and I came up with a (mostly) strait forward quick fix for now. I still want to go back and rewrite the wp_list_comments(); function but that will have to wait as I have other priorities.</p>
<h5>My quick fix:</h5>
<h6>In the comments.php template file find this bit of code: </h6>
<pre><code>&lt;?php wp_list_comments(...); ?&gt; </code></pre>
<p>We&#8217;ll be using this instead:</p>
<pre><code>&lt;?php wp_list_comments('style=div&amp;callback=html5_comment&amp;end-callback=html5_closecomment'); ?&gt;
'</code></pre>
<h6>In your theme&#8217;s functions.php file we&#8217;ll be adding the following code:</h6>
<pre><code>// Changes the trailing &lt;/li&gt; into a trailing &lt;/article&gt;
function html5_closecomment() {?&gt;
	&lt;/article&gt;
&lt;?php
	}

// This is the new comment markup - edit as you feel necessary
function html5_comment($comment, $args, $depth) {
   $GLOBALS['comment'] = $comment; ?&gt;

	&lt;article id="comment-&lt;?php comment_ID() ?&gt;" &lt;?php comment_class(); ?&gt;&gt;
		&lt;header class="comment-author vcard"&gt;
			&lt;?php echo get_avatar($comment,$size='48',$default='&lt;path_to_url&gt;' ); ?&gt;

			&lt;?php printf(__('&lt;cite class="fn"&gt;%s&lt;/cite&gt; <span class="says">says:</span>'), get_comment_author_link()) ?&gt;

			&lt;p&gt;&lt;time pubdate&gt;<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?&gt;"&gt;&lt;?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?&gt;</a>&lt;?php edit_comment_link(__('(Edit)'),'  ','') ?&gt;&lt;/time&gt;&lt;/p&gt;

			&lt;p&gt;&lt;?php echo $args ['style']; ?&gt;&lt;/p&gt;

		&lt;/header&gt;
		&lt;?php if ($comment-&gt;comment_approved == '0') : ?&gt;
			&lt;p&gt;<em>&lt;?php _e('Your comment is awaiting moderation.') ?&gt;</em>&lt;/p&gt;
		&lt;?php endif; ?&gt;

		&lt;?php comment_text() ?&gt;

		&lt;footer class="reply"&gt;&lt;?php comment_reply_link(array_merge( $args, array('depth' =&gt; $depth, 'max_depth' =&gt; $args['max_depth']))) ?&gt;&lt;/footer&gt;

&lt;?php
	}</code></pre>
<p>This will force your comments to display like the following:</p>
<pre><code>
&lt;article&gt;
<!-- comment stuff -->
    &lt;article&gt; <!-- depth-2 -->
    <!--  comment stuff -->
    &lt;/article&gt;
&lt;/article&gt;
...
...</code></pre>
<h5>A couple of notes</h5>
<p>Usually, theme&#8217;s wrap the <code>wp_list_comments();</code> call in an ordered list, this isn&#8217;t necessary for our super awesome html5 anymore since articles can (and I guess <a href="http://dev.w3.org/html5/spec/Overview.html#the-article-element">should</a>) be nested. Personally I wrapped it in a div with &#8220;the_comments&#8221; as a class ( For styling purposes mainly. ).</p>
<p>These are the only changes I made to the <a href="http://drp.ly/j57c">starkers html5</a>, take a look for yourself. </p>
<p>Feel free to use, modify and share as you like. Try to give references where they are due though, that&#8217;s all I ask. </p>
<p>Once I rewrite the function for wp_list_comments to handle &#8216;style=article&#8217; I&#8217;ll let you all know.</p>
<h5>More on html5</h5>
<p><a href="http://dev.w3.org/html5/spec/Overview.html">W3C html5 spec overview</a></p>
<p><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/">WhatWG.org html5 Working Draft</a></p>
<p><a href="http://html5doctor.com/">html5Doctor</a></p>
<p><a href="http://html5gallery.com/">html5 Gallery</a></p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/html5-comments-quickfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WCDFW09 W4H1: Mark Taylor</title>
		<link>http://matt-simo.com/w4h1-mark-taylor/</link>
		<comments>http://matt-simo.com/w4h1-mark-taylor/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 22:28:53 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[wcdfw09]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[DFWWP]]></category>
		<category><![CDATA[Mark Taylor]]></category>
		<category><![CDATA[TAYLORMARK]]></category>
		<category><![CDATA[W4H1]]></category>

		<guid isPermaLink="false">http://matt-simo.com/?p=285</guid>
		<description><![CDATA[This next guy has a great wordpress story and I hope the everyone gets a hold of him to hear it strait from him. I had the opportunity and I&#8217;m glad I took it. Who: Meet Mark Taylor. What: Mark &#8230; <a href="http://matt-simo.com/w4h1-mark-taylor/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This next guy has a great wordpress story and I hope the everyone gets a hold of him to hear it strait from him. I had the opportunity and I&#8217;m glad I took it.</p>
<p><a href="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-cc03d8e6-1102-492f-b7cc-4686b349177f.jpeg"><img src="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-cc03d8e6-1102-492f-b7cc-4686b349177f.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
<p><strong>Who:</strong> Meet Mark Taylor.<br />
<strong>What:</strong> Mark is the owner of TAYLORMARK, a Digital Life Service. They offer services in recover, support, banking and consulting. What are they using WP for? It runs their <a href="http://www.taylormark.com">website</a>!<br />
<strong>When:</strong> Mark got into wordpress THIS MONTH! Can you believe that?! And his company was a WCDFW09 sponsor too, that is some quick work and adoption!<br />
<strong>Where:</strong> Mark is from the big D.<br />
<strong>How:</strong> He is using WP so he doesn&#8217;t have to rely on a coder/designer to make small changes, updates and modifications. &#8220;It just allows our business to be nimble. I get to prototype the site will satisfaction then publish it.&#8221;</p>
<p>Be sure and follow her on <a href="http://twitter.com/marktayl0r">Twitter</a> or check out his <a href="http://www.taylormark.com/">website</a>. You can also follow his company on twitter at: <a href="http://twitter.com/taylormark">http://twitter.com/taylormark</a>.</p>
<p>The wordpress community in Dallas is still around, even if Wordcamp is over. If you&#8217;d like to introduce yourself and get to know some of us, <a href="http://matt-simo.com/contact/">let me know</a> or <a href="http://twitter.com/M_A_Simo">@ me</a>. I&#8217;d love to give you a quick interview and help introduce you! </p>
<p>Be sure and check out the DFW wordpress <a href="http://www.meetup.com/dfwwordpress/">meet up group</a>. We meet once a month and it is always a great time. If you are on twitter, we use the hashtag #dfwwp so you can follow the conversations there too.</p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/w4h1-mark-taylor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WCDFW09 Mid-day recap</title>
		<link>http://matt-simo.com/wcdfw09-mid-day-recap/</link>
		<comments>http://matt-simo.com/wcdfw09-mid-day-recap/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 21:12:22 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[wcdfw09]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://matt-simo.com/?p=261</guid>
		<description><![CDATA[So far, I&#8217;m having a great time. I had no idea what to expect as this is my first Wordcamp experience. Even though some of the content is sometimes not extremely useful for me, I&#8217;m really enjoying the atmosphere and &#8230; <a href="http://matt-simo.com/wcdfw09-mid-day-recap/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So far, I&#8217;m having a great time. I had no idea what to expect as this is my first Wordcamp experience. Even though some of the content is sometimes not extremely useful for me, I&#8217;m really enjoying the atmosphere and energy. I&#8217;ve fallen behind on covering the actual speakers and the points they are making. I&#8217;m not too worried about it though, as they are recording it all and will be posting it.</p>
<p>I&#8217;ll be honest, I just had the idea to cover this event last night and I really had no idea how much effort it would take. It just seemed like a good idea at the time. I wanted to cover DFW Wordcamp 2009 from two perspectives, from what the speakers were talking about and who was in the audience hearing it.</p>
<p>I wanted to cover the attendees by a simple interview. I ask them the 4 w&#8217;s and 1 h (Who, What, When, Where, &#038; How) and introducing them to the DFW WP community, that is it. Pretty simple huh?</p>
<p> You can follow along in the series <a href="http://matt-simo.com/tag/w4h1/">here</a> or request to be an interviewee on my <a href="http://twitter.com/M_A_Simo">twitter</a> or simply leave a comment here.</p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/wcdfw09-mid-day-recap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WCDFW09 W4H1: Josiah Platt</title>
		<link>http://matt-simo.com/w4h1-josiah-platt/</link>
		<comments>http://matt-simo.com/w4h1-josiah-platt/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 20:46:38 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[wcdfw09]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[W4H1]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://matt-simo.com/?p=254</guid>
		<description><![CDATA[Here is the third installment of W4H1.. I had the pleasure of meeting Josiah Platt at the 2009 DFW Wordcamp. Seems like a really cool guy. Who: Meet Josiah. What: Josiah is a front-end designer &#038; developer. He is also &#8230; <a href="http://matt-simo.com/w4h1-josiah-platt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is the third installment of W4H1..</p>
<p>I had the pleasure of meeting Josiah Platt at the 2009 DFW Wordcamp. Seems like a really cool guy.</p>
<p><a href="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-b597fcd6-d324-4940-ac27-2837201e4057.jpeg"><img src="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-b597fcd6-d324-4940-ac27-2837201e4057.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
<p><strong>Who:</strong> Meet Josiah.<br />
<strong>What:</strong> Josiah is a front-end designer &#038; developer. He is also the Director of Web Techonologies at <a href="http://www.project7.com/">Project 7</a> and also the co-founder of <a href="http://magnt.com/">Magnt</a>. Currently he uses WordPress to run his personal blog and uses it for the majority of his clients.<br />
<strong>When:</strong> Josiah got into wordpress way back when it was first kicked off and has been hooked ever since. He has experimented and used other CMS solutions but he still swears by wordpress.<br />
<strong>Where:</strong> Josiah is from Dallas, Texas.<br />
<strong>How:</strong> Josiah is using wordpress in a multitude of ways, but to sum up how excited he was when describing it to me: &#8220;WordPress is the easiest, most usable, accessible solution.&#8221;  </p>
<p>For more info on Josiah, check him out at his <a href="http://josiahplatt.com/">blog</a> and follow him on <a href="http://twitter.com/josiahplatt">twitter</a>.</p>
<p>Be sure to check out his projects <a href="http://magnt.com/">Magnt</a> and <a href="http://www.project7.com/">Project 7</a>.</p>
<p>If you are a member of the #WCDFW09 WordPress community then let me know on <a href="http://twitter.com/m_a_simo">twitter</a> and I can get your W4H1 too! </p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/w4h1-josiah-platt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cali Lewis: Building a Vibrant Community</title>
		<link>http://matt-simo.com/cali-lewis-wcdfw09/</link>
		<comments>http://matt-simo.com/cali-lewis-wcdfw09/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 15:50:32 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[wcdfw09]]></category>
		<category><![CDATA[Cali Lewis]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://matt-simo.com/?p=223</guid>
		<description><![CDATA[Great info from someone that has been apart of a team that built a vibrant community. 7 rules for building a vibrant community strait from the horse&#8217;s mouth. I&#8217;m barely scraping the surface here, but here are the highlights. Point &#8230; <a href="http://matt-simo.com/cali-lewis-wcdfw09/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Great info from someone that has been apart of a team that built a vibrant community. 7 rules for building a vibrant community strait from the horse&#8217;s mouth. I&#8217;m barely scraping the surface here, but here are the highlights.</p>
<p><a href="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-eabd17ce-4ee7-4ed9-82be-0ffc805d61cf.jpeg"><img src="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-eabd17ce-4ee7-4ed9-82be-0ffc805d61cf.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
<p>Point 1: Core Branding Value<br />
- &#8220;Know your brand, know your audience.&#8221;</p>
<p>Point 2: Start Compelling Conversations</p>
<p>Point 3: Be an Asset: Add Value!</p>
<p>Point 4: Make friends, not fans.<br />
- &#8220;Listen to your community, but don&#8217;t be changed by your community.&#8221;</p>
<p>Point 5: Show Appreciation.<br />
- &#8220;Show appreciation, hit the reply button. Do it.&#8221;</p>
<p>Point 6: Take Breaks!<br />
- &#8220;Give your audience a chance to miss you.&#8221;</p>
<p>Point 7: Always be Upgrading!<br />
- &#8220;Kubrick is ok! Start, then upgrade.&#8221;</p>
<p>For more on Cali, visit her <a href="http://calilewis.me/">blog</a> or at <a href="http://www.geekbrief.tv/">geekbrief.tv</a></p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/cali-lewis-wcdfw09/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tony Cecala: Turbocharge Your Career with WordPress</title>
		<link>http://matt-simo.com/tony-cecala-wcdfw09/</link>
		<comments>http://matt-simo.com/tony-cecala-wcdfw09/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 15:33:39 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[wcdfw09]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://matt-simo.com/?p=218</guid>
		<description><![CDATA[Some highlights from Tony C&#8217;s talk. The wordpress advantage. Stable. Mature. Good-Looking. Open. Extensible. Own your own data. Dominate the search engines. Easily Manage Multimedia. Easily Manage External Data. To see the full slideshow, Tony C has kindly added it &#8230; <a href="http://matt-simo.com/tony-cecala-wcdfw09/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some highlights from Tony C&#8217;s talk.</p>
<p><a href="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-00adddcd-4969-40a8-987b-7504b99a939d.jpeg"><img src="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-00adddcd-4969-40a8-987b-7504b99a939d.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
<p>The wordpress advantage.</p>
<p>Stable.<br />
Mature.<br />
Good-Looking.<br />
Open.<br />
Extensible.<br />
Own your own data.<br />
Dominate the search engines.<br />
Easily Manage Multimedia.<br />
Easily Manage External Data.</p>
<p>To see the <a href="http://www.slideshare.net/networker/turbocharge-your-career-with-wordpress">full slideshow</a>, Tony C has kindly added it to Slideshare.net already. </p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/tony-cecala-wcdfw09/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WCDFW09 Introductions</title>
		<link>http://matt-simo.com/wcdfw09-introductions/</link>
		<comments>http://matt-simo.com/wcdfw09-introductions/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 15:07:58 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[wcdfw09]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://matt-simo.com/wcdfw09-introductions/</guid>
		<description><![CDATA[John P kicking off the weekend&#8230; And Tony C taking the stage. They have a RSS that is pulling in the hash tag: wcdfw09 from twitter and flickr so check that out for more coverage. Twitter wcdf09 flickr wcdfw09]]></description>
			<content:encoded><![CDATA[<p>John P kicking off the weekend&#8230;</p>
<p>And Tony C taking the stage.</p>
<p>They have a RSS that is pulling in the hash tag: wcdfw09 from twitter and flickr so check that out for more coverage.</p>
<p><a href="http://twitter.com/#search?q=wcdfw09">Twitter wcdf09</a></p>
<p><a href="http://www.flickr.com/photos/tags/wcdfw09/">flickr wcdfw09</a></p>
<p><a href="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-e1b6ef90-079c-4bef-a5eb-84ad808a0810.jpeg"><img src="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-e1b6ef90-079c-4bef-a5eb-84ad808a0810.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
<p><a href="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-68fc8416-e89d-40d0-b73c-868fd25cf4cb.jpeg"><img src="http://matt-simo.com/wp-content/uploads/2009/06/p-1600-1200-68fc8416-e89d-40d0-b73c-868fd25cf4cb.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/wcdfw09-introductions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordcamp Dallas/Ft. Worth 2009</title>
		<link>http://matt-simo.com/wordcamp-dfw-2009/</link>
		<comments>http://matt-simo.com/wordcamp-dfw-2009/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 12:21:05 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[wcdfw09]]></category>
		<category><![CDATA[wordcamp]]></category>

		<guid isPermaLink="false">http://matt-simo.com/?p=206</guid>
		<description><![CDATA[I&#8217;m super excited to have a spot to this years sold out wordcamp dfw . I&#8217;m going to try and post some cool things I come across as it happens. Yay iPhone + WP app&#8230; I&#8217;ve never been to wordcamp &#8230; <a href="http://matt-simo.com/wordcamp-dfw-2009/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m super excited to have a spot to this years sold out <a href="http://dallas.wordcamp.org">wordcamp dfw</a> . I&#8217;m going to try and post some cool things I come across as it happens. Yay iPhone + WP app&#8230;</p>
<p>I&#8217;ve never been to wordcamp so I have no idea what to expect at all.</p>
<p>I&#8217;ve never done mobile coverage of an event before either, so I have no idea what to expect there either.</p>
<p>Should be an interesting weekend, come say hi, I&#8217;d love to meet you if you are here. You can find me on Twitter <a href="http://twitter.com/m_a_simo">@m_a_simo</a> too.</p>
<p>Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/wordcamp-dfw-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Query Post by a Variable?</title>
		<link>http://matt-simo.com/query-post-by-a-variable/</link>
		<comments>http://matt-simo.com/query-post-by-a-variable/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 17:59:07 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Site Development]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://matt-simo.com/?p=202</guid>
		<description><![CDATA[Howdy, I hope someone will see this and possibly know a solution to what I&#8217;m trying to do&#8230; So, I&#8217;m trying to pull a custom field and setting the result as $sortingTag I&#8217;m then trying to query_posts looking in a &#8230; <a href="http://matt-simo.com/query-post-by-a-variable/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Howdy, I hope someone will see this and possibly know a solution to what I&#8217;m trying to do&#8230;</p>
<p>So, I&#8217;m trying to pull a custom field and setting the result as $sortingTag I&#8217;m then trying to query_posts looking in a particular category and by a certain tag.</p>
<p>Here is the code I&#8217;m using:</p>
<pre>
<code>&lt;?php if ( (is_page('web')) or (is_page('print')) or (is_page('identity')) ) {

$sortingTag = get_post_meta($post-&gt;ID, 'sorting-tag', true);		

query_posts(array(
	'cat'=&gt;17,
	'showposts'=&gt;15,
	'tag'=&gt;"$sortingTag",
));
?&gt;</code>
</pre>
<p>Here is how I&#8217;m trying to implement it:</p>
<p>I&#8217;ve set up child pages &#8216;web&#8217;, &#8216;identity&#8217;, &#038; &#8216;print&#8217; under the parent &#8216;Portfolio&#8217;. On each page I&#8217;ve set a custom field with the key &#8216;sorting-tag&#8217; with it&#8217;s respective page name (i.e. web for web).</p>
<p>And I&#8217;m using posts to hold my portfolio pieces, depending on the project each could have one or more of the tags &#8216;web&#8217;, &#8216;identity&#8217;, or &#8216;print&#8217; (spelled the same, with same case). </p>
<p>Now my problem, I figure I&#8217;d be able to pass the custom field and search by that value for the post tags. But it isn&#8217;t populating the loop at all, I do get a populated loop when I change &#8216;tag&#8217; to &#8216;tag_slug&#8217; but it still isn&#8217;t changing the query results, it is as if they are still unfiltered..</p>
<p>Anyone have any help or run into this before? I&#8217;d love to sort this out&#8230; lol sort. Get it?!? Haha, sorry, couldn&#8217;t help myself&#8230; </p>
<p>But seriously, little help&#8230; and if you could pass this on to your wordpress guru&#8217;s that&#8217;d be sweet too.</p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/query-post-by-a-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Field Template Plugin: Very Handy!</title>
		<link>http://matt-simo.com/cft-plugin-very-handy/</link>
		<comments>http://matt-simo.com/cft-plugin-very-handy/#comments</comments>
		<pubDate>Sun, 31 May 2009 06:37:21 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[CFT]]></category>
		<category><![CDATA[custom field template]]></category>
		<category><![CDATA[DFWWP]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://matt-simo.com/?p=130</guid>
		<description><![CDATA[Ok, I know that I said I wouldn&#8217;t really be posting so that I wouldn&#8217;t get distracted and so I could focus on my portfolio theme development. But, this is just too cool! I was at the DFW WordPress May &#8230; <a href="http://matt-simo.com/cft-plugin-very-handy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, I know that I said I wouldn&#8217;t really be posting so that I wouldn&#8217;t get distracted and so I could focus on my portfolio theme development. But, this is just too cool!</p>
<p>I was at the DFW WordPress May Meetup earlier today (at BJ&#8217;s) and met some really smart people that know a whole heck of a lot more than I do (and are much further along <em>&#8220;the road&#8221;</em> than I am). </p>
<p>One guy in particular, <a href="http://amesburyweb.com">Randy Hoyt</a>, was a great resource for what I&#8217;m attempting to do with wordpress. After talking with him for about 5 minutes, we got on the subject of Custom Field&#8217;s and he said <a href="http://wordpress.org/extend/plugins/custom-field-template/">Custom Field Template</a> was a great tool that would help me achieve my goals.</p>
<p>Needless to say, I left the DFWWP Meetup pretty pumped to get back to my computer to start playing around with all the ideas of what I could do bouncing around in my head! </p>
<p>After I got the CFT plugin installed I decided to take it for a test drive so to speak. (*As I&#8217;m new to a lot of this, the nomenclature I use may be off a little, as I continue I hope I do a good enough job describing the process I followed. Also, if there is a better/more effective/efficient process than what I&#8217;ve followed, please, enlighten me!) </p>
<p>I made a custom field template that I titled <em>&#8220;Portfolio&#8221;</em> with the plans of handling all of the &#8216;extra&#8217; data associated with a portfolio piece (i.e. Client Name, Client Quote, Portfolio Image, Skills used, etc&#8230;)</p>
<p>There is a <a href="http://www.gabrielserafini.com/tags/custom-field-template/">great post</a> by Gabriel Serafini (<a href="http://twitter.com/gserafini/">@gserafini</a>) in which he highlights and does pretty good walk through of setting up your own CFT template. I won&#8217;t go into it here, check out his post.</p>
<p>Here we go! I had my template all set up and rigged up some test posts to test out the functionality and work out any bugs. All of the &#8216;simple&#8217; fields worked beautifully (client_name, portfolio_image, etc&#8230;) but I had put in a custom field &#8216;skills_used&#8217; that utilized checkboxes. Since you can click on more than one box it passes an array to that custom field, which I haven&#8217;t had to deal with up to this point. I didn&#8217;t know if I could parse the array successfully and apply the html tags I wanted to it as well and place it in the wp template I needed it in.</p>
<p>I found some good posts on the net but nothing that really dealt specifically with this particular issue (granted, I&#8217;m sure it is out there, I looked for like 5 minutes max&#8230;) so I rolled up my sleeves and went to work.</p>
<p>Here is what I came up with, I&#8217;m sure it is pretty sloppy (I consider myself a php novice pretty much.) but it works like a beauty. I decided to wrap everything in an unordered list and wrap each skill used in it&#8217;s own list item.</p>
<pre>
<code>&lt;?php //get skills_used (custom field) ?&gt;
&lt;?php $skills = get_post_meta($post-&gt;ID, 'skills_used'); ?&gt;

&lt;?php if(empty($skills)) {
	//if $skills is empty DO NOTHING!!!
}
else {

	echo '&lt;ul class="skills-used"&gt;

		&lt;li class="skills-used-title"&gt;&lt;h4&gt;Skills Used:&lt;/h4&gt;&lt;/li&gt;';

	foreach ($skills as $skill) {
	    echo '&lt;li class="'."$skill".'"&gt;'."$skill&lt;/li&gt;";
	}

	echo "&lt;/ul&gt;";
}
?&gt;</code>
</pre>
<p>*this code was placed into the single template file for my portfolio category posts* (It can go in any wp template you need it to go into, sidebar.php, single.php, etc&#8230;)</p>
<p><strong>Description:</strong> I passed the custom field &#8216;skills_used&#8217; which was part for the template that I created in CFT ( Remember the checkboxes? Ya, those guys.) to a variable $skills. Then I tested this variable to see if it was empty, if it was empty I wanted it to do NOTHING, although, if it had the good stuff, I wanted it. But the question was, how to get <strong>all</strong> of it. Enter &#8220;foreach&#8221;, basically, the jist of what is happening here is that I&#8217;m splitting the array apart and labeling each part it pulls off as the variable $skill (not plural!) echo&#8217;s it after wrapping it in the li tag, then forgetting it and moving to the next one, until there is nothing left. Tack on the close ul tag and wrap up the php. </p>
<p>An astute student would notice two &#8216;$skill&#8217; varables being used each foreach. Very good padawan, I want css control over each one, so I&#8217;m listing the class of the list item as $skill. This way, if I use Photoshop CS4 for a particular project, I can place a sexy little blue square with &#8220;Ps&#8221; carved into it. </p>
<p>That, my friends, is what was <strong>so cool</strong> that it got me blogging at 1:30 am (pardon my spelling!). There is a whole lot of cool stuff you can do with custom fields and similar implementations to this, it just takes a little imagination and experimentation. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://matt-simo.com/cft-plugin-very-handy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

