<?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>Cozmoslabs &#187; Recomended Reading</title>
	<atom:link href="http://www.cozmoslabs.com/category/recomended-reading/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cozmoslabs.com</link>
	<description>Web design and development experiment.</description>
	<lastBuildDate>Thu, 01 Jul 2010 09:26:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Charisma, Free Genesis Child Theme</title>
		<link>http://www.cozmoslabs.com/2010/06/04/charisma-free-genesis-child-theme/</link>
		<comments>http://www.cozmoslabs.com/2010/06/04/charisma-free-genesis-child-theme/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 10:37:21 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Charisma]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1081</guid>
		<description><![CDATA[Charisma is a free Genesis child theme that will work perfectly for your WordPress personal blog. When I started designing Charisma I had in mind an elegant, simple, well structured theme which highlights the content and gives the user a pleasurable reading experience. The home page has a beautiful slider, and below it lists the [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!'><span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!</a></li>
<li><a href='http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Charisma is a <strong>free Genesis child theme</strong> that will work perfectly for your WordPress personal blog.</p>
<p>When I started designing Charisma I had in mind an elegant, simple, well structured theme which highlights the content and gives the user a pleasurable reading experience.</p>
<div id="attachment_1112" class="wp-caption alignnone" style="width: 610px"><img class="size-full wp-image-1112" title="charisma" src="http://www.cozmoslabs.com/wp-content/uploads/2010/06/charisma.jpg" alt="" width="600" height="389" /><p class="wp-caption-text">Charisma, Free Genesis Child Theme</p></div>
<p><span id="more-1081"></span></p>
<p>The home page has a beautiful slider, and below it lists the most recent post titles. I created a new widget area that appears only on the homepage and you can add the default featured articles widget or featured page widget from Genesis Theme Framework.</p>
<p>So why Genesis you might ask? To be honest I wanted to experiment with frameworks other then Thematic to see how they work. I&#8217;ve used bits from Hybrid in the past and this is how I&#8217;ve tested Genesis, by building a child theme for it.</p>
<p>To be honest I was pleasantly surprised.  The code is really easy to understand, there are plenty of tutorials on the support forums, the css is straight forward and the html really let&#8217;s you create any layout without any problems. I&#8217;ve also liked the widgets Genesis comes with by default. They speed up things quite a lot.</p>
<p class="info-box">Charisma was built on top of the Genesis framework, so it inherits all it&#8217;s functionality. In order to install it you have to buy the <a href="https://www.e-junkie.com/ecom/gb.php?ii=590021&amp;c=ib&amp;aff=94691&amp;cl=10214">Genesis Theme</a> (this is an affiliate link), upload both themes (Charisma and Genesis) to your server in the themes folder AND THEN ACTIVATE the Charisma theme.</p>
<div class="preview_download"><a href="http://www.cozmoslabs.com/project/charisma/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview" /></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=12" title="Version 1.0 downloaded 143 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Charisma Version 1.0" /></a></div>
<h2>Support</h2>
<p>If you have any question regarding this theme you can always visit the Cozmoslabs forums for help (<a href="http://www.cozmoslabs.com/forums/forum/charisma">www.cozmoslabs.com/forums/forum/charisma</a>).</p>
<p>However, for questions regarding the Genesis Theme Framework please make use of the <a href="http://www.studiopress.com/support/">excellent support StudioPress</a> provides.</p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!'><span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!</a></li>
<li><a href='http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2010/06/04/charisma-free-genesis-child-theme/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress user registration template and custom user profile fields</title>
		<link>http://www.cozmoslabs.com/2010/05/31/wordpress-user-registration-template-and-custom-user-profile-fields/</link>
		<comments>http://www.cozmoslabs.com/2010/05/31/wordpress-user-registration-template-and-custom-user-profile-fields/#comments</comments>
		<pubDate>Mon, 31 May 2010 12:14:19 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[custom user profiles]]></category>
		<category><![CDATA[frontend user registration]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1012</guid>
		<description><![CDATA[I&#8217;ve been playing a lot lately with the user registration template (I&#8217;ve used it as a great starting point) from Justin Tadlock&#8217;s ThemeHybrid and extended it to support custom user profiles. Unfortunately, user management in WordPress isn&#8217;t the sharpest tool in the shed. You have a lot of functionality for the users in the backend, [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/08/11/10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='Permanent Link: 10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/16/wordpress-as-a-social-platform/' rel='bookmark' title='Permanent Link: WordPress as a social platform'>WordPress as a social platform</a></li>
<li><a href='http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/05/ostrich.jpg" alt="" title="ostrich" width="300" height="200" class="alignright size-full wp-image-1036" /></p>
<p>I&#8217;ve been playing a lot lately with the <strong>user registration template</strong> (I&#8217;ve used it as a great starting point) from Justin Tadlock&#8217;s <a href="http://themehybrid.com/archives/2010/01/12-new-hybrid-theme-page-templates">ThemeHybrid</a> and extended it to support <strong>custom user profiles</strong>.</p>
<p>Unfortunately, user management in WordPress isn&#8217;t the sharpest tool in the shed. You have a lot of functionality for the users in the backend, but if you want to do extend that functionality to the front-end you&#8217;re in for a rough time.</p>
<p>There are some really nice tutorials that can help you add custom user profile fields in the backend, but if you try to do it to the frontend through a custom page template you&#8217;ll find your self validating a lot of fields and there&#8217;s even a twist to the entire process that makes things interesting.</p>
<p><span id="more-1012"></span></p>
<div class="preview_download">
<a href="http://cozmoslabs.com/project/thematic-frontend-profile/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=11" title="Version 1.0 downloaded 337 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Thematic Frontend Profile Version 1.0" /></a>
</div>
<h3>Yet Another Thematic Childtheme</h3>
<p>For the purpose of this tutorial will create a new <a href="http://themeshaper.com/thematic/">Thematic</a> child theme. Most of the code will go into the functions.php file and the individual template pages. If you&#8217;re new to this just use the child theme that comes with Thematic.</p>
<p>So let us have a look at what we&#8217;re building.</p>
<h3>WordPress Extra Profile Fields</h3>
<p>First of all, we want <strong>some extra profile fields in the back-end</strong>. We do this by simply adding input fields to the following two hooks: <code>show_user_profile</code> and <code>edit_user_profile</code>. We need both hooks because we want the users to be able to edit their own extra profile fields <em>and</em> we also want the admin to be able to edit other user&#8217;s extra profile fields.</p>

<div class="wp_codebox"><table><tr id="p101211"><td class="code" id="p1012code11"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_extra_profile_fields'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_extra_profile_fields'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> show_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo esc_attr( get_the_author_meta( 'twitter', <span style="color: #006699; font-weight: bold;">$user-&gt;ID</span> ) ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>In addition to this, we also need to save our data. This is done by hooking to <code>personal_options_update</code> and <code>edit_user_profile_update</code>. Both hooks are needed for the same reason two hooks were needed when adding the extra input fields.</p>

<div class="wp_codebox"><table><tr id="p101212"><td class="code" id="p1012code12"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'personal_options_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> save_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>This is what your entire functions.php file should contain:</p>

<div class="wp_codebox"><table><tr id="p101213"><td class="code" id="p1012code13"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//</span>
<span style="color: #666666; font-style: italic;">//  Custom Child Theme Functions</span>
<span style="color: #666666; font-style: italic;">//</span>
&nbsp;
&nbsp;
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_extra_profile_fields'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_extra_profile_fields'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> show_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Extra Profile Information'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>table <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-table&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo esc_attr( get_the_author_meta( 'twitter', <span style="color: #006699; font-weight: bold;">$user-&gt;ID</span> ) ); ?&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;regular-text&quot;</span> <span style="color: #339933;">/&gt;&lt;</span>br <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Please enter your Twitter account.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;birth&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Year of birth'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
				<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
				<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1900</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">2000</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
					<span style="color: #000088;">$years</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;select name=&quot;birth&quot;&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Select Year&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$years</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
						<span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">==</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'selected=&quot;slelected&quot;'</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/select&gt;'</span><span style="color: #339933;">;</span>
				<span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Please select the year of your birth.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'What are your hobbies?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$hobbies</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;videogames&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;videogames&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$hobbies</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>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Video Games'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hobbies</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>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabotaging Capitalism'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$hobbies</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>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Watching TV'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>			
		<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Do you agree that WordPress is the greatest thing since bread came sliced?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$agree</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yes&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <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;">$agree</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'yes'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</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> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yes'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;no&quot;</span>  name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <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;">$agree</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'no'</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</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> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No'</span><span style="color: #339933;">,</span>  <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>			
		<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;/</span>table<span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'personal_options_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> save_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'birth'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3>The templates</h3>
<h4>Edit Profile Template</h4>
<p>All right. With this out of the way, we can start working on our awesome templates. Let&#8217;s start with the <strong>Edit Profile Template</strong>. First of all, we need a form with all the input fields (both the default ones and our extra fields).</p>

<div class="wp_codebox"><table><tr id="p101214"><td class="code" id="p1012code14"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-twitter&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span>Twitter<span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'twitter', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>twitter <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-submit&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;updateuser&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;updateuser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Update&quot;</span> <span style="color: #339933;">/&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nonce_field<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'update-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;update-user&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Then, we need to update the user meta-data accordingly when needed. All can be summed up to the following snippet:</p>

<div class="wp_codebox"><table><tr id="p101215"><td class="code" id="p1012code15"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #666666; font-style: italic;">/* Get user info. */</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">;</span>
	get_currentuserinfo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* Load the registration file. */</span>
	<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/registration.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* If profile was saved, update profile. */</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'update-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</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></td></tr></table></div>

<p>Notice that loading the registration file found in <code>wp-includes</code> is an absolute must.</p>
<p><strong>Here is the entire edit profile page template for your Thematic Child Theme.</strong></p>

<div class="wp_codebox"><table><tr id="p101216"><td class="code" id="p1012code16"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009933; font-style: italic;">/**
 * Template Name: Edit Profile Page
 *
 */</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* Get user info. */</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">,</span> <span style="color: #000088;">$wp_roles</span><span style="color: #339933;">;</span>
	get_currentuserinfo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* Load the registration file. */</span>
	<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/registration.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-admin/includes'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/template.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// this is only for the selected() function</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">/* If profile was saved, update profile. */</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'update-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">/* Update user password. */</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass1'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass2'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass1'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass2'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>
				wp_update_user<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'ID'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_pass'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass1'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">else</span>
				<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'The passwords you entered do not match.  Your password was not updated.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">/* Update user information. */</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'first_name'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'first_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'last_name'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'last_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nickname'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'nickname'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nickname'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'display_name'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_email'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strpos"><span style="color: #990000;">strpos</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ttp://'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_url'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">else</span>
			update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_url'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://'</span> <span style="color: #339933;">.</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'aim'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'aim'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'yim'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'yim'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'jabber'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'jabber'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'description'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// Extra Profile Information</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'birth'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
		<span style="color: #666666; font-style: italic;">/* Redirect so the page will show updated info. */</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			wp_redirect<span style="color: #009900;">&#40;</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the header.php</span>
    get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content above #container</span>
    thematic_abovecontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">// calling the widget area 'page-top'</span>
            get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-top'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post-&lt;?php the_ID(); ?&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php thematic_post_class() ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
                <span style="color: #666666; font-style: italic;">// creating the post header</span>
                thematic_postheader<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;entry-content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
                    the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>&lt;div class='page-link'&gt;&quot;</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'number'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    edit_post_link<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;span class=&quot;edit-link&quot;&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>post <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> EDIT PROFILE STARTS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
			<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: #339933;">!</span>is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;warning&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You must be logged in to edit your profile.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>warning <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<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;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p class=&quot;error&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$error</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;edituser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-forms&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Name<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'First Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'first_name', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>first_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Last Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'last_name', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>last_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Nickname (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'nickname', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>nickname <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Display Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>select name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display_name&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;display_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #000088;">$public_display</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_nickname'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">nickname</span><span style="color: #339933;">;</span>
						<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_username'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_login</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_firstname'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_lastname'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
							<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_firstlast'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span><span style="color: #339933;">;</span>
							<span style="color: #000088;">$public_display</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'display_lastfirst'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">last_name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">first_name</span><span style="color: #339933;">;</span>
						<span style="color: #009900;">&#125;</span>
						<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$public_display</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #666666; font-style: italic;">// Only add this if it isn't duplicated elsewhere</span>
							<span style="color: #000088;">$public_display</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'display_displayname'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$public_display</span><span style="color: #339933;">;</span>
						<span style="color: #000088;">$public_display</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array_map"><span style="color: #990000;">array_map</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'trim'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$public_display</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
						<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$public_display</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$item</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
						<span style="color: #339933;">&lt;</span>option id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$id</span>; ?&gt;&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo esc_attr(<span style="color: #006699; font-weight: bold;">$item</span>); ?&gt;&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> selected<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$item</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$item</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&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>
					<span style="color: #339933;">&lt;/</span>select<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>display_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Contact Info<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-email&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'E-mail (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'user_email', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>email <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-website&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Website'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'user_url', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>website <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-aim&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AIM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'aim', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>aim <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-yim&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yahoo IM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'yim', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>yim <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-jabber&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jabber / Google Talk'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'jabber', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>jabber <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>About Yourself<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-description&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Biographical Info'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>textarea <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> rows<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;5&quot;</span> cols<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;30&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php <span style="color: #b1b100;">echo</span> the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'description'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>textarea<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>description <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-password&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass1&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'New Password'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass1&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass1&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>password <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-password&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass2&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Repeat Password'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass2&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass2&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>password <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Extra Profile Information<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-twitter&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_author_meta( 'twitter', <span style="color: #006699; font-weight: bold;">$current_user-&gt;id</span> ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>twitter <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-birth&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;birth&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Year of birth'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1900</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">2000</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$years</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
&nbsp;
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;select name=&quot;birth&quot;&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Select Year&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$years</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
								<span style="color: #000088;">$the_year</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$year</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$the_year</span> <span style="color: #009900;">&#41;</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'selected=&quot;slelected&quot;'</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">else</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #009900;">&#125;</span>
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/select&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>birth <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-hobbies&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'What are your hobbies?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #000088;">$hobbies</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies-type-list&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;videogames&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;videogames&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$hobbies</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>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Video Games'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hobbies</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>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabotaging Capitalism'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hobbies</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$hobbies</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>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Watching TV'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>hobbies <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-agree&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Do you agree that WordPress is the greatest thing since bread came sliced?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$agree</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yes&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <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;">$agree</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'yes'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</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> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yes'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;no&quot;</span>  name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <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;">$agree</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'no'</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</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> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No'</span><span style="color: #339933;">,</span>  <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>agree <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-submit&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$referer</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;updateuser&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;updateuser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php _e('Update', 'frontendprofile'); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nonce_field<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'update-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;update-user&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#edituser --&gt;
</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> EDIT PROFILE ENDS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> 
            thematic_comments_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Add a key/value of &quot;comments&quot; to enable comments on pages!</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// calling the widget area 'page-bottom'</span>
        get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-bottom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#content --&gt;
</span>	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#container --&gt;
</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content below #container</span>
    thematic_belowcontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the standard sidebar </span>
    thematic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling footer.php</span>
    get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h4>User Registration Page Template</h4>
<p>Next, let&#8217;s take a look at the <strong>Register Template</strong>. Similar to the Edit Profile Template, we need a form with all our input fields.</p>

<div class="wp_codebox"><table><tr id="p101217"><td class="code" id="p1012code17"><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;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;error&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$error</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>error <span style="color: #339933;">--&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-forms&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://&lt;?php echo <span style="color: #006699; font-weight: bold;">$_SERVER</span>['HTTP_HOST'] . <span style="color: #006699; font-weight: bold;">$_SERVER</span>['REQUEST_URI']; ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-username&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Username (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['user_name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>username <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-email&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'E-mail (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['email'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>email <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-twitter&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['twitter'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>twitter <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-submit&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;addusersub&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'frontendprofile'); else _e('Register', 'frontendprofile'); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nonce_field<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'add-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#adduser --&gt;</span></pre></td></tr></table></div>

<p><strong>Then, when a registration actually occurs, we need to:</strong></p>
<ul>
<li>create a user with all the default fields of meta-data;</li>
<li>separately add the extra meta-data fields;</li>
<li>mail the password to the new user.</li>
</ul>
<p>Reduced to a bare minimum, this is how the code looks like:</p>

<div class="wp_codebox"><table><tr id="p101218"><td class="code" id="p1012code18"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/* Load registration file. */</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/registration.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* If user registered, input info. */</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'adduser'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$user_pass</span> <span style="color: #339933;">=</span> wp_generate_password<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$userdata</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'user_pass'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$user_pass</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_login'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_email'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_login'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'A username is required for registration.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> username_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_login'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sorry, that username already exists!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>is_email<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You must enter a valid email address.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> email_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sorry, that email address is already used!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$new_user</span> <span style="color: #339933;">=</span> wp_insert_user<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$userdata</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		wp_new_user_notification<span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_pass</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Notice the included error reporting features.</p>
<p>Another thing that we should mention is the <code>update_usermeta</code> function. We need to call it because <code>wp_insert_user</code> function doesn&#8217;t take into account extra fields. </p>
<p><strong>Here is the entire registration page template for your Thematic Child Theme.</strong></p>

<div class="wp_codebox"><table><tr id="p101219"><td class="code" id="p1012code19"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009933; font-style: italic;">/**
 * Template Name: Register Page
 *
 */</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Load registration file. */</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/registration.php'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Check if users can register. */</span>
<span style="color: #000088;">$registration</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'users_can_register'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* If user registered, input info. */</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'adduser'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$user_pass</span> <span style="color: #339933;">=</span> wp_generate_password<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$userdata</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'user_pass'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$user_pass</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_login'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'first_name'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'first_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'last_name'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'last_name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'nickname'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nickname'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_email'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'user_url'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'website'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'aim'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'aim'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'yim'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'yim'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'jabber'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'jabber'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'role'</span> <span style="color: #339933;">=&gt;</span> get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'default_role'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_login'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'A username is required for registration.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> username_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_login'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sorry, that username already exists!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>is_email<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You must enter a valid email address.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> email_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$userdata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sorry, that email address is already used!'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$new_user</span> <span style="color: #339933;">=</span> wp_insert_user<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$userdata</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		wp_new_user_notification<span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_pass</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twitter'</span><span style="color: #339933;">,</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'twitter'</span><span style="color: #009900;">&#93;</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'birth'</span><span style="color: #339933;">,</span>   esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'birth'</span><span style="color: #009900;">&#93;</span>    <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span>    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span>   esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span>    <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the header.php</span>
    get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content above #container</span>
    thematic_abovecontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">// calling the widget area 'page-top'</span>
            get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-top'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post-&lt;?php the_ID(); ?&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php thematic_post_class() ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
                <span style="color: #666666; font-style: italic;">// creating the post header</span>
                thematic_postheader<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;entry-content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
                    the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>&lt;div class='page-link'&gt;&quot;</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'number'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    edit_post_link<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;span class=&quot;edit-link&quot;&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>post <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> REGISTER FORM STARTS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;log-in-out alert&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You are logged in as &lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%2$s&lt;/a&gt;.  You don\'t need another account.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_author_posts_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$curauth</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_identity</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo wp_logout_url( get_permalink() ); ?&gt;&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php _e('Log out of this account', 'frontendprofile'); ?&gt;&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Logout &amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>log<span style="color: #339933;">-</span>in<span style="color: #339933;">-</span>out <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$new_user</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
					<a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'A user account for %1$s has been created.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user-name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">else</span> 
					<a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Thank you for registering, %1$s.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user-name'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;br/&gt;Please check your email address. That\'s where you\'ll recieve your login password.&lt;br/&gt; (It might go into your spam folder)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<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;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;error&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$error</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>error <span style="color: #339933;">--&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$registration</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Users can register themselves or you can manually create users here.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Users cannot currently register themselves, but you can manually create users here.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<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;">$registration</span> <span style="color: #339933;">||</span> current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'create_users'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>form method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-forms&quot;</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://&lt;?php echo <span style="color: #006699; font-weight: bold;">$_SERVER</span>['HTTP_HOST'] . <span style="color: #006699; font-weight: bold;">$_SERVER</span>['REQUEST_URI']; ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Name<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-username&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Username (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['user_name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>username <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'First Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;first_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['first_name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>first_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Last Name'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last_name&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['last_name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>last_name <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Nickname'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nickname&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['nickname'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>nickname <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Contact Info<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-email&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'E-mail (required)'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;email&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['email'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>email <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-website&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Website'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;website&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['website'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>website <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-aim&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AIM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aim&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['aim'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>aim <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-yim&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yahoo IM'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yim&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['yim'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>yim <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-jabber&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Jabber / Google Talk'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;jabber&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['jabber'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>jabber <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>About Yourself<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-description&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Biographical Info'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>textarea <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;description&quot;</span> rows<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;5&quot;</span> cols<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;30&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> wp_specialchars<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>textarea<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>description <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>strong<span style="color: #339933;">&gt;</span>Extra Profile Information<span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-twitter&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Twitter'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( <span style="color: #006699; font-weight: bold;">$error</span> ) echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['twitter'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>twitter <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-birth&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;birth&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Year of birth'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1900</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">2000</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
							<span style="color: #000088;">$years</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$i</span><span style="color: #339933;">;</span>
&nbsp;
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;select name=&quot;birth&quot;&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Select Year&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$years</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
								<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$error</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$year</span><span style="color: #339933;">==</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'birth'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'selected=&quot;slelected&quot;'</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">else</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
								<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;option value=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$selected</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$year</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/option&gt;'</span><span style="color: #339933;">;</span>
							<span style="color: #009900;">&#125;</span>
						<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/select&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>birth <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-hobbies&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'What are your hobbies?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span>
						<span style="color: #000088;">$hobbies</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hobbies'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies-type-list&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;videogames&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$error</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;videogames&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</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>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Video Games'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$error</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sabotagingcapitalism&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</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>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sabotaging Capitalism'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span>           name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hobbies[]&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$error</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;watchingtv&quot;</span><span style="color: #339933;">,</span>           <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'hobbies'</span><span style="color: #009900;">&#93;</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>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Watching TV'</span><span style="color: #339933;">,</span>           <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>hobbies <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-agree&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Do you agree that WordPress is the greatest thing since bread came sliced?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$agree</span> <span style="color: #339933;">=</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'agree'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;yes&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <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;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'yes'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</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> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Yes'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>input value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;no&quot;</span>  name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;agree&quot;</span> <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;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'agree'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'no'</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</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> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;radio&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No'</span><span style="color: #339933;">,</span>  <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>agree <span style="color: #339933;">--&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-submit&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$referer</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;addusersub&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'frontendprofile'); else _e('Register', 'frontendprofile'); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nonce_field<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'add-user'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
					<span style="color: #339933;">&lt;</span>input name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;adduser&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#adduser --&gt;
</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> REGISTER FORM ENDS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> 
            thematic_comments_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Add a key/value of &quot;comments&quot; to enable comments on pages!</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// calling the widget area 'page-bottom'</span>
        get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-bottom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#content --&gt;
</span>	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#container --&gt;
</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content below #container</span>
    thematic_belowcontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the standard sidebar </span>
    thematic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling footer.php</span>
    get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h4>User Log-In Page Template</h4>
<p>The third and last template is the <strong>Log-In Template</strong>. Much of it was inspired by Justin Tadlock&#8217;s work and it basically consists of the form with the username and password fields and the <code>wp_signon()</code> function at the top that actually does all the dirty work.</p>

<div class="wp_codebox"><table><tr id="p101220"><td class="code" id="p1012code20"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009933; font-style: italic;">/**
 * Template Name: Log In Page
 *
 */</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'POST'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_METHOD'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'log-in'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$error</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$login</span> <span style="color: #339933;">=</span> wp_login<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user-name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$login</span> <span style="color: #339933;">=</span> wp_signon<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'user_login'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user-name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'user_password'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'remember'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'remember-me'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the header.php</span>
    get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content above #container</span>
    thematic_abovecontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">// calling the widget area 'page-top'</span>
            get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-top'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post-&lt;?php the_ID(); ?&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php thematic_post_class() ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
                <span style="color: #666666; font-style: italic;">// creating the post header</span>
                thematic_postheader<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;entry-content&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
                    the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #000099; font-weight: bold;">\t</span>&lt;div class='page-link'&gt;&quot;</span><span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'number'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    edit_post_link<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thematic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;span class=&quot;edit-link&quot;&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>post <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> LOGIN STARTS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Already logged in ?&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$user_ID</span><span style="color: #339933;">;</span> <span style="color: #000088;">$login</span> <span style="color: #339933;">=</span> get_userdata<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You are currently logged in as &lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%2$s&lt;/a&gt;.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_author_posts_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo wp_logout_url( get_permalink() ); ?&gt;&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php _e('Log out of this account', 'frontendprofile'); ?&gt;&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Log out &amp;raquo;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Successful login ?&gt;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$login</span> <span style="color: #339933;">=</span> get_userdata<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alert&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You have successfully logged in as &lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot;&gt;%2$s&lt;/a&gt;.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_author_posts_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$login</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>alert <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Not logged in ?&gt;</span>
&nbsp;
		<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;">$error</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;error&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$error</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>error <span style="color: #339933;">--&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>form action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;sign-in&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;login-form-username&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-name&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Username'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-name&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;user-name&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo wp_specialchars( <span style="color: #006699; font-weight: bold;">$_POST</span>['user-name'], 1 ); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>username <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;login-form-password&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Password'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-input&quot;</span> <span style="color: #339933;">/&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>password <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;login-form-submit&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;submit button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php _e('Log in', 'frontendprofile'); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;</span>input <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;remember-me checkbox&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;remember-me&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;remember-me&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checkbox&quot;</span> checked<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;checked&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;forever&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;remember-me&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Remember me'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hidden&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;action&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;log-in&quot;</span> <span style="color: #339933;">/&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>form<span style="color: #339933;">-</span>submit <span style="color: #339933;">--&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo get_option('siteurl');  ?&gt;/wp-login.php?action=lostpassword&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>php _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lost password?'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'frontendprofile'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #339933;">.</span>sign<span style="color: #339933;">-</span>in <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> LOGIN ENDS HERE <span style="color: #339933;">--&gt;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> 
            thematic_comments_template<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Add a key/value of &quot;comments&quot; to enable comments on pages!</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// calling the widget area 'page-bottom'</span>
        get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-bottom'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#content --&gt;
</span>	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #666666; font-style: italic;">#container --&gt;
</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
    <span style="color: #666666; font-style: italic;">// action hook for placing content below #container</span>
    thematic_belowcontainer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling the standard sidebar </span>
    thematic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// calling footer.php</span>
    get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>Conclusions</h3>
<p>WordPress dose allow you to add any kind of fields to your user profile. It&#8217;s not very developer friendly and there&#8217;s a lot of validations that we need to do but it is possible and that&#8217;s all that matters if you ask me.</p>
<p>We need an UI in the core of WordPress for this, but probably we won&#8217;t have anything like this for quite a while. </p>
<p>The funny thing is that BuddyPress has a plugin that let&#8217;s you create <strong>extra user fields</strong> and displays them in the front end, but not in the backend. And we also have a plugin that is called Cimy User Extra Fields that creates the extra fields for the backend but it&#8217;s still more a developer&#8217;s tool and not that easy to use for the standard user. But there isn&#8217;t any real integration so that&#8217;s the bad thing. </p>
<p>The way this should work in an ideal word would be for us to have an UI in the backend and page templates that come with the default WordPress theme so developers can build on top of that (similar to the comments form).</p>
<h3>Extra Struff</h3>
<p>You can follow the tutorial to create your Extra User Fields or you can just preview / download the child theme directly and then make it fit your needs.</p>
<div class="preview_download">
<a href="http://cozmoslabs.com/project/thematic-frontend-profile/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=11" title="Version 1.0 downloaded 337 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Thematic Frontend Profile Version 1.0" /></a>
</div>
<h3>Credits</h3>
<p><a href="http://www.dquinn.net/adding-custom-user-meta-profile-fields-wordpress/">http://dquinn.net</a><br />
<a href="http://blog.ftwr.co.uk/archives/2009/07/19/adding-extra-user-meta-fields/">http://blog.ftwr.co.uk</a><br />
<a href="http://rubenwoudsma.nl/wordpress-gebruikersprofiel-uitbreiden/">http://rubenwoudsma.nl</a><br />
<a href="http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields">http://justintadlock.com</a></p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/08/11/10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='Permanent Link: 10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/16/wordpress-as-a-social-platform/' rel='bookmark' title='Permanent Link: WordPress as a social platform'>WordPress as a social platform</a></li>
<li><a href='http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2010/05/31/wordpress-user-registration-template-and-custom-user-profile-fields/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Multilingual WordPress &#8211; WPML Plugin Review</title>
		<link>http://www.cozmoslabs.com/2009/10/08/multilingual-wordpress-wpml-review/</link>
		<comments>http://www.cozmoslabs.com/2009/10/08/multilingual-wordpress-wpml-review/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 17:41:51 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[bilingual wordpress]]></category>
		<category><![CDATA[multilanguage]]></category>
		<category><![CDATA[multilingual]]></category>
		<category><![CDATA[multilingual wordpress]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=671</guid>
		<description><![CDATA[Photo by derSven ¶ One of the hardest things to do with WordPress is creating a multilingual blog / website that is easy to maintain and develop. My interest on the subject comes from the need of my customers for easy to maintain multilingual websites. This way they can extend their services to new markets. [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/' rel='bookmark' title='Permanent Link: Multilingual solutions for a wordpress installation'>Multilingual solutions for a wordpress installation</a></li>
<li><a href='http://www.cozmoslabs.com/2009/09/18/members-wordpress-plugin-by-justin-tadlock/' rel='bookmark' title='Permanent Link: Members: WordPress Plugin by Justin Tadlock'>Members: WordPress Plugin by Justin Tadlock</a></li>
<li><a href='http://www.cozmoslabs.com/2008/09/14/use-wordpress-as-a-cms-with-thematic-part2/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic &#8211; Part2'>Use WordPress as a CMS with Thematic &#8211; Part2</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage">
<img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/multilingual.jpg" alt="multilingual" title="multilingual" width="300" height="225" class="alignnone size-full wp-image-711" /></p>
<p>Photo by <a href="http://www.flickr.com/photos/dersven/" rel="nofollow">derSven ¶</a>
</div>
<p>One of the hardest things to do with WordPress is creating a <strong>multilingual blog / website</strong> that is easy to maintain and develop.</p>
<p>My interest on the subject comes from the need of my customers for easy to maintain multilingual websites. This way they can extend their services to new markets.</p>
<p>I&#8217;ve had this <a href="http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/">discussion in the past</a>, with a description of various plugins and methods to develop a multilingual WordPress blog / site.</p>
<p>In that article I&#8217;ve talked about the theory behind multilingual web-developement and mostly about the <strong>multilingual WordPress</strong> and four ways of implementing it:</p>
<ol>
<li><strong>The “Two-Tree” concept</strong> ( we use “language” categories )</li>
<li><strong>Automated translation</strong> (using google languages or babelfish)</li>
<li><strong>Manual translation</strong> using plugins ( I could only find one really good plugin that can do that so we’ll look into that)</li>
<li><strong>Semi-automated payed translation</strong>. (this is rather an ingenious concept and I believe the people who created the service will have a lot to gain from it)</li>
</ol>
<p>Today we&#8217;ll talk about a new and really interesting WordPress multilingual plugin: <a href="http://wpml.org/">WPML</a>.</p>
<p>The interesting thing about this <strong>multilingual plugin</strong> is the way it organizes the information. It&#8217;s completely different from <a href="http://www.qianqin.de/qtranslate/">qTranslate</a> (that I presented in the previous multilingual blog post). Instead of using language tags (that separates the content in different languages), <strong>MPLM</strong> links one post in English to another post that will represent it&#8217;s translation in Spanish for example. This way you get to translate everything in a very clean way.</p>
<p><span id="more-671"></span></p>
<p>Beside this, there are more really cool features that help you get a complete translation done, like:</p>
<ul>
<li>Theme localization – Provide translation for texts that appear in your theme.</li>
<li>Professional translation – an optional service, built for people who want to have their site’s contents professionally translated.</li>
<li>Navigation – Control the appearance of site-wide navigation based on WordPress pages.</li>
<li>Sticky links – This is an essential function for running full websites with WordPress. It guarantees that links between pages can never break.</li>
<li>Home page link – All themes have links to the home page. This function will make that home page link point to the correct language.</li>
<li>Hard coded theme links – Many themes include hard-coded links. This will make these links language dependent so that the link text and the target match the display language.</li>
</ul>
<h2><strong>The Tutorial</strong> &#8211; Building a multilingual website from scratch with WordPress</h2>
<p>The best way to showcase the functionality of this plugin is creating a tutorial in which we&#8217;ll create our very own multilingual website.</p>
<p>For this I&#8217;ve installed a new <a href="http://www.cozmoslabs.com/projects/multilingual/">WordPress blog here</a>, installed our plugin (you can download and install it from <a href="http://wordpress.org/extend/plugins/sitepress-multilingual-cms/">here</a>) and the <a href="http://themeshaper.com/thematic/">Thematic</a> theme ( because I do like it a lot! )</p>
<p>So far so good. Next we&#8217;ll need to add some content to our new website. This is going to be a site about a fictional company called &#8220;Lettuce INC.&#8221; that produces 100% natural lettuce (Lactuca sativa). <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>We&#8217;ll have four pages:</strong> Home, About, Blog and Contact. Also we&#8217;ve selected the Home page to be a static one (as opposed to displaying our latest posts). You can do this from the admin panel, just go under <em>Settings → Reading</em>.</p>
<p><img class="aligncenter size-full wp-image-677" title="static_homepage" src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/static_homepage.png" alt="static_homepage" width="600" height="269" /></p>
<p>The available languages will be English and Romanian.</p>
<h3>Setting up WPML, the multilingual plugin for WordPress</h3>
<p>Before we can start translating anything we need to tell WPML what languages we&#8217;ll have on our site. So head over in the WordPress admin and select <em>WPLM → Languages</em>.</p>
<p><img class="aligncenter size-full wp-image-684" title="setup_wpml" src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/setup_wpml1.png" alt="setup_wpml" width="600" height="265" /></p>
<p>The next step lets us select the secondary languages for our site. I&#8217;ve selected Romanian.</p>
<p><img class="aligncenter size-full wp-image-686" title="select_lang" src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/select_lang.png" alt="select_lang" width="600" height="265" /></p>
<p>The third and final step to activating WPML consists of adding a language switched. This way the visitors will be able to easily select their preferred language. While available in the form of a widget, it&#8217;s also possible to insert it directly into the theme using the <em>icl_post_languages()</em> function, but this is outside the scope of the current tutorial.</p>
<p><img class="aligncenter size-full wp-image-688" title="language_switcher" src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/language_switcher.png" alt="language_switcher" width="600" height="265" /></p>
<h3>Translating our content</h3>
<p>Now that we&#8217;ve set up the plugin we can finally start translating our content. </p>
<p>We&#8217;ll start by translating the pages of our blog. To do so simply go to the edit pages admin panel in WordPress and there, we have a small &#8220;<strong>+</strong>&#8221; button that lets us translate individual pages.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/add_translation.jpg" alt="add_translation" title="add_translation" width="600" height="220" class="aligncenter size-full wp-image-694" /></p>
<p>This will create a new page for us where we can add the translated title, content, custom fields (if any) and basically anything needed for your page.</p>
<p><strong>Another way of generating the same result</strong> would be to open (or create a new page for that matter) any page and on the right side, <strong>above the Publishing box</strong>, we have the <strong>language box</strong>.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/language_box.jpg" alt="language_box" title="language_box" width="600" height="220" class="aligncenter size-full wp-image-695" /></p>
<h3>Translating the blog</h3>
<p>Similar to the pages we can translate blog posts.</p>
<p><strong>Also we can translate categories and tags.</strong> This is a really useful functionality that in my opinion makes this plugin complete.<br />
To do so we&#8217;ll go to the category page in the WordPress admin panel and click on the category that you want to translate. Then scroll to the bottom and in the Language box click &#8220;Add translation&#8221;.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/translate_category.jpg" alt="translate_category" title="translate_category" width="600" height="469" class="aligncenter size-full wp-image-697" /></p>
<h3>Translating various strings in WordPress like blog title, blog description or widgets</h3>
<p>Our next stop is the <strong>String Translation</strong> under the WPML tab.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/string_translation.jpg" alt="string_translation" title="string_translation" width="600" height="351" class="aligncenter size-full wp-image-701" /></p>
<p>You might want to &#8220;Save settings and rescan strings&#8221; first, just in case.</p>
<p>An interesting functionality here is the possibility to import/export .po files. The way this works is you export the English strings in .po format, insert them into PoEdit to translate them, export the Romanian .po files from PoEdit and then Import the translated file into WPML&#8230; <strong>Confused? </strong>Don&#8217;t worry&#8230; the only reason you might use this is if you need to hire someone else to translate your site but you don&#8217;t want to give them access to the WordPress backed to do the translation!</p>
<h3>Theme translation</h3>
<p>The only thing left for us now is to translate our theme. </p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/10/theme_translation.jpg" alt="theme_translation" title="theme_translation" width="600" height="351" class="aligncenter size-full wp-image-704" /></p>
<p>There are two way of doing this:</p>
<ul>
<li><strong>Translate the theme by WPML.</strong> <br />
WPML will add the theme&#8217;s texts to the string translation page, where you can enter translations.</li>
<li><strong>Using a .mo file in the theme directory.</strong> <br />
Include the theme&#8217;s .mo files in the theme&#8217;s folder and WPML will load the right file for each language.</li>
</ul>
<p>Both are good ways&#8230; I&#8217;ve mentioned in the beginning that I&#8217;ve chosen Thematic for a reason and that reason is that it&#8217;s localized in a lot of languages&#8230; 13 to be exact (lucky number <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). This means if your needed language is between those 13 then you don&#8217;t have to translate your theme.</p>
<h1>Conclusions</h1>
<h3>What I like</h3>
<ul>
<li>It&#8217;s the first and only really complete multilingual plugin for WordPress</li>
<li>You can easily translate any page, post, widget, theme text, blog string, plugin, etc.</li>
<li>Professional translation. This is how the WPML team makes money! They offer the possibility to automatically translate your blog without touching a single string. This is done by real translators (no robots at the end of the line) so you get really good quality .</li>
<li>Comments translation. So if you really want to take your multilingual blog to the next level then comments translation is the way to go.</li>
</ul>
<h3>What I didn&#8217;t like</h3>
<ul>
<li>Ok&#8230; Call me picky&#8230; but<strong> PLEASE transform the &#8220;Advanced »&#8221; link into a BIG BUTTON in the Languages Section in WPML.</strong> I&#8217;ve searched for something like 2 hours for it. I thought it was removed or something in the latest version! I mean that&#8217;s where all the good stuff is, like selecting the URL format and admin language!</li>
<li>The information on the WPML.org website is&#8230; terribly unorganized&#8230; there is a lot of good info there, just that it&#8217;s all over the place. There is a really informative <a href="http://forum.wpml.org/">forum</a>&#8230; but there is no link to the forum in the main menu! You have to click the main support page and there you have a link to the forum. Not user friendly at all.</li>
</ul>
<h3>Final thoughts</h3>
<p>The WPML plugin is genius! It&#8217;s the best multilingual plugin for WordPress there is. As you could see the only things that I didn&#8217;t like were simple UI issues! But the core of the plugin is rock solid and the functionality it provides it&#8217;s just unprecedented! I wish the WPML team best of luck and congratulations for this really, really good multilingual plugin for WordPress! Keep up the good work! </p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/' rel='bookmark' title='Permanent Link: Multilingual solutions for a wordpress installation'>Multilingual solutions for a wordpress installation</a></li>
<li><a href='http://www.cozmoslabs.com/2009/09/18/members-wordpress-plugin-by-justin-tadlock/' rel='bookmark' title='Permanent Link: Members: WordPress Plugin by Justin Tadlock'>Members: WordPress Plugin by Justin Tadlock</a></li>
<li><a href='http://www.cozmoslabs.com/2008/09/14/use-wordpress-as-a-cms-with-thematic-part2/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic &#8211; Part2'>Use WordPress as a CMS with Thematic &#8211; Part2</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/10/08/multilingual-wordpress-wpml-review/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Early Morning Child Theme</title>
		<link>http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/</link>
		<comments>http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 10:54:25 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[thematic child theme]]></category>
		<category><![CDATA[wordpress theme design]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=620</guid>
		<description><![CDATA[This elegant WordPress theme was inspired by the colors of the early morning as I see them from my window. It&#8217;s light, elegant and pleasantly surprising. This theme doesn&#8217;t scream at you, instead it takes a step back and lets the user read. Please don&#8217;t spoil it by putting ads on it! You also have [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!'><span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/02/street-wordpress-theme/' rel='bookmark' title='Permanent Link: Street WordPress Theme'>Street WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2010/06/04/charisma-free-genesis-child-theme/' rel='bookmark' title='Permanent Link: Charisma, Free Genesis Child Theme'>Charisma, Free Genesis Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This elegant WordPress theme was inspired by the colors of the early morning as I see them from my window. It&#8217;s light, elegant and pleasantly surprising.</p>
<p>This theme doesn&#8217;t scream at you, instead it takes a step back and lets the user read. Please don&#8217;t spoil it by putting ads on it!</p>
<div id="attachment_624" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/early-morning1.jpg" alt="Early Morning - A refreshing child theme for Thematic" title="early-morning" width="600" height="326" class="size-full wp-image-624" /><p class="wp-caption-text">Early Morning - A refreshing child theme for Thematic</p></div>
<p><span id="more-620"></span></p>
<h2>You also have some nifty options:</h2>
<ul>
<li>You can upload your own logo</li>
<li>It comes with it&#8217;s own custom designed Twitter widget, so your visitors can see what you&#8217;re doing from your blog</li>
<li>If green isn&#8217;t your style, it comes with 5 background options that you can select from the <strong>Early Morning Theme Options</strong> (Green, Turquoise, Brick Red, Gray and Black)</li>
<li>Has a one column page template and archive template</li>
<li>It&#8217;s been tested and works on Firefox 3.5, Safari 4, Opera 9, Chrome, IE7, IE8</li>
</ul>
<p class="info-box">
In order to install it you have to download the <a href="http://themeshaper.com/thematic/">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (Early Morning and Thematic) to your server in the themes folder AND THEN ACTIVATE the Early Morning Theme.
</p>
<div class="preview_download">
<a href="http://www.cozmoslabs.com/projects/early/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a><a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=7" title="Version 0.2 downloaded 4957 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Early Morning Version 0.2" /></a>
</div>
<div class="preview_download">
Inspired by: <a href="http://www.adrianpelletier.com/">Adrian Pelletier</a>
</div>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!'><span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/02/street-wordpress-theme/' rel='bookmark' title='Permanent Link: Street WordPress Theme'>Street WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2010/06/04/charisma-free-genesis-child-theme/' rel='bookmark' title='Permanent Link: Charisma, Free Genesis Child Theme'>Charisma, Free Genesis Child Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/feed/</wfw:commentRss>
		<slash:comments>109</slash:comments>
		</item>
		<item>
		<title>WordPress as a social platform</title>
		<link>http://www.cozmoslabs.com/2009/06/16/wordpress-as-a-social-platform/</link>
		<comments>http://www.cozmoslabs.com/2009/06/16/wordpress-as-a-social-platform/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 06:46:22 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[social]]></category>
		<category><![CDATA[social network]]></category>
		<category><![CDATA[social platform]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=527</guid>
		<description><![CDATA[WordPress started in 2003. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day. But you already knew that! By itself this blogging tool used to be just that: a way to put [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/09/18/members-wordpress-plugin-by-justin-tadlock/' rel='bookmark' title='Permanent Link: Members: WordPress Plugin by Justin Tadlock'>Members: WordPress Plugin by Justin Tadlock</a></li>
<li><a href='http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/' rel='bookmark' title='Permanent Link: Multilingual solutions for a wordpress installation'>Multilingual solutions for a wordpress installation</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_548" class="wp-caption alignright" style="width: 310px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/06/wordpress_social-300x202.gif" alt="WordPress as a social platform" title="wordpress_social" width="300" height="202" class="size-medium wp-image-548" /><p class="wp-caption-text">WordPress as a social platform</p></div>
<p>WordPress started in 2003. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day. But you already knew that! </p>
<p>By itself this blogging tool used to be just that: a way to put your thoughts out there, so anyone with a internet connection could read it.  But WordPress is not just about blogging, at least not anymore. While still limited in terms of &#8220;out of the box&#8221; functionality compared with other CMS out there, WordPress managed to shine thought it&#8217;s plugins and themes.</p>
<p><span id="more-527"></span></p>
<p>Right now WordPress can be a <a href="http://bbpress.org/">forum</a>, <a href="http://mu.wordpress.org/">multi blogs platform</a>, <a href="http://buddypress.org/">social media platform</a>, <a href="http://en.blog.wordpress.com/2009/03/11/p2-the-new-prologue/">microblog</a>, <a href="http://bmpress.org/">social bookmarking</a> and these are just a few of the possibilities.</p>
<p>WordPress is slowly making it&#8217;s way into the corporate world as well: Yahoo, CNN, New York Times, Ford, Nike are just a few of big names that implemented it for it&#8217;s ease of use, fast development times, cost reduction and easy maintenance of the platform. Oh&#8230; and <a href="http://markjaquith.wordpress.com/2008/08/18/us-government-agencies-using-wordpress/">U.S. Government Agencies are also using WordPress</a>.</p>
<p>So where do we go from here? Recently it was announced WordPress to <a href="http://www.wptavern.com/to-merge-or-not-to-merge">merge</a> with WordPress MU. This will probably appear with the 3.0 launch. This seams to be just one of the big steps towards a social web platform. The next step will probably be to integrate more social media features from <a href="http://buddypress.org/">BuddyPress</a>. </p>
<p>The power of a blog is in its network of users. Since web users are becoming accustomed to a culture of participation, publishers will look to include tools that will better facilitate the conversation. Tools like user profile pages and groups from BuddyPress will make a good additions to blogs. An issue could be the &#8220;yet another account and password&#8221; problem but solutions like <a href="http://oauth.net/">oAuth</a> or using accounts from other more prestigious social networks (login in with your <a href="http://www.baekdal.com/articles/Technology/socializing-baekdal/">facebook or google account</a>) will help the transition from simple comments to complex communication. </p>
<p>While all these extra features mean nothing for end users that just wants to blog (and for which the WordPress was created initially) they will mean the world for power bloggers, web-developers and web entrepreneurs by transforming expensive and time consuming activities into cheap and fast ones. Implementing ideas, interconnecting social networks, creating learning platforms, building multilingual information hubs, using community feedback to build a better business, all this will get easier to implement (for the web-developer) and use (for the end user).</p>
<p>Another interesting thing happening in the WordPress community is the adoption of GPL licensing for payed theme clubs that previously used proprietary licenses. In my opinion, this is because <a href="http://ma.tt/">Matt Mullenweg</a> started to pressure non-GPL theme clubs and designers. He did this by voicing his opinion, removing all non-GPL themes and theme designers that have <a href="http://www.wptavern.com/forum/themes-templates/446-one-peeved-off-theme-maker.html">even the slightest contact</a> with non-GPL themes from the <a href="http://wordpress.org/extend/themes/">Theme Repository</a> and by making it easy to install themes directly from the backend of WordPress. While this can be debated indefinitely one thing is sure: it&#8217;s good for the end user and the community! For WordPress as a platform this is even better since most of these themes are good quality and people can now reuse the professionally developed code in future projects without the fear of legal repercussions.</p>
<p>WordPress definitely has the opportunity to become a great social platform. The same way blogging changed the publishing world it&#8217;s fair to say that social networking will change the blogging platform to facilitate communication and collaboration. It&#8217;s appropriate. </p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/09/18/members-wordpress-plugin-by-justin-tadlock/' rel='bookmark' title='Permanent Link: Members: WordPress Plugin by Justin Tadlock'>Members: WordPress Plugin by Justin Tadlock</a></li>
<li><a href='http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/' rel='bookmark' title='Permanent Link: Multilingual solutions for a wordpress installation'>Multilingual solutions for a wordpress installation</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/06/16/wordpress-as-a-social-platform/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Content design &#8211; what makes a good landing page</title>
		<link>http://www.cozmoslabs.com/2009/04/28/content-design-what-makes-a-good-landing-page/</link>
		<comments>http://www.cozmoslabs.com/2009/04/28/content-design-what-makes-a-good-landing-page/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 08:09:14 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=382</guid>
		<description><![CDATA[Photo by divemasterking2000 I want a redesign. I need it to be forward thinking with easy access to most sections of the site. Although this sounds like I&#8217;m trying to sell something to a client, please bare with me. Creating an effective landing page (in my case the front page) is a must. This is [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/08/05/working-on-the-blog-design/' rel='bookmark' title='Permanent Link: Working on the blog design'>Working on the blog design</a></li>
<li><a href='http://www.cozmoslabs.com/2008/08/11/10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='Permanent Link: 10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/landing.jpg" alt="landing" title="landing" width="300" height="204" class="alignnone size-full wp-image-395" /></p>
<p>Photo by <a href="http://www.flickr.com/photos/divemasterking2000/3397470104/" rel="nofollow">divemasterking2000</a></p>
</div>
<p>I want a redesign. I need it to be forward thinking with easy access to most sections of the site. Although this sounds like I&#8217;m trying to sell something to a client, please bare with me. Creating an effective landing page (in my case the front page) is a must. This is not a tutorial, but a discussion, a way to put into perspective several elements of effective web-design. I&#8217;ll analyze a few blogs and web-sites that make good use of their front page and try to draw some conclusions that will help me in my own quest towards a full redesign. </p>
<p>There are several flaw in the current design, conceptual and technical. Technically there are some issues with IE that simply annoyed me to the point that I just ignored them. I want to integrate threaded comments and the footer isn&#8217;t exactly what I would like it to be. Also, I never got a chance to update to the latest Thematic version on which this blog is built because I didn&#8217;t need any of the new features. The content I had was simply happy with the current design.</p>
<p>From an usability point of view there are bigger problems with the design. Right now the articles are accessible through a right column with nothing but text and to be honest it looks like a big blurb. I want a better way to differentiate my categories, WordPress Themes and the services page.</p>
<p>To make it clearer this is what <strong>I want to achieve with this new redesign</strong>:<br />
<span id="more-382"></span></p>
<ul>
<li>Better navigation</li>
<li>Easy access to all of the content</li>
<li>Article suggestion at the end of each post</li>
<li>Pixel perfect in all modern browsers</li>
<li>Instant understanding of what this blog is about by new visitors (tough an about widget perhaps?)</li>
<li>A more useful footer. This should be a place where one can find other info site related and introduce the visitor further inside the website</li>
</ul>
<h3>Inspiration</h3>
<p>I&#8217;ve browsed around for ideas. Seeing and analyzing how others have solved their problems will help me come up with my own solutions for the content I have. There are quite a lot of websites and blogs that have really good content design and this is really important if you want your users to stay more on your website.</p>
<p><strong>1.</strong> <a href="http://boagworld.com/" rel="nofollow">http://boagworld.com/</a> &#8211; Boagworld is the blog of Paul (the Wurzel) Boag who lives in the heart of rural Dorset. He produces a weekly podcast with Marcus (pop star) Lillington on all things relating to building and running websites.</p>
<p><img class="aligncenter size-full wp-image-387" title="boadworld" src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/boadworld.jpg" alt="boadworld" width="480" height="511" /></p>
<p>What I found interesting were 4 areas:</p>
<ol>
<li><strong>The main menu.</strong> It&#8217;s one of the first things you see when you enter the website. The fact that it has only 4 elements (and one of them the search box) means that they removed a possible home link or a contact link thus giving more importance to the remaining 3 links</li>
<li><strong>The banner.</strong> I really like this! Not just the graphics, but the idea behind it. This is the first thing I read once I entered the website. It has a clear message and you instantly know what to expect from this site: A podcast for those who design, develop and maintain websites. The RSS and iTunes buttons are a really nice touch also.</li>
<li><strong>The blog post introduction.</strong> Made to draw your attention, it dose so not through graphics, but using a short and differently styled text that makes you curious. What do they have to say next?</li>
<li><strong>Latest Shows.</strong> This is probably the second thing you see when you view the page, right after the banner. The way this was orchestrated is simply beautiful. We normally read from top left to bottom right, thus after you find out what this blog is about (which is a podcast) you immediately find the latest shows. There is absolutely no effort from the user to find what he&#8217;s looking for.</li>
</ol>
<p><strong>2.</strong> <a href="http://lifehacker.com/" rel="nofollow">Lifehacker.com</a> &#8211; Tips and Downloads for getting things done.</p>
<p><img class="aligncenter size-full wp-image-392" title="lifehacker" src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/lifehacker.jpg" alt="lifehacker" width="480" height="259" /></p>
<p>This is one type of design that is not really common online. Most themes and designs follow the <em>header->menu->content->sidebar</em> design. This on the other hand has several differences:</p>
<ol>
<li><strong>Top Featured Articles.</strong> Lifehacker dosen&#8217;t lose time introducing you to the latest and hottest news and articles. </li>
<li><strong>Article Listing.</strong>  There isn&#8217;t anything spectacular here. Each article excerpt has an image to the right and little text, but since there are so many articles here, the short info makes it easy to scan through and view just the ones that interest you.</li>
<li><strong>Latest Comment.</strong> Instead of putting ads in the right bottom corner, they chose to engage the users in the conversation. While most blogs display just the number of comments, they show you the latest comment on that article.</li>
</ol>
<p><strong>2.</strong> <a href="http://themeshaper.com/" rel="nofollow">Themeshaper.com</a> &#8211; a WordPress-powered thinking machine disguised as a Blog, home of Thematic, the popular and free WordPress Theme Framework.</p>
<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/themeshaper.jpg" alt="themeshaper" title="themeshaper" width="480" height="477" class="aligncenter size-full wp-image-394" /></p>
<p>I really like the new Themeshaper redesign. As Ian said in <a href="http://themeshaper.com/themeshaper-redesigned-reloaded/">a blog post</a>, there are several reasons why this design works! This kind of complex landing page makes for a really good introduction and urges the user to go deeper into the website. </p>
<ol>
<li><strong>Featured product.</strong> This is the biggest thing on this page. It&#8217;s the first thing you see when you enter the website and you&#8217;re compelled to read about the product. There must be something good there, otherwise this wouldn&#8217;t be so big!</li>
<li><strong>The short description.</strong> Meant to introduce new users to the site it dose a good job attracting attention. The color difference make it stand alone and clear, even when there&#8217;s so much info around it</li>
<li><strong>The good, the bad and the ugly.</strong> Or more exactly &#8220;Must Read Ideas&#8221;, &#8220;Blog Design Tips&#8221; and &#8220;Recent Items From the Blog&#8221;. These are your introduction into the large article archive. From here you can navigate to different sections of the web-site and get your share of useful information. </li>
</ol>
<p>As you can see what I&#8217;m really interested is a different content design, a landing page that will help users better navigate the entire web-site. The three web-sites I&#8217;ve presented are just a few. If you are looking for more great ways to arrange your content I would suggest taking a good look over:</p>
<ul>
<li><a href="http://www.darrenhoyt.com/" rel="nofollow">darrenhoyt.com </a></li>
<li><a href="http://www.outlawdesignblog.com/" rel="nofollow">outlawdesignblog.com</a></li>
<li><a href="http://www.problogger.net/" rel="nofollow">problogger.net</a> &#8211; there is a lot of content here, but somehow it&#8217;s manageable&#8230; the way color is used makes this possible</li>
</ul>
<p>Now that I&#8217;ve done my homework is time to actually start arranging my content. I will come up with a wire frame shortly and hopefully you&#8217;ll be able to give me some feedback. </p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/08/05/working-on-the-blog-design/' rel='bookmark' title='Permanent Link: Working on the blog design'>Working on the blog design</a></li>
<li><a href='http://www.cozmoslabs.com/2008/08/11/10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='Permanent Link: 10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/04/28/content-design-what-makes-a-good-landing-page/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Add a search box to the thematic menu</title>
		<link>http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/</link>
		<comments>http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 23:53:46 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[search box]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=358</guid>
		<description><![CDATA[A search box in main menu is something a lot of themes have by design. Although this is not the case with the Thematic Theme Framework, it&#8217;s easy to customize it with a few lines of code. First thing we need to do is create a thematic child theme. This way we won&#8217;t make direct [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/' rel='bookmark' title='Permanent Link: Replacing the Thematic Menu with a DropDown List of Categories'>Replacing the Thematic Menu with a DropDown List of Categories</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!'><span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!</a></li>
<li><a href='http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A search box in main menu is something a lot of themes have by design. Although this is not the case with the <a href="http://themeshaper.com/thematic/">Thematic Theme Framework</a>, it&#8217;s easy to customize it with a few lines of code.</p>
<p>First thing we need to do is <a href="http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/">create a thematic child theme</a>. This way we won&#8217;t make direct changes to Thematic.</p>
<p>The search box will be displayed on the right of the menu, inside of the <em>#access</em> div. The way Thematic hooks and actions were constructed will first need to remove the <em>thematic_access()</em> action from the <em>thematic_header()</em> hook. If all this sounds a bit difficult fear not. All you have to do is add this code inside of <em>functions.php</em> file of your child theme (don&#8217;t forget the <em><&#63;php</em> opening tag and the <em>&#63;></em> ending tag).</p>
<pre class="brush: php;">
// Remove default Thematic actions
function remove_thematic_actions() {
    remove_action('thematic_header','thematic_access',9);
}
add_action('init','remove_thematic_actions');
</pre>
<p>If everything is working properly when you reload your WordPress installation the entire menu would have disappear! <strong>Now we can create our own menu WITH the search box on the right of it! </strong>Add this code at the end of your <em>functions.php</em>:</p>
<pre class="brush: php;">
// Create a custom access div with the menu and search box
function search_access() { ?&gt;
    	&lt;div id=&quot;access&quot;&gt;
    		&lt;div class=&quot;skip-link&quot;&gt;&lt;a href=&quot;#content&quot; title=&quot;&lt;?php _e('Skip navigation to the content', 'thematic'); ?&gt;&quot;&gt;&lt;?php _e('Skip to content', 'thematic'); ?&gt;&lt;/a&gt;&lt;/div&gt;
            &lt;?php wp_page_menu('sort_column=menu_order') ?&gt;

			&lt;div id=&quot;access-search&quot;&gt;
				&lt;form id=&quot;searchform&quot; method=&quot;get&quot; action=&quot;&lt;?php bloginfo('home') ?&gt;&quot;&gt;
					&lt;div&gt;
						&lt;input id=&quot;s&quot; name=&quot;s&quot; type=&quot;text&quot; value=&quot;&lt;?php echo wp_specialchars(stripslashes($_GET['s']), true) ?&gt;&quot; size=&quot;20&quot; tabindex=&quot;1&quot; /&gt;
						&lt;input id=&quot;searchsubmit&quot; name=&quot;searchsubmit&quot; type=&quot;submit&quot; value=&quot;&lt;?php _e('Search', 'thematic') ?&gt;&quot; tabindex=&quot;2&quot; /&gt;
					&lt;/div&gt;
				&lt;/form&gt;
			&lt;/div&gt;

        &lt;/div&gt;&lt;!-- #access --&gt;
&lt;?php }
add_action('thematic_header','search_access',9);
</pre>
<p>Reload your page and the search box will be there, but not where you expected it to be! We&#8217;ll need to add a bit of css styling to it. </p>
<p>Go ahead and open the <em>style.css</em> and at the end of it add this css code: </p>
<pre class="brush: css;">
#access-search{
	position:absolute;
	left:50%;
	width:260px;
	margin-left:170px;
	height:29px;
	border-top:1px solid #ccc;
	border-left:1px solid #ccc;
	border-right:1px solid #ccc;
	padding:2px 0 0 4px;
}
</pre>
<p>This is it! You now have successfully added a search box to the right of your thematic main menu! </p>
<div id="preview_download" style="text-align:center">
<a href="http://www.cozmoslabs.com/projects/wp/?theme=indepth" target="_blank"><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/preview.gif" alt="Preview of the finished search box"/></a></div>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/' rel='bookmark' title='Permanent Link: Replacing the Thematic Menu with a DropDown List of Categories'>Replacing the Thematic Menu with a DropDown List of Categories</a></li>
<li><a href='http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/' rel='bookmark' title='Permanent Link: <span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!'><span style="color:#7fae52">Green anyone?</span> Try Commune &#8211; Thematic Child Theme!</a></li>
<li><a href='http://www.cozmoslabs.com/2008/10/25/byty-free-child-theme-built-thematic/' rel='bookmark' title='Permanent Link: Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/04/15/add-a-search-box-to-the-thematic-menu/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Green anyone? Try Commune &#8211; Thematic Child Theme!</title>
		<link>http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/</link>
		<comments>http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 05:27:29 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[magazine theme]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=311</guid>
		<description><![CDATA[Simply put I have been lazy lately. I know this isn&#8217;t the best way to sell my self but a little bit of honesty hasn&#8217;t hurt anyone (or has it? ). So without further ado I here by present you Commune Child Theme based on Thematic! As far as I know it&#8217;s the first magazine [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/' rel='bookmark' title='Permanent Link: Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2009/05/04/commune-child-theme-update/' rel='bookmark' title='Permanent Link: Commune Child Theme &#8211; Update'>Commune Child Theme &#8211; Update</a></li>
<li><a href='http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/commune_thumb.jpg" alt="commune_thumb" title="commune_thumb" width="300" height="200" class="alignnone size-full wp-image-331" /></div>
<p>Simply put I have been lazy lately. I know this isn&#8217;t the best way to sell my self but a little bit of honesty hasn&#8217;t hurt anyone (or has it? ). So without further ado I here by present you <strong><em>Commune Child Theme</em></strong> based on <a href="http://themeshaper.com/thematic-for-wordpress/">Thematic!</a></p>
<p>As far as I know it&#8217;s the first magazine like Thematic child theme released for free!<br />
</br></p>
<div id="preview_download"><a href="http://cozmoslabs.com/projects/commune/" target="_blank"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/preview.gif" border="0" alt="preview thematic child theme" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=4" title="Version 0.4 downloaded 7491 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Commune Child Theme for Thematic Version 0.4" /></a>
</div>
<div id="showcase_blogs">
<h3>Is it a bird, is it a plane?<br/> Hardly! Just a Thematic Child Theme with a twist!</h3>
<p> There are many reasons why you should consider using the <strong>&#8220;Commune child theme&#8221;</strong> :</p>
<ul>
<li>It&#8217;s <span style="color:#7fae52">green</span></li>
<li>It&#8217;s a Thematic Child Theme &#8211; this being said it has all the features Thematic has including fully widget-ized with widget areas above and below the content—and even in-between. </li>
<li>Lets you <strong>upload your own logo / banner image through an admin panel</strong></li>
<li>Easy to <strong>add images to posts without having to use custom fields or without the need to crop your images!</strong></li>
<li>Easy to <strong>add default images to posts in certain categories </strong>- So if you don&#8217;t add an image to a certain post it will display the image assigned to the category it&#8217;s in!</li>
<li>It was designed to work with the <a href="http://wordpress.org/extend/plugins/tabbed-widgets/">Tabbed Widget Plugin</a> and <a href="http://wordpress.org/extend/plugins/wp-pagenavi/">WP-PageNavi plugin</a> (update &#8211; Tabbed widgets doesn&#8217;t currently work with WordPress 2.8)</li>
<li>The main menu displays all your categories and subcategories</li>
<li>Tested and works on all modern browsers: Firefox 3, IE7, Safari, Google Chrome</li>
</ul>
</div>
<p><span id="more-311"></span></p>
<div id="showcase_blogs" style="background:#caf8b2;">
In order to install it you have to download the <a href="http://themeshaper.com/thematic-for-wordpress/">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (Commune and Thematic) to your server in the themes folder AND THEN ACTIVATE the Commune theme.
</div>
<h2>A small guide</h2>
<p>There are basically three things to explain: adding your own logo, the Tabbed Widget and adding images to posts! </p>
<h3> Adding your own logo </h3>
<p><strong>Commune </strong>features an Options page that allows you to <strong>upload your own logo or banner image</strong>. You need to go to the WordPress admin panel and under &#8220;Apperance -> Child Theme Options&#8221;. </p>
<p>This is how the interface looks like:</p>
<div id="attachment_473" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/05/Untitled-2.jpg" alt="Child Theme Options Page - You now have the posibility to upload your header image from WordPress" title="Untitled-2" width="600" height="354" class="size-full wp-image-473" /><p class="wp-caption-text">Child Theme Options Page - You now have the posibility to upload your header image from WordPress</p></div>
<h3> The Tabbed Widget &#8211; update: it currently doesn&#8217;t work with WordPress 2.8</h3>
<p>To use the functionality of the Tabbed Widget Plugin you first need to <a href="http://wordpress.org/extend/plugins/tabbed-widgets/">download and install it</a>! </p>
<p>Once that&#8217;s out of the way select <em>Appearance &#8211;> Tabbed Widgets</em>. The interface gives you the possibility to create 8 Tabbed Widget areas, but in out case we&#8217;ll use just one. In <em>Tabbed Widget No. 1</em> select the widgets you want displayed. For the demo of the child theme Commune I used:</p>
<ul>
<li>Recent Posts</li>
<li>Recent Comments</li>
<li>Tag Clouds</li>
<li>Search</li>
</ul>
<p>Make sure you give a title to each individual widget or your users will only see 4 tabs.</p>
<p>Other settings you need to take into consideration are: </p>
<ul>
<li><strong>deselect</strong> <em>show title</em> (it&#8217;s deselected by default)</li>
<li><strong>select</strong> <em>Style as: tabs</em> </li>
</ul>
<p>I&#8217;ve also uploaded an image with the settings for the <em>Tabbed Widget Nr.1</em>.</p>
<p><a href="http://www.cozmoslabs.com/wp-content/uploads/2009/04/tw-printscr.png"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/04/tw-printscr-300x204.png" alt="tw-printscr" title="tw-printscr" width="300" height="204" class="aligncenter size-medium wp-image-326" /></a></p>
<p>The next and last step is to head over to <em>Appearance -> Widgets</em>. Select the <em>Primary Aside</em> Widget, click <em>Show</em> and add <em>Tabbed Widget 1</em> to it and save changes. After this you should have your Tabbed Widget displayed on the front-end of your blog in all it&#8217;s glory!  </p>
<h3>Category and post images</h3>
<p>Another key element of this theme is the way pictures are used and displayed. For this the <a href="http://www.wp-fun.co.uk/2009/01/10/easy-peasy-images-suggestion-roundup/">Easy Peasy Images</a> code by Andrew Rickmann was integrated into the theme code.</p>
<div id="showcase_blogs">
So for you to add a image to a post all you have to do is upload a nice looking image and that&#8217;s all! You don&#8217;t even have to include it in your content!
</div>
<p>What this does is to get a list of all the images attached to a post. It then finds the first image with a sort order of 0 and displays it. By default all images have a sort order of zero unless you choose to reorder them. If you don’t make any changes then it will find the first image. If you reorder them using drag and drop the first image in the list will have an order of 1 and you would need to change it to 0.</p>
<h4>Default images by category</h4>
<p>The theme will add a list of categories to the <em>Media -> Library</em> so that you can assign images to one or more categories. If the function doesn’t find a post attachment with a sort order of 0 then it will default to the image attached to the category the post is in. <em>Note:</em> it will use the first category image it finds.</p>
<p><em>For more information on the usage you can see <a href="http://www.wp-fun.co.uk/2009/01/10/easy-peasy-images-suggestion-roundup/">a video-tutorial </a>over at Andrew Rickmann&#8217;s web-site, <a href="http://www.wp-fun.co.uk">www.wp-fun.co.uk</a></em></p>
<p><strong>As always if you have any questions or if you find bugs please let me know! I appreciate every input! </strong></p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/10/29/installing-wordpress-child-themes-customizing/' rel='bookmark' title='Permanent Link: Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2009/05/04/commune-child-theme-update/' rel='bookmark' title='Permanent Link: Commune Child Theme &#8211; Update'>Commune Child Theme &#8211; Update</a></li>
<li><a href='http://www.cozmoslabs.com/2009/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/04/07/green-anyone-try-commune-thematic-child-theme/feed/</wfw:commentRss>
		<slash:comments>253</slash:comments>
		</item>
		<item>
		<title>Multilingual solutions for a wordpress installation</title>
		<link>http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/</link>
		<comments>http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 13:51:33 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[multilanguage]]></category>
		<category><![CDATA[multilingual]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[translate]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=228</guid>
		<description><![CDATA[Photo by mykreeve From my point of view the internet has became a really crowded place. No more &#8220;build it and they will come&#8221; mentality. Today&#8217;s internet business have started to compete for every single user and the need to address all potential users is more important then ever. This is where multilingual web-sites and [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/10/08/multilingual-wordpress-wpml-review/' rel='bookmark' title='Permanent Link: Multilingual WordPress &#8211; WPML Plugin Review'>Multilingual WordPress &#8211; WPML Plugin Review</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/16/wordpress-as-a-social-platform/' rel='bookmark' title='Permanent Link: WordPress as a social platform'>WordPress as a social platform</a></li>
<li><a href='http://www.cozmoslabs.com/2008/09/14/use-wordpress-as-a-cms-with-thematic-part2/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic &#8211; Part2'>Use WordPress as a CMS with Thematic &#8211; Part2</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img class="alignnone size-medium wp-image-114" title="babel" src="http://www.cozmoslabs.com/wp-content/uploads/2009/01/babel.jpg" alt="" width="300" height="225" /></p>
<p>Photo by <a onclick="javascript:pageTracker._trackPageview ('/outbound/www.flickr.com');" href="http://www.flickr.com/photos/mykreeve/102163685/">mykreeve</a></div>
<p>From my point of view the internet has became a really crowded place. No more &#8220;build it and they will come&#8221; mentality. Today&#8217;s internet business have started to compete for every single user and the need to address all potential users is more important then ever.</p>
<p>This is where multilingual web-sites and web-applications come into place. Limiting your business to a single language or expanding it to target users from all over the world could mean the difference between failure and success.</p>
<p>The big players on the internet seem to get this. Google, Microsoft, Yahoo and many more offer they services in numerous languages. The introduction of tools like <a href="http://www.google.com/language_tools">Google Language Tools</a>, <a href="http://babelfish.yahoo.com/">Yahoo! Babel Fish</a> and similar ones have opened the multilingual doors for the masses. You can now view an entire web-page in your native language at the click of the mouse.</p>
<p>However things are not quite there! Even though the automated translation of a web-site is acceptable for getting a general idea of the content, mistakes are common and things <em>can </em>and <em>are</em> misinterpreted between languages.</p>
<p><span id="more-228"></span></p>
<h3>The theory behind multilingual web-design</h3>
<p>Implementing a static HTML web-site in multiple languages is quite simple. Just duplicate the content in a <em>/lang1/</em> folder and translate the content. For web-sites that don&#8217;t need to be updated very often this a rather good solution, giving you a lot of flexibility. This type of multilingual implementation has been around from the birth of the internet.</p>
<p>With the appearance of dynamic web-site things started to get complicated. Content became separated from HTML to some extent and databases transformed the way we store data. To translate every piece of information in a modern web-site, things just had to be implemented differently. The old way of copy and paste in a different folder is no longer an option. Extra work needed to manage two, three or even more dynamic systems (one for each language) just isn&#8217;t justified. As a result complex implementations of the solution transformed the way we think about multilingual web-sites.</p>
<h3>Multilingual WordPress</h3>
<p>There are quite a few options out there for WordPress users to translate the content of their blogs or web-pages. I&#8217;ll first make a list of the different implementations and them try and talk more about each one in particular.</p>
<ol>
<li><strong>The &#8220;Two-Tree&#8221; concept</strong> ( we use &#8220;language&#8221; categories )</li>
<li><strong>Automated translation</strong> (using google languages or babelfish)</li>
<li><strong>Manual translation</strong> using plugins ( I could only find one really good plugin that can do that so we&#8217;ll look into that)</li>
<li><strong>Semi-automated payed translation</strong>. (this is rather an ingenious concept and I believe the people who created the service will have a lot to gain from it)</li>
</ol>
<p>All these solutions have both advantages and disadvantages. From my experience a multilingual web-site is an added complication with absolutely no easy way out. There are just so many things that could go wrong: encoding, special characters, the content to maintain increases with every extra lanuage, not everything can be easily translated (anything other then the post body and title needs extra steps to translate), communication between the site admin and the translators introduces a lot of undesired lag into the project and let&#8217;s not forget the big bill from a professional translator.</p>
<p>But as I said in the beginning all this effort could be well worth. Even if you are promoting a service or product that is difficult to ship / commercialize / support abroad the extra traffic alone could be worth a lot. A few trackbacks could significantly improve your google ranking in search that would in turn bring you even more traffic. The way business is done on the internet is that of a Three Way Market and every bit of extra traffic helps.</p>
<h4>1. The &#8220;Two-Tree&#8221; concept</h4>
<p>This is the &#8220;old&#8221; way to do it. This does not imply &#8220;old-fashioned&#8221; as if this is an inferior way to the new possibility! It just fits another purpose.</p>
<p>Both <em>lang1</em> and <em>lang2</em> web-sites are part of the same wordpress installation.</p>
<p>First you would need to create two pages: <em>en</em> and <em>ro</em>. Then create the rest of the pages for every other page you want. Our <em>en</em> page will be the home page for English and <em>ro</em> will be the home page for Romanian. When we create a new page, for example the <em>Contact</em> page, will select the page parent to be <em>en</em>. Repeat this for every page and language and by no time you&#8217;ll have a proper multilingual structure!</p>
<p>The listing in the edit pages tab inside wordpress would look something like this:</p>
<p><a href="http://www.cozmoslabs.com/wp-content/uploads/2009/01/edit_pages.jpg"><img class="aligncenter size-medium wp-image-242" title="edit_pages" src="http://www.cozmoslabs.com/wp-content/uploads/2009/01/edit_pages-273x300.jpg" alt="edit_pages" width="273" height="300" /></a></p>
<p>Next we&#8217;ll implement a similar structure for our categories. Two &#8220;en&#8221; and &#8220;ro&#8221; categories will hold out translated posts. A custom made theme would be required to display the right menus and content for each language in particular.</p>
<p>This might not be a really efficient way to translate one&#8217;s web-blog but it dosen&#8217;t require any plugins. Is quite SEO friendly but unless you make serious changes to the way your theme manages the menus it won&#8217;t be user friendly.</p>
<h3>2. <strong>Automated translation</strong> (using google languages or babelfish)</h3>
<p>This is one type of translation that is just great for blogs. It&#8217;s really simple to use, free, fast to implement (don&#8217;t have to send anything to a translator). Chances are your non English users will use these services directly from Google or Yahoo so this saves them quite a few clicks which is always a good thing.</p>
<p>The obvious disadvantage is the quality of the translation. By no means this should be used for a respectable business. While one can understand the meaning and general feeling of the article, even the smallest misspell in the initial language will render this service useless, there are grammar mistakes and the words are not always translated in their intended meaning (based on context).</p>
<p>There are quite a few plugins available for wordpress that automatically translate your content but the one I used and recommend is <a href="http://www.nothing2hide.net/wp-plugins/wordpress-global-translator-plugin/">Global Translator</a>.</p>
<p>With <em>Global Translator</em> plugin for WordPress one can:</p>
<ul>
<li>translate the blog in 34 languages</li>
<li>provide the translations by using Google Translation Engine, Babel Fish, Promt or FreeTranslations.com</li>
<li>use the permalinks by adding the language code at the beginning of all your URI. For example the english version on <em>www.domain.com/mycategory/mypost</em> will be automatically transformed in <em>www.domain.com/en/mycategory/mypost</em></li>
<li>use the built in Fast Caching System. Drastically reduction of the risk of temporarily ban from translation engines.</li>
<li>you can easily customize the appearance of the translation bar</li>
</ul>
<p>As you can see you can do a lot with <em>Global Translator</em>. It also translates the front-end WordPress interface (words like Posts, Pages, Read More, etc). Again my recommendation is to use this plugin for your blog if you are trying to reach a larger audience but try and don&#8217;t use it for large web-sites unless you know what you are doing (due to the quality of the translation).</p>
<h3>3. <strong>Manual translation</strong> using plugins</h3>
<p>Translating your wordpress installation to the last word could be a really hard thing to do, especially for non-technical wordpress users. Although a blog has a really straight forward structure and dosen&#8217;t pose so many problems, developing a multilingual web-site using wordpress is a different story all together. A web-site can have different widgets on different pages, might use plugins that have an front-end interface that is not translatable and will need to have at least a contact form that will be available in several languages.</p>
<p><strong>Solutions?</strong> One thing is certain: it&#8217;s not impossible <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Although it might be somewhat unintuitive at first one can create a fully translated web-site (for a blog this is quite easy to do).</p>
<p>By unintuitive I mean users might have to use <em>&lt;!&#8211;:en&#8211;&gt;&lt;!&#8211;:&#8211;&gt;</em> tags for widget translation and even template changes in order to get the entire web-site translated.</p>
<p>However there are good new. The latest version of the <a href="http://www.qianqin.de/qtranslate/">qTranslate plugin</a> has a really easy to use interface when translating post and pages. They offer One-Click-Switching between the languages. One can change the language as easy as switching between Visual and HTML editors!</p>
<p>Here are a few screen-shots of the plugin:<br />
<a rel="attachment wp-att-248" href="http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/screenshot-11/"><img class="aligncenter size-medium wp-image-248" title="screenshot-qTranslate" src="http://www.cozmoslabs.com/wp-content/uploads/2009/01/screenshot-11-300x258.png" alt="screenshot-qTranslate" width="300" height="258" /></a><br />
<a rel="attachment wp-att-249" href="http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/screenshot-21/"><img class="aligncenter size-medium wp-image-249" title="screenshot-qTranslate" src="http://www.cozmoslabs.com/wp-content/uploads/2009/01/screenshot-21-300x281.png" alt="screenshot-qTranslate" width="300" height="281" /></a></p>
<p>Other options that make qTranslate such a great plugin includes:</p>
<ul>
<li>No more for adding special characters or strings to separate your multilingual texts! &#8211; qTranslate will handle them almost everywhere for you</li>
<li>No need to edit the plugin file to get your language working! &#8211; Use the comfortable and intuitive Configuration Page</li>
<li>Comes with many languages already built in! &#8211; English, German, Simplified Chinese and a lot of others</li>
<li>Add your language in seconds! &#8211; Thanks to the simplistic Configuration Page</li>
<li>Multilingual dates out of the box &#8211; Translates dates and time for you.</li>
<li>Improved Installation! &#8211; <strong>No need to manually search and upload Gettext Databases/.mo files anymore</strong></li>
<li>Multilingual Text in Templates without the need to change Gettext Databases/.mo files &#8211; Use Language Tags with Gettext!</li>
<li><strong>Choose one of 3 Modes to make your URLs pretty and SEO-friendly. &#8211; The everywhere compatible <code>?lang=en</code>, simple and beautiful <code>/en/foo/</code> or nice and neat <code>en.yoursite.com</code></strong></li>
<li>One language per URL &#8211; Users and SEO will thank you for not mixing content.</li>
</ul>
<p>From all these options a few are really useful, particularly the SEO-friendly URLs and the automatic download of Gettext Database/.mo files that you should have otherwise downloaded then and then uploaded them to your WordPress installation.</p>
<p>There is a really useful <a href="http://www.qianqin.de/qtranslate/forum/">forum</a> available in case you need help with the plugin or have suggestions. Qian Qin ( the author ) responds fast to enquirers and there&#8217;s quite a big community around it.</p>
<h3>4.<strong>Semi-automated payed translation</strong></h3>
<p>This is a intriguing idea. You install the <a href="http://design.icanlocalize.com/wordpress-translation/">Icanlocalize plugin</a> and then:</p>
<ul>
<li>Their system fetches posts and pages that require translation (new or updated).</li>
<li>Professional translators do the translation. The translation retains all formating, embedded objects, links, etc.</li>
<li>Translation is saved on WordPress. It can be saved on the original blog or on an independent blog.</li>
<li>Comments are moderated in your own language. You can reply in your language and they&#8217;ll translate it instantly.</li>
</ul>
<p>Sound good right? But wait there&#8217;s even more! You can even have a <strong>Multi-lingual contact form</strong>, where your visitors can contact you in their language and you can respond in your language.</p>
<p>If you have the cash to invest in a ongoing translation of your articles in different languages this plugin is for you. I haven&#8217;t personally tested their system and don&#8217;t know what is the quality of the translation (they are using payed translators so by all means it will be incomparable better then a automated translation).</p>
<p>The pricing is&#8230; well&#8230; compared to Romanian translators, expensive. They have a <a href="http://www.icanlocalize.com/web_messages/new">quote for text translation</a> so you can paste your text and receive a instant price. For a word count of 470 I received a cost to translate per language of 32.9 USD. This means that for a larger article you could end up paying over 100$ per/language/article. If this is a good price for you then this service is the way to go!</p>
<h3>Conclusions</h3>
<p>Multilingual web-sites are the least an annoyance and can transform in a nightmare if you try to rush things up ( I think I lost an entire day on a past project because two persons worked on it with two different editors and different encoding and every special character was displayed as question mark or a square! ).</p>
<p>Luckily open source has evolved quite a lot in the past years and now we can make use of out of the box solutions that really make your life easy. Even if more powerful CMS&#8217;s like Joomla! or Drupal have advanced multilingual solutions, WordPress is not far behind and I hope this article can bring the reader a bit closer to solving it&#8217;s multilingual problems.</p>
<div id="preview_download">Also don&#8217;t forget if you ever need a localized theme for your project <a href="http://themeshaper.com/thematic-for-wordpress/">Thematic</a> is that theme (currently translated in 7 languages)!</div>
<p><code>Disclaimer: I have no affiliation with iCanLocalize.com and do not receive commissions on sales.</code></p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2009/10/08/multilingual-wordpress-wpml-review/' rel='bookmark' title='Permanent Link: Multilingual WordPress &#8211; WPML Plugin Review'>Multilingual WordPress &#8211; WPML Plugin Review</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/16/wordpress-as-a-social-platform/' rel='bookmark' title='Permanent Link: WordPress as a social platform'>WordPress as a social platform</a></li>
<li><a href='http://www.cozmoslabs.com/2008/09/14/use-wordpress-as-a-cms-with-thematic-part2/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic &#8211; Part2'>Use WordPress as a CMS with Thematic &#8211; Part2</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/01/22/multilanguage-solutions-wordpress-instalation/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Replacing the Thematic Menu with a DropDown List of Categories</title>
		<link>http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/</link>
		<comments>http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 03:27:54 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[menu dropdown]]></category>
		<category><![CDATA[Thematic]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=202</guid>
		<description><![CDATA[There comes a time when you might want to use the Thematic Theme for other things then just a blog, like a magazine or a portal and it might be best suited to have the categories of your blog on top instead of your static pages. After all, you&#8217;ll probably have two static pages (about [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic Theme- Part1'>Use WordPress as a CMS with Thematic Theme- Part1</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/' rel='bookmark' title='Permanent Link: Add &#8220;Featured Posts&#8221; to your Thematic child theme'>Add &#8220;Featured Posts&#8221; to your Thematic child theme</a></li>
<li><a href='http://www.cozmoslabs.com/2009/03/20/quickly-add-a-category-dropdown-to-thematic-09/' rel='bookmark' title='Permanent Link: Quickly add a Category DropDown to Thematic 0.9'>Quickly add a Category DropDown to Thematic 0.9</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage"><img src="http://www.cozmoslabs.com/wp-content/uploads/2008/12/catdrop.jpg" alt="Thematic Menu DropDown" title="Thematic Menu DropDown" width="300" height="200" class="alignnone size-full wp-image-208" /></div>
<p>There comes a time when you might want to use the <a href="http://themeshaper.com/thematic-for-wordpress/">Thematic Theme</a> for other things then just a blog, like a magazine or a portal and it might be best suited to have the categories of your blog on top instead of your static pages. After all, you&#8217;ll probably have two static pages (about and contact) and several categories and subcategories.</p>
<p>I&#8217;ve seen this request twice in the <a href="http://themeshaper.com/forums/">forums</a> over at ThemeShaper and I&#8217;ll now try and answer it. </p>
<p><strong>I&#8217;ve created a the <em>CatDrop Child Theme</em> that dose just that: transforms Thematic&#8217;s menu into a magazine style category based one!</strong></p>
<div id="preview_download"><a href="http://www.cozmoslabs.com/projects/wp/?theme=catdrop" target="_blank"><img src="http://www.cozmoslabs.com/wp-content/uploads/2008/12/preview.gif" border="0" alt="preview child theme" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="downloadlink dlimg" href="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/download.php?id=2" title="Version 0.1 downloaded 1600 times" ><img src="http://www.cozmoslabs.com/wp-content/plugins/download-monitor/img/download.gif" alt="Download Category DropDown for thematic Version 0.1" /></a></div>
<p><span id="more-202"></span></p>
<div id="showcase_blogs" style="background:#caf8b2;">
In order to install it you have to download the <a href="http://themeshaper.com/thematic-for-wordpress/" onclick="javascript:pageTracker._trackPageview ('/outbound/themeshaper.com');">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (CatDrop and Thematic) to your server in the themes folder AND THEN ACTIVATE the CatDrop theme.
</div>
<p>Assuming you&#8217;ve already downloaded the latest version of<a href="http://wordpress.org/extend/themes/thematic">Thematic</a> (at the time of the writing it was version 0.7) and uploaded it inside your <em>wp-content/themes</em> directory, we can start the tutorial.</p>
<p>We won&#8217;t modify Thematic directly, instead we&#8217;ll create a <a href="http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/">Child theme</a> and add this functionality to it. To do just that create a directory named <em>catdrop</em> inside your themes folder and two files: <em>functions.php</em> and <em>style.css</em>.</p>
<p>We&#8217;ll start by telling WordPress that our theme is a ChildTheme of thematic add this code into <em>style.css</em>.</p>
<pre class="brush: css;">
/*
Theme Name: CatDrop
Theme URI: http://cozmoslabs.com/
Description: Built on Thematic Theme&lt;/a&gt;
Author: Cristi Antohe
Author URI: http://cozmoslabs.com/
Template: thematic
Version: 0.1
.
This work, like WordPress, is released under GNU General Public License, version 2 (GPL).

http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

.
*/

/* Reset browser defaults */
@import url('../thematic/library/styles/reset.css');

/* Apply basic typography styles */
@import url('../thematic/library/styles/typography.css');

/* Apply a basic layout */
@import url('../thematic/library/layouts/2c-r-fixed.css');

/* Apply basic image styles */
@import url('../thematic/library/styles/images.css');

/* Apply default theme styles and colors */
@import url('../thematic/library/styles/default.css');

/* Prepare theme for plugins */
@import url('../thematic/library/styles/plugins.css');

/************************************************ Style for drop-down menu */
#header{
	z-index:99; /* IE7 z-index bug */
}
#access{
	overflow:visible;
	position:static;
	float:none;
	height:37px;
}
#menu{
	position:static;
	width: 940px;
	margin-top: 0pt;
	margin-right: auto;
	margin-bottom: 0pt;
	margin-left: auto;

	padding-top: 7px;
	padding-right: 0pt;
	padding-bottom: 8px;
	padding-left: 0pt;
	overflow-x: visible;
	overflow-y: visible;
	overflow:visible;
}
#menu ul{
	padding:0;
	margin:0;
}
#menu ul li ul{

}
#menu li{
	margin:0;
	padding:0;
}
#menu li a{
	text-align:center;
	margin:0 0px 0 0;
	width:11em;
	padding:5px;
	border-left:1px solid #6DA5D6;
}
#menu li li li a{
	background:#B5D1EA;
}
#main{
	clear:both;
}
</pre>
<p>I&#8217;ve added some stilling to the <em>#access</em> and <em>#menu</em> divs or the theme would look odd.</p>
<p>Next we need to create our <em>functions.php</em> file. Add the following code to it:</p>
<pre class="brush: php;">
&lt;?php
/* Create unordered lists with our categories */
function categ_menu() {
?&gt;
&lt;div id=&quot;menu&quot;&gt;
&lt;ul class=&quot;sf-menu&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/&quot; class=&quot;on&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
 	&lt;?php wp_list_categories('orderby=name&amp;amp;amp;exlude=181&amp;amp;amp;title_li=');
 	$this_category = get_category($cat);
 	if (get_category_children($this_category-&gt;cat_ID) != &quot;&quot;) {
 		echo &quot;&lt;ul&gt;&quot;;
			wp_list_categories('orderby=id&amp;amp;amp;show_count=0&amp;amp;amp;title_li=&amp;amp;amp;use_desc_for_title=1&amp;amp;amp;child_of='.$this_category-&gt;cat_ID);
 		echo &quot;&lt;/ul&gt;&quot;;
 	}
	?&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;?php
}
/* Add the needed style and javascript for the dropdown */
function add_to_head(){
?&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/superfish/superfish.css&quot; media=&quot;screen&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/superfish/hoverIntent.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/superfish/superfish.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
// initialise plugins
	jQuery(function(){
		jQuery('ul.sf-menu').superfish({
            delay:       300,                            // one second delay on mouseout
            speed:       'fast',                         // faster animation speed
            autoArrows:  false,                          // disable generation of arrow mark-up
            dropShadows: true                            // disable drop shadows
		});
	});
&lt;/script&gt;
&lt;?php
}
add_action('wp_head', 'add_to_head');
add_action('wp_page_menu', 'categ_menu');
?&gt;
</pre>
<p>The <em>categ_menu</em> function is the one that generates the list of categories and the <em>add_to_head</em> one is adding the needed css and javascript files to out Child Theme.(you can get the files from the Child theme download). This could be easily modified to support drop-down pages for the menu but that one some other time!</p>
<p><strong>And this is the way you make Thematic similar to a magazine style WordPress theme!</strong></p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/09/07/use-wordpress-as-a-cms-with-thematic-part1/' rel='bookmark' title='Permanent Link: Use WordPress as a CMS with Thematic Theme- Part1'>Use WordPress as a CMS with Thematic Theme- Part1</a></li>
<li><a href='http://www.cozmoslabs.com/2009/06/26/thematic-featured-posts/' rel='bookmark' title='Permanent Link: Add &#8220;Featured Posts&#8221; to your Thematic child theme'>Add &#8220;Featured Posts&#8221; to your Thematic child theme</a></li>
<li><a href='http://www.cozmoslabs.com/2009/03/20/quickly-add-a-category-dropdown-to-thematic-09/' rel='bookmark' title='Permanent Link: Quickly add a Category DropDown to Thematic 0.9'>Quickly add a Category DropDown to Thematic 0.9</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2008/12/17/replacing-the-thematic-menu-with-a-dropdown-list-of-categories/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 145/359 queries in 0.460 seconds using disk

Served from: www.cozmoslabs.com @ 2010-07-31 02:24:13 -->