<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>GabeDiaz.com - Personal portfolio and all things web related.</title>
	
	<link>http://gabediaz.com</link>
	<description>GabeDiaz.com</description>
	<lastBuildDate>Tue, 27 Oct 2009 19:07:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/GabeDiaz" type="application/rss+xml" /><feedburner:emailServiceId>GabeDiaz</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Enabling Author Pic and Bio for WordPress Single Posts</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/k_0xWBjN96g/</link>
		<comments>http://gabediaz.com/blog/enabling-author-pic-and-bio-for-wordpress-single-posts/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 18:14:27 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=574</guid>
		<description><![CDATA[The <a href="http://gabediaz.com/blog/displaying-author-pic-and-bio-in-your-wordpress-post/">Displaying Author Pic and Bio for Wordpress</a> technique made the author block appear on every single post in your WordPress install, let's take the idea one step further and enable you to choose which posts to display a author block using the WordPress Custom Fields.]]></description>
			<content:encoded><![CDATA[<p><span class="head">Background</span><br />
Previously we covered, <a href="http://gabediaz.com/blog/displaying-author-pic-and-bio-in-your-wordpress-post/" title="Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way" target="_blank">Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way</a> a technique used to add an author block to the bottom of your posts in WordPress. Originally this technique was used to add an author block to articles written by an author of a specific category. By using <a href="http://gabediaz.com/blog/custom-category-page-and-post-templates-for-wordpress/" title="Custom Category, Page and Post Templates for WordPress" target="_blank">Custom Category, Page and Post Templates for WordPress</a> I was able to create a post template for a specific category knowing that one author would be contributing to that category. This works great for custom categories with custom post templates but what if you had a WordPress install with multiple authors, some who had bio and others who did not? </p>
<p><span class="head">The Problem</span><br />
The <a href="http://gabediaz.com/blog/displaying-author-pic-and-bio-in-your-wordpress-post/" title="Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way" target="_blank">Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way</a> technique made the author block appear on every single post in your WordPress install, let&#8217;s take the idea one step further and enable you to choose which posts to display a author block using the WordPress Custom Fields.</p>
<p><span class="head">The Solution</span><br />
We will be making edits to your single.php file, please make a backup of your originally single.php file just in case something goes wrong and you need to revert.</p>
<p>We will be using the author block example from <a href="http://gabediaz.com/blog/displaying-author-pic-and-bio-in-your-wordpress-post/" title="Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way" target="_blank">Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way</a> which is:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;authbio&quot;&gt;
&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/images/<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author_firstname<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;&quot; class=&quot;alignleft&quot;/&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author_description<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;</pre></td></tr></table></div>

<p>We will also be using WordPress Custom Fields to trigger wether or not a WordPress Post will show an author block or not. For this example I added the author bio after the article, right before the share options and comments in single.php</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
   <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$authbio</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;authbio&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;authbio&quot;&gt;
&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/images/<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author_firstname<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;&quot; class=&quot;alignleft&quot;/&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author_description<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;   
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
* 
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><span class="head">What the above means:</span><br />
WordPress checks for a Custom Field Key called &#8220;authbio&#8221; to see if there is any value. If there is a value, display the authbio div which includes our author pic and a short bio. If there is no &#8220;authbio&#8221; Custom Field Key then display *. </p>
<p>Essentially you can write a post, if you wish to display the author box then add the field &#8220;authbio&#8221; and give it a value of yes if you do not wish to display any author box then don&#8217;t add any field to that post. </p>
<p>For example purposes, this post had a custom field of &#8220;authbio&#8221; with a value of yes, you can see the author bio and pic at the bottom of the post. Please take a look at every other post on this site&#8230;you <strong>will</strong> notice that after every post you will see a * as this is the <strong>only</strong> post on this site with an author box. </p>
<p><class="head">Things to remember:</span><br />
-If you are going to use this technique in your WordPress site remove the * or else you will have a * after every post with no author pic and bio, just leave it blank.<br />
-You do not need to call your Custom Field Key &#8220;authbio&#8221; you can label it anything you want, just use the same naming convention in your php in the single.php.<br />
-This posts references <a href="http://gabediaz.com/blog/displaying-author-pic-and-bio-in-your-wordpress-post/" title="Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way" target="_blank">Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way</a> several times, please read it if you have any questions about how to create an author bio and pic box. </p>
<p>Hope this helps, enjoy!</p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/k_0xWBjN96g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/blog/enabling-author-pic-and-bio-for-wordpress-single-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gabediaz.com/blog/enabling-author-pic-and-bio-for-wordpress-single-posts/</feedburner:origLink></item>
		<item>
		<title>Penthouse Super Party 2007</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/eHomoMWNLvE/</link>
		<comments>http://gabediaz.com/work/penthouse-super-party-2007/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 21:02:00 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=556</guid>
		<description><![CDATA[



Name/Status:
thepenthousesuperparty.com/Online
Archived Locally: gabediaz.com/2007

Software:
Adobe Flash, Photoshop &#38; PHP
Position:
Design &#038; Development
Description/role:
With Super Bowl XLI coming to Miami in 2007 the company wanted an online presence for their branded event. 
Technical Challenge:
A very short turn around time and 1 man team. 
]]></description>
			<content:encoded><![CDATA[<p><a href="http://gabediaz.com/wp-content/uploads/2009/06/phgoindeep01.jpg" rel="lightbox[556]"><img src="http://gabediaz.com/wp-content/uploads/2009/06/phgoindeep01_thumb.jpg" alt="" title="ThePenthouseSuperParty.com" width="400" class="aligncenter size-full wp-image-558" /></a></p>
<p><a href="http://gabediaz.com/wp-content/uploads/2009/06/phgoindeep02.jpg" rel="lightbox[556]"><img src="http://gabediaz.com/wp-content/uploads/2009/06/phgoindeep02_thumb.jpg" alt="" title="ThePenthouseSuperParty.com" width="400" class="aligncenter size-full wp-image-558" /></a></p>
<p><a href="http://gabediaz.com/wp-content/uploads/2009/06/phgoindeep03.jpg" rel="lightbox[556]"><img src="http://gabediaz.com/wp-content/uploads/2009/06/phgoindeep03_thumb.jpg" alt="" title="ThePenthouseSuperParty.com" width="400" class="aligncenter size-full wp-image-558" /></a></p>
<p><a href="http://gabediaz.com/wp-content/uploads/2009/06/phgoindeep04.jpg" rel="lightbox[556]"><img src="http://gabediaz.com/wp-content/uploads/2009/06/phgoindeep04_thumb.jpg" alt="" title="ThePenthouseSuperParty.com" width="400" class="aligncenter size-full wp-image-558" /></a></p>
<p><strong>Name/Status</strong>:<br />
<a class="footer" href="http://thepenthousesuperparty.com/2007/" target="_blank">thepenthousesuperparty.com</a>/<span class="style11 style1">Online</span><br />
Archived Locally: <a class="footer" href="http://gabediaz.com/2007/" target="_blank"><span class="style11 style1">gabediaz.com/2007</span></a></p>
<p></span><br />
<strong>Software</strong>:<br />
Adobe Flash, Photoshop &amp; PHP</p>
<p><strong>Position:</strong><br />
Design &#038; Development</p>
<p><strong>Description/role</strong>:<br />
With Super Bowl XLI coming to Miami in 2007 the company wanted an online presence for their branded event. </p>
<p><strong>Technical Challenge</strong>:<br />
A very short turn around time and 1 man team. </p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/eHomoMWNLvE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/work/penthouse-super-party-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gabediaz.com/work/penthouse-super-party-2007/</feedburner:origLink></item>
		<item>
		<title>Custom Category, Page and Post Templates for WordPress</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/gfS1kN9RN0A/</link>
		<comments>http://gabediaz.com/blog/custom-category-page-and-post-templates-for-wordpress/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 00:53:37 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=538</guid>
		<description><![CDATA[Quick overview of custom templates for WordPress Categories, Pages and Posts. You may already be familiar with Category and Page templates but custom Posts templates are just as easy. ]]></description>
			<content:encoded><![CDATA[<p>Quick overview of custom templates for WordPress Categories, Pages and Posts. You may already be familiar with Category and Page templates but custom Posts templates are just as easy. </p>
<p>DISCLAIMER: Before making any edits to original files make sure to have backups in case something goes terribly wrong&#8230;not that it should but you can never be too safe! </p>
<p><span class="head">WordPress Category Templates</span><br />
WordPress Category templates are very easy to use, view the <a href="http://codex.wordpress.org/Category_Templates" title="WordPress Codex Category Templates" target="_blank">WordPress Codex &#8211; Category Templates</a> and you will see that hierarchy for a category templates is:</p>
<ul>
<li>1. category-6.php</li>
<li>2. category.php</li>
<li>3. archive.php</li>
<li>4. index.php </li>
</ul>
<p>This basically just means that WordPress will first look for a template labeled category-6, if there is none, it will then look for category.php and so forth all the way down to index.php. </p>
<p>To create a custom category template, just copy your category.php and resave it as category+&#8221;your category ID number.&#8221; If you do not have a category.php, you can copy your archive.php or index.php but just remember that your custom template will look like the template you copied until you make your edits. So if you have a category.php, archive.php and index.php you will want to copy your category.php and work from there.</p>
<p>You can find your category ID number by logging into your WordPress backend&#8230;go to your categories section and hover over or copy any category names and you will see your category ID. Upload category-&#8221;ID#&#8221;.php to your theme directory and the specified category can now be freely styled to look differently than your other categories.</p>
<p><span class="head">WordPress Page Templates</span><br />
WordPress Page Templates may be easier than Category Templates. Wordpress looks for templates in the following order:</p>
<ul>
<li>1. The Page&#8217;s selected &#8220;Page Template&#8221;</li>
<li> 2. page.php</li>
<li>3. index.php </li>
</ul>
<p>Let&#8217;s pretend we want to create a specific template for an &#8220;About Us&#8221; page. Most themes will have a page.php so once again, you can copy your page.php and resave it, let&#8217;s call it about.php.</p>
<p>Once resaved, our page template must <strong>start</strong> with the following 5 lines of code so add the following to the very top:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: About
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>The above sets a name for your page template, so you can enter just about anything in the Template Name: &#8220;Your Choice&#8221; For the ease of consistency I would label the template name something similar to what I am saving the file, so this about.php will have a Template name of About. Now that you have your Page Template named along with some copied format from your original page.php you can edit this about.php to your hearts desire. Any edits made to about.php will only affect those pages using this template. Upload your new about.php to your theme directory and we are all set.</p>
<p>To use a Custom Page template just create or edit any page. You should see a dropdown box labeled Page Template, if all is in order you should see your template name as an option in the dropdown.</p>
<p><span class="head">WordPress Post Templates</span><br />
WordPress Post Templates are great because they allow you to make posts in different categories different from each other. </p>
<p>For example let&#8217;s say you had 2 categories named Apples and Oranges. You styled each category differently using Custom Category Templates but also wanted posts that appeared in Oranges to have a different look than posts appearing in Apples. </p>
<p>Custom Category Templates do not pass any styling to the posts within, posts take their styling from either single.php or index.php as per the <a href="http://codex.wordpress.org/Template_Hierarchy" title="WordPress Template Hierarchy" target="_blank">WordPress Template Hierarchy</a>.</p>
<p>Most themes will have a single.php, so yes once again duplicate your single.php&#8230;twice. We only need two Post Templates in this example since we want one Post Template for Oranges and just use our original Post Template for posts appearing in the Category Apples and the rest of our posts in our blog. </p>
<p>Let&#8217;s name one of our copies of single.php to singleOriginal.php, this is a direct duplicate of our original file unedited.</p>
<p>For our second copy of single.php that will be used as a Custom Post Template for the posts in Oranges, let&#8217;s save this file as singleOranges.php. This file will be the edited single.php that will have whatever custom edits you want for all Posts in the category Oranges.  Make your edits to this file and you will also need to retrieve the category ID for the category Oranges, let&#8217;s pretend it has an ID of 10.</p>
<p><span class="head">Recap</span><br />
Before we move ahead, let&#8217;s make sure we have everything in order, we should have 3 files and 1 Category ID number. </p>
<p>The 3 files consist of a singleOrignial.php which is a direct duplicate of our original single.php. We should also have a singleOranges.php which has our edits for our custom look for all posts in the category Oranges(ID #10). And finally we should still have our original single.php unedited in it&#8217;s original format. </p>
<p>Now let&#8217;s edit single.php since WordPress first goes to single.php for all Post Templates. Edit your single.php with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> in_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'10'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/singleOranges.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/singleOriginal.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>That&#8217;s it! Basically the above checks the posts to see if it&#8217;s category 10, if so use the template singleOranges.php, else use singleOriginal.php. What if you wanted a Custom Post Template for Oranges, Apples and Grapes but still wanted a single.php for everything else?</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> in_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'10'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/singleOranges.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> in_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'11'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/singleApples.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> in_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'12'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/singleGrapes.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/singleOriginal.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>A very easy way to customize posts in any category. Go ahead and get creative with customizing then come back and leave a comment to show it off, would love to see what some people do!</p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/gfS1kN9RN0A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/blog/custom-category-page-and-post-templates-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://gabediaz.com/blog/custom-category-page-and-post-templates-for-wordpress/</feedburner:origLink></item>
		<item>
		<title>I Love My iPhone Apps</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/82nBJ95lZR8/</link>
		<comments>http://gabediaz.com/blog/i-love-my-iphone-apps/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 02:10:13 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=524</guid>
		<description><![CDATA[For those new to owning a iPhone, some apps come at a cost while there are many others free to download. Here are "5 Must Have Free Apps" that I find to be great.]]></description>
			<content:encoded><![CDATA[<p>For anyone who has an iPhone you probably already know that there are plenty of iPhone apps at the <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewGenre?id=36&amp;mt=8">iTunes App Store</a>. For those new to owning a iPhone, some apps come at a cost while there are many others free to download.</p>
<p>I have close to 50 apps loaded onto my phone, but in reality there are only a handful that I use on a daily basis.</p>
<p>As the App Store is about to hit 1 billion downloads, here are &#8220;5 Must Have Free Apps&#8221; that I find to be great.</p>
<ul>
<li><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=286756410&amp;mt=8">TwitterFon</a> &#8211; Yes Twitter is just about everywhere nowadays. From P. Diddy, to your local News Channel it seems that everyone has a Twitter account. The great thing about TwitterFon is that you have a menu bar on your screen which lets you sort through your Friends, Replies, Messages, Favorites and an option to Search. View profiles, see timelines and be able to retweet makes this my go to Twitter app.</li>
<li><a title="Google" href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284815942&amp;mt=8">Google</a> &#8211; Even if you don&#8217;t have a Google Account to make use of the Gmail, Calendar, Docs etc. features, just installing this app for the the Google Search feature is worth it. If you search using the google search bar using the iPhones built in Safari browser you will see the same results as you would on your computer If you use the Google App search you will get results tailored to your location. Not to mention search by voice is pretty cool.</li>
<li><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=307906541&amp;mt=8">Fandango</a> &#8211; Need to check what&#8217;s playing at your local theatre? Pop in your Zip Code and you are all set. Never tried to buy tickets through it but it is an option if your theatre supports it.</li>
<li><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=302021371&amp;mt=8">Free Wi-Fi Locator</a> &#8211; Using your current location this little app returns the nearest locations that offer Free Wi-Fi. This is not to be confused with other apps such as WiFinder which just searches for the nearest Wi-Fi locations.</li>
<li><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284035177&amp;mt=8">Pandora</a> &#8211; Streaming music to your iPhone based on your choices. Listen to a song or two and Pandora will start to recommend music based on what you just heard. Create specific stations for different genres and enjoy free streamed music.</li>
</ul>
<p>The above are only a handful of great apps so also check out: Skype, Mint.com, Facebook, AIM, Brightkite, Urbanspoon, Yelp and iTalk, you won&#8217;t be disappointed.</p>
<p>Have an app that you love? Please leave a comment and let me know, free or paid I love downloading and testing out new apps!</p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/82nBJ95lZR8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/blog/i-love-my-iphone-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gabediaz.com/blog/i-love-my-iphone-apps/</feedburner:origLink></item>
		<item>
		<title>Embed Ads Into Your Twitter Tweets With Adjix</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/YfuMmXsNHP4/</link>
		<comments>http://gabediaz.com/blog/embed-ads-into-your-twitter-tweets-with-adjix/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 15:29:25 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=506</guid>
		<description><![CDATA[Uh oh. Those were the words that came out of my mouth this morning when I checked my email on my iPhone. For those registered to Adjix you may have received an email from the company announcing their new advertising format in which Twitter users will be able to embed an ad at the end of their Twitter Tweets.]]></description>
			<content:encoded><![CDATA[<p>Uh, oh.</p>
<p>Those were the words that came out of my mouth this morning when I checked my email on my iPhone. For those registered to <a title="Adjix" href="http://adjix.com" target="_blank">Adjix</a> you may have received an email from the company announcing their new advertising format in which Twitter users will be able to embed an ad at the end of their Twitter Tweets in order to monetize off of their number of followers.</p>
<p>Adjix&#8217;s current ad program is based on link shrinking and including a text link on the top portion of the site as long as you are logged into your account on Adjix when shortening your link.  </p>
<p>What&#8217;s actually useful about Adjix is that they offer several features such as the ability to track the number of clicks your unique shortened link receives.  Not only are stats recorded for links with ads but there is an option to shrink a link without an ad, and yes you will still be able to track clicks for that URL.</p>
<p><strong>Do people actually use the service for click tracking and not to serve ads?</strong><br />
Yes. More importantly one of the Twitter elite, <a href="http://twitter.com/guykawasaki" target="_blank" title="Guy Kawasaki">@guykawasaki</a> uses the Adjix service very frequently(to shrink and record stats) and if you visit his Twitter stream you will see that most, if not all of his links begin with <a href="http://adjix.com">http://adjix.com</a>.</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2009/03/guy-tweet.jpg" rel="lightbox[506]"><img src="http://gabediaz.com/wp-content/uploads/2009/03/guy-tweet-thumb.jpg" alt="" title="Guy Kawasaki Adjix User" width="400" class="aligncenter size-full wp-image-511" /></a></p>
<p>Adjix has a <a href="http://adjix.com/ddew" target="_blank">video demo</a> of their new feature as well as <a href="http://blog.adjix.com/2009/03/adjix2twitter-embed-ads.html" target="_blank">details</a> on their blog outlining Advertiser Info, Twitter User Info and how to install their bookmarklet in order to start embedding ads into your Tweets. </p>
<p>Luckily for me the only person I follow that uses Adjix is <a href="http://twitter.com/guykawasaki" target="_blank" title="Guy Kawasaki">@guykawasaki</a>, but the thought of monetizing on Tweets to a large list of followers may cause several to sign up and start using Adjix&#8217;s new ad embed. If so, we very well may see more Tweets as the mock put out by Adjix.</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2009/03/adjix-ad-tweet.jpg" rel="lightbox[506]"><img src="http://gabediaz.com/wp-content/uploads/2009/03/adjix-ad-tweet_thumb.jpg" alt="" title="Adjix.com Twitter Ad" width="400" height="120" class="aligncenter size-full wp-image-515" /></a></p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/YfuMmXsNHP4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/blog/embed-ads-into-your-twitter-tweets-with-adjix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://gabediaz.com/blog/embed-ads-into-your-twitter-tweets-with-adjix/</feedburner:origLink></item>
		<item>
		<title>Running PHP 5 for WordPress with 1&amp;1 Hosting</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/aJZK5ei-P_w/</link>
		<comments>http://gabediaz.com/blog/running-php-5-for-wordpress-with-11-hosting/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 22:19:33 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=470</guid>
		<description><![CDATA[Creating a MySQL Database running PHP 5 for WordPress is easy, right? Well kind of.]]></description>
			<content:encoded><![CDATA[<p>If you are on a shared hosting plan with <a href="http://www.1and1.com/?k_id=6600820" target="_blank">1&amp;1</a> it&#8217;s relatively easy to create a new MySQL Database for your WordPress installation.</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2009/02/sql-setup-01.jpg" rel="lightbox[470]"><img src="http://gabediaz.com/wp-content/uploads/2009/02/sql-setup-01-thumb.jpg" alt="" title="sql-setup-01-thumb" width="400" class="aligncenter size-full wp-image-494" /></a></p>
<p><span class="head">Creating Your New Database</span><br />
Just sign into your account and navigate to Web Space &amp; Access and then to MySQL Administration. Click on &#8220;New Database&#8221; and you will be prompted to name your new database along with the option of choosing between MySQL 4.0 and MySQL 5.0 for your new database. <a title="WordPress Requirements" href="http://wordpress.org/about/requirements/" target="_blank">WordPress Requirements</a> state that WordPress need PHP 4.3 or higher to function properly although a few plugins require that you use PHP 5 to function.  Choose PHP 5 and your database will begin setup.</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2009/02/sql-setup-02.jpg" rel="lightbox[470]"><img src="http://gabediaz.com/wp-content/uploads/2009/02/sql-setup-02-thumb.jpg" alt="" title="sql-setup-01-thumb" width="400" class="aligncenter size-full wp-image-494" /></a></p>
<p>Since we created a new database and chose the option of MySQL your database is using PHP 5 right?  Unfortunately that&#8217;s not the case.</p>
<p><span class="head">Checking Your PHP Version by Creating a phpinfo.php File</span><br />
<a href="http://www.1and1.com/?k_id=6600820" target="_blank">1&amp;1</a> will have your new database running PHP 4.4.9.  Easiest way to check what version of PHP you are running is to create a phpinfo.php file and insert the following.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">phpinfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Upload this file to your directory and open phpinfo.php in your web browser.</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2009/02/sql-setup-03.jpg" rel="lightbox[470]"><img src="http://gabediaz.com/wp-content/uploads/2009/02/sql-setup-03-thumb.jpg" alt="" title="sql-setup-01-thumb" width="400" class="aligncenter size-full wp-image-494" /></a></p>
<p>The information at the top of this window will display the version of PHP that you are running.</p>
<p><span class="head">Forcing 1&amp;1 to Use PHP 5</span><br />
It only takes 2 lines added to your .htaccess to force 1&amp;1 to use a version of PHP 5. Add the following to the first 2 lines in your .htaccess file.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">AddType x<span style="color: #339933;">-</span>mapp<span style="color: #339933;">-</span>php5 <span style="color: #339933;">.</span>php
AddHandler x<span style="color: #339933;">-</span>mapp<span style="color: #339933;">-</span>php5 <span style="color: #339933;">.</span>php</pre></div></div>

<p>Once you make the edits to your .htaccess upload it to your directory and once again open phpinfo.php in your web browser.  You should now be able to see that your database is using PHP 5</p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/aJZK5ei-P_w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/blog/running-php-5-for-wordpress-with-11-hosting/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://gabediaz.com/blog/running-php-5-for-wordpress-with-11-hosting/</feedburner:origLink></item>
		<item>
		<title>Error 500 When Updating to WordPress 2.7</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/PtaQjt3u-eg/</link>
		<comments>http://gabediaz.com/blog/error-500-when-updating-to-wordpress-27/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 02:50:24 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=463</guid>
		<description><![CDATA[I updated one installation today to WordPress 2.7 only to have my stomach hit the floor when I received an "Error 500 Internal Server Error" message once the update was complete.  ]]></description>
			<content:encoded><![CDATA[<p>I held off on updating several WordPress installs to due to the fear of a few plugins not being compatible.  I updated one installation today only to have my stomach hit the floor when I received an &#8220;Error 500 Internal Server Error&#8221; message once the update was complete.</p>
<p>Luckily the site was still functional but I could not access the admin section.  A quick search and I was able to find an article by <a title="author" href="http://www.root777.com/">Ajit Gaddam</a> surprisingly enough called <a title="Artikel-Link (Permalink)" rel="bookmark" href="http://www.root777.com/wordpress/solution-to-error-500-after-upgrading-to-wordpress-27/">Solution to Error 500 after upgrading to WordPress 2.7</a>.</p>
<p>&#8212;<br />
Ajit&#8217;s fix:</p>
<p>This seems to be a problem for WordPress blogs which are hosted by 1&amp;1<br />
The solution to the Error 500 &#8211; Internal Server error<br />
1. Create a file called “php.ini” in the /wp-admin/ directory of your blog<br />
2. In the file add the text “memory = 20MB” without the quotes</p>
<p>&#8212;</p>
<p>What is odd is that I have installed a fresh install of WordPress 2.7 on a 1&amp;1 server with no issues, but experienced this error only when upgrading to WordPress 2.7.</p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/PtaQjt3u-eg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/blog/error-500-when-updating-to-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		<feedburner:origLink>http://gabediaz.com/blog/error-500-when-updating-to-wordpress-27/</feedburner:origLink></item>
		<item>
		<title>Displaying Author Pic and Bio in Your Wordpress Post the Non-Gravatar Way</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/dDDpa_Tw39A/</link>
		<comments>http://gabediaz.com/blog/displaying-author-pic-and-bio-in-your-wordpress-post/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 22:38:42 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=413</guid>
		<description><![CDATA[A lot of sites/blogs out there have guest posts and/or multiple authors who contribute content on a regular basis, usually you can find a small bio of the article author before or after the post you are reading.]]></description>
			<content:encoded><![CDATA[<p>&#8212;</p>
<p>Also see <a href="http://gabediaz.com/blog/enabling-author-pic-and-bio-for-wordpress-single-posts/" target="_blank">Enabling Author Pic and Bio for WordPress Single Posts</a> for displaying an author bio box on a post by post basis.</p>
<p>&#8212;</p>
<p>A lot of sites/blogs out there have guest posts and/or multiple authors who contribute content on a regular basis.  Now, there is nothing new with displaying the author name of a post, that snippet of code is just</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>and will simply display the authors name.  We want to get a little more stylish and display a bio with an image, usually you can find a small bio of the article author before or after the post you are reading.  2 quick random examples can be seen below:</p>
<p>Steven Snell(<a href="http://vandelaydesign.com/blog/" target="_blank" title="Vandelay Design">Vandelay Design</a> and <a href="http://designm.ag/" target="_blank" title="DesingM.ag">DesignM.ag</a>) is a contributer to the popular site <a href="http://psdtuts.com" target="_blank" title="PSDTuts.com">PSDTuts</a>, they do an author pic/bio before the article.</p>
<p>From Steven&#8217;s <a href="http://psdtuts.com/articles/inspiration/20-photoshop-painted-inspiration-and-brush-resources/" target="_blank" title="20 Photoshop Painted Inspiration and Brush Resouces">20 Photoshop Painted Inspiration and Brush Resources</a></p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/author-psdtuts.jpg" rel="lightbox[413]"><img src="http://gabediaz.com/wp-content/uploads/2008/11/author-psdtuts-thumb.jpg" alt="Author Bio - PSDTuts" title="Author Bio - PSDTuts" width="400" height="120" class="aligncenter size-full wp-image-423" /></a></p>
<p>Adelle Charles runs <a href="http://www.fuelyourcreativity.com/" target="_blank" title="FuelYourCreativity.com">FuelYourCreativity.com</a> in which she displays an author pic/bio after the article.</p>
<p>From Adelle&#8217;s <a href="http://www.fuelyourcreativity.com/micromanaging-a-creative/" target="_blank">Micromanaging a Creative</a></p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/author-fuel.jpg" rel="lightbox[413]"><img src="http://gabediaz.com/wp-content/uploads/2008/11/author-fuel-thumb.jpg" alt="Author Bio - PSDTuts" title="Author Bio - PSDTuts" width="400" height="120" class="aligncenter size-full wp-image-423" /></a></p>
<p>Both of these examples display a little information about the author along with a link to the author&#8217;s site. Who doesn&#8217;t love some link love?! </p>
<p>Both are also are calling in the author&#8217;s <a href="http://gravatar.com/" target="_blank" title="Gravatar">Gravatar</a> (Globally Recognized Avatar) that is linked to the author&#8217;s email*.  </p>
<blockquote><p>*For those who don&#8217;t know you can import an author&#8217;s image using the gravatar code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_avatar<span style="color: #009900;">&#40;</span> get_the_author_email<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'80'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>In which the author&#8217;s email will be checked with <a href="http://gravatar.com/" target="_blank" title="Gravatar">Gravatar</a>, if the person has an account the image linked to their email will be displayed, exact same concept of pulling in avatars in the comments section of your favorite site.
</p>
</blockquote>
<p><span class="head">But what happens if the author doesn&#8217;t have a <a href="http://gravatar.com/" target="_blank" title="Gravatar">Gravatar</a> account?</span></p>
<p>Hmm&#8230;interesting.</p>
<p>Ok first thing first, make sure your author is listed as a &#8220;User&#8221; for your site. If they are not listed, create the account:</p>
<p>Go to your WordPress dashboard>>Users>>Authors>>Profile</p>
<p>Make sure the section for the Bio Info is filled out and while your at it make sure the First Name, Last Name and Nickname are filled out as well&#8230;they will come in handy later on.  </p>
<p>Now open your Single Post php file, usually single.php. This page generates the layout of your article and is the file you need to edit in order to display some author info.  For my example I added the author bio after the article, right before the share options and comments.  </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;authbio&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author_description<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;</pre></td></tr></table></div>

<p><span class="head">Yikes, ugly but it works!</span></p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/authbio-01.jpg" rel="lightbox[413]"><img src="http://gabediaz.com/wp-content/uploads/2008/11/authbio-01-thumb.jpg" alt="" title="Author Pic/Bio" width="400" height="120" class="aligncenter size-full wp-image-450" /></a></p>
<p>Let&#8217;s add some quick CSS to make it look somewhat respectable, you can always style away later!</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.authbio<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#666</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">420px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/authbio-02.jpg" rel="lightbox[413]"><img src="http://gabediaz.com/wp-content/uploads/2008/11/authbio-02-thumb.jpg" alt="" title="Author Pic/Bio" width="400" height="120" class="aligncenter size-full wp-image-450" /></a></p>
<p><span class="head">Okay, so now we are pulling in the author&#8217;s bio&#8230;what about the image?</span></p>
<p>Remember all the author fields you were suppose to fill out? First Name, Last Name, Nickname&#8230;if you didn&#8217;t do it, go do it now!</p>
<p>Let&#8217;s add these lines before your the_author_description in your single.php file.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/images/<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author_firstname<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;&quot; class=&quot;alignleft&quot;/&gt;</pre></td></tr></table></div>

<p>Your author image and bio should now look like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;authbio&quot;&gt;
&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/images/<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author_firstname<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot; alt=&quot;&quot; class=&quot;alignleft&quot;/&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author_description<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;</pre></td></tr></table></div>

<p><span class="head">What the above means:</span></p>
<p>The above img src is looking for a file in your “Your Theme Stylesheet Directory/images&#8221; folder aka www.yoursite.com/wp-content/themes/ThemeName/images/.  </p>
<p>php the_author_firstname is the first name used in the author fields under dashboard>>users>>profile </p>
<p>Please note that this is just returning what was entered into the First Name field and not the complete author name.  Finally the extension &#8220;.jpg&#8221; is appended to the name.  </p>
<p>Now you just need to upload a photo to your: www.yoursite.com/wp-content/themes/ThemeName/images/ and name the file exactly the same name you placed in the First Name Field in the author profile.  </p>
<p>Throw in a little CSS to clear up the spacing</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">img<span style="color: #6666ff;">.alignleft</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">7px</span> <span style="color: #933;">2px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>And we are looking pretty much done!</p>
<p>&#8212;</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/authbio-03.jpg" rel="lightbox[413]"><img src="http://gabediaz.com/wp-content/uploads/2008/11/authbio-03-thumb.jpg" alt="" title="Author Pic/Bio" width="400" height="120" class="aligncenter size-full wp-image-450" /></a></p>
<p>&#8212;</p>
<p><span class="head">Things to remember:</span></p>
<p>You can put links in your bio, no need to forget to link back to your site.</p>
<p>The above technique is looking for an image labeled the same as the &#8220;First Name&#8221; of the author. Also try the_author_lastname(); or the_author_nickname(); </p>
<p>The technique above will provide a static solution for an author who does not have a Gravatar account.  What is great about <a href="http://gravatar.com/" target="_blank" title="Gravatar">Gravatar</a> is that the image will follow you wherever go as it&#8217;s linked to your email address.  If you change your <a href="http://gravatar.com/" target="_blank" title="Gravatar">Gravatar</a> image I believe it will be reflected everywhere you have left a comment, written a guest post etc.  Using a <a href="http://gravatar.com/" target="_blank" title="Gravatar">Gravatar</a> helps your personal branding to be consistent throughout the web.    </p>
<p>Hope this is helpful, as I used it as a solution for an guest author who has an offline presence.  </p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/dDDpa_Tw39A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/blog/displaying-author-pic-and-bio-in-your-wordpress-post/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		<feedburner:origLink>http://gabediaz.com/blog/displaying-author-pic-and-bio-in-your-wordpress-post/</feedburner:origLink></item>
		<item>
		<title>First Impressions: Google Voice Search</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/wC6W5tDEswo/</link>
		<comments>http://gabediaz.com/blog/first-impressions-google-voice-search/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 03:43:23 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=390</guid>
		<description><![CDATA[Google Voice Search for the iPhone available via the Google Mobile App.  It works as stated, not only functional but fun as well.  ]]></description>
			<content:encoded><![CDATA[<p>Google Voice Search for the iPhone is now available via the <a href="http://www.google.com/mobile/apple/app.html" target="_blank">Google Mobile App</a>.  It works as stated, not only functional but fun as well.</p>
<p>Before using the Voice Search you will need to turn on the feature under &#8220;Settings&#8221; when you launch Google Mobile App.  Don&#8217;t forget the instructions as &#8220;Voice Search only works in English, and works best for North American English accents.&#8221;</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-01.jpg" rel="lightbox[390]"><img class="alignnone size-full wp-image-392" title="google-voice-search-01_thumb" src="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-01_thumb.jpg" alt="" width="400" height="120" /></a></p>
<p>After you turn on the settings, just put the phone to your ear and the proximity sensor in your iPhone will start the process of recording your voice with a little beep.  Speak regular into the phone and then just move the phone away from your ear.</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-02.jpg" rel="lightbox[390]"><img class="alignnone size-full wp-image-392" title="google-voice-search-01_thumb" src="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-02_thumb.jpg" alt="" width="400" height="120" /></a></p>
<p>Watch as Google does it&#8217;s magic.</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-03.jpg" rel="lightbox[390]"><img class="alignnone size-full wp-image-392" title="google-voice-search-01_thumb" src="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-03_thumb.jpg" alt="" width="400" height="120" /></a></p>
<p>And finally you are presented with your <a href="http://googlemobile.blogspot.com/2008/11/new-google-search-results-pages-for.html" target="_blank">search results which are now optimized for your iPhone</a> which are in the same fashion we are used to, just laid out more efficiently for your iPhone.</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-04.jpg" rel="lightbox[390]"><img class="alignnone size-full wp-image-392" title="google-voice-search-01_thumb" src="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-04_thumb.jpg" alt="" width="400" height="120" /></a></p>
<p>Of course Voice Search is cool in itself but when you launch the app, it will ask you if it can use your current location.  By just saying &#8220;Movie Times&#8221; in the app I was able to pull up the times for the nearest theater.</p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-05.jpg" rel="lightbox[390]"><img class="alignnone size-full wp-image-392" title="google-voice-search-01_thumb" src="http://gabediaz.com/wp-content/uploads/2008/11/google-voice-search-05_thumb.jpg" alt="" width="400" height="120" /></a></p>
<p>Sure beats opening up an app, typing in the zip code of your location and then choosing the nearest theater!  I also tested out some random searches which all returned what I was looking for.  Overall, if you have an iPhone you probably already have the previous version of the Google Mobile App installed, just update and you&#8217;ll be all set.  Else download the <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewGenre?id=36&amp;mt=8" target="_blank">Google Mobile App from the iTunes Store</a> and test away, you&#8217;ll be surprised how well it works and may definitely change the way you search on your iPhone.</p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/wC6W5tDEswo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/blog/first-impressions-google-voice-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gabediaz.com/blog/first-impressions-google-voice-search/</feedburner:origLink></item>
		<item>
		<title>My Pleasure Pet</title>
		<link>http://feedproxy.google.com/~r/GabeDiaz/~3/LCAFEqFhoM8/</link>
		<comments>http://gabediaz.com/work/my-pleasure-pet/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 00:48:53 +0000</pubDate>
		<dc:creator>gabediaz</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://gabediaz.com/?p=360</guid>
		<description><![CDATA[


Name/Status:
mypleasurepet.com/Offline
Software:
Flash, Photoshop
Position:
Flash Designer/Developer
Description/Role:
MyPleasurePet.com was an online initiative to bring to life the revamped Penthouse Magazine in a fun manner by &#8220;playing&#8221; with the current Pet of the Year, Heather Vandeven.  Developed by Sugartown Creative, MyPleasurePet.com was a sexy/naughty Subservient Chicken.
Due to the site launch building up momentum(via launch party invitations), there was the need [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/mypleasurepet-01.jpg" rel="lightbox[360]"><img src="http://gabediaz.com/wp-content/uploads/2008/11/mypleasurepet-01_thumb.jpg" alt="" title="mypleasurepet-01_thumb" width="400" class="aligncenter size-full wp-image-362" /></a></p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/mypleasurepet-02.jpg" rel="lightbox[360]"><img src="http://gabediaz.com/wp-content/uploads/2008/11/mypleasurepet-02_thumb.jpg" alt="" title="mypleasurepet-01_thumb" width="400" class="aligncenter size-full wp-image-362" /></a></p>
<p><a href="http://gabediaz.com/wp-content/uploads/2008/11/mypleasurepet-03.jpg" rel="lightbox[360]"><img src="http://gabediaz.com/wp-content/uploads/2008/11/mypleasurepet-03_thumb.jpg" alt="" title="mypleasurepet-01_thumb" width="400" class="aligncenter size-full wp-image-362" /></a></p>
<p><strong>Name/Status</strong>:<br />
mypleasurepet.com/<span class="style11 style1">Offline</span></p>
<p><strong>Software</strong>:<br />
Flash, Photoshop</p>
<p><strong>Position:</strong><br />
Flash Designer/Developer</p>
<p><strong>Description/Role</strong>:<br />
MyPleasurePet.com was an online initiative to bring to life the revamped Penthouse Magazine in a fun manner by &#8220;playing&#8221; with the current Pet of the Year, Heather Vandeven.  Developed by Sugartown Creative, MyPleasurePet.com was a sexy/naughty Subservient Chicken.</p>
<p>Due to the site launch building up momentum(via launch party invitations), there was the need for a placeholder until the actual site went live. A countdown timer was a fun way to keep the momentum going and an outlet to give those early site visitors a definitive launch date. </p>
<p><strong>Technical Challenge</strong>:<br />
None.</p>
<img src="http://feeds.feedburner.com/~r/GabeDiaz/~4/LCAFEqFhoM8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gabediaz.com/work/my-pleasure-pet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gabediaz.com/work/my-pleasure-pet/</feedburner:origLink></item>
	</channel>
</rss>
