<?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; Cristian</title>
	<atom:link href="http://www.cozmoslabs.com/author/admin/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>wp_nav_menu shortcode</title>
		<link>http://www.cozmoslabs.com/2010/06/28/wp_nav_menu-shortcode/</link>
		<comments>http://www.cozmoslabs.com/2010/06/28/wp_nav_menu-shortcode/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 14:42:18 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[shortcode]]></category>
		<category><![CDATA[wp_nav_menu]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1170</guid>
		<description><![CDATA[Along with WordPress 3.0 we now have access to the really useful wp_nav_menu functionality. We can now create our own menus without resulting to several plugins or tricks. Another cool thing we can do with this new menu is build the sitemap. I was in need the other day of a plugin that would generate [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Along with WordPress 3.0 we now have access to the really useful <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">wp_nav_menu</a> functionality. We can now create our own menus without resulting to several plugins or tricks. </p>
<p>Another cool thing we can do with this new menu is build the sitemap. I was in need the other day of a plugin that would generate a sitemap page (something like an archive page). Not an xml sitemap, just a standard page from where the visitors of the site could navigate more easily. The best solution appeared to be an <strong>WordPress menu shortcode</strong>.</p>
<p>Since I couldn&#8217;t find something like this I realized that I could use the <strong>wp_nav_menu</strong> function and built a shortcode to insert it into my page. </p>
<p><span id="more-1170"></span></p>
<h3>wp_nav_menu shortcode</h3>
<p>To install the shortcode just place this code inside functions.php file of your theme.</p>

<div class="wp_codebox"><table><tr id="p11702"><td class="code" id="p1170code2"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Function that will return our Wordpress menu</span>
<span style="color: #000000; font-weight: bold;">function</span> list_menu<span style="color: #009900;">&#40;</span><span style="color: #000088;">$atts</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<a href="http://www.php.net/extract"><span style="color: #990000;">extract</span></a><span style="color: #009900;">&#40;</span>shortcode_atts<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;">'menu'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'container'</span>       <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'div'</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'container_class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'container_id'</span>    <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'menu_class'</span>      <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu'</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'menu_id'</span>         <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'echo'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'fallback_cb'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'wp_page_menu'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'before'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'after'</span>           <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'link_before'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'link_after'</span>      <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'depth'</span>           <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'walker'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'theme_location'</span>  <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
		<span style="color: #000088;">$atts</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
	<span style="color: #b1b100;">return</span> wp_nav_menu<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;">'menu'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$menu</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'container'</span>       <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$container</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'container_class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$container_class</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'container_id'</span>    <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$container_id</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'menu_class'</span>      <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$menu_class</span><span style="color: #339933;">,</span> 
		<span style="color: #0000ff;">'menu_id'</span>         <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$menu_id</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'echo'</span>            <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'fallback_cb'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$fallback_cb</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'before'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$before</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'after'</span>           <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$after</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'link_before'</span>     <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$link_before</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'link_after'</span>      <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$link_after</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'depth'</span>           <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$depth</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'walker'</span>          <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$walker</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'theme_location'</span>  <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$theme_location</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: #666666; font-style: italic;">//Create the shortcode</span>
add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;listmenu&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;list_menu&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>To use the shortcode just place <code>[listmenu menu=Sitemap]</code> into your post and that&#8217;s it (replace Sitemap with the id, slug or name of the menu you want to list.)</p>
<p>You can also use all the variables that come with the new wp_nav_menu function, like menu_class, or container so you can customize your menu really easy. Just separate the attributes by space like so: <br/> <code>[listmenu menu=Sitemap menu_class=sitemap_menu]</code></p>
<h3>Conclusions</h3>
<p>This is really useful for client sites, where you want to make it easy edit and modify the site without braking the html. We could have just manually created the sitemap, but this is a lot nicer. Another way you could use this shortcode would be to create sub-menus on certain pages only. </p>
<p><strong>If you find use for this shortcode in an interesting way don&#8217;t hesitate to share it in the comments.</strong></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2010/06/28/wp_nav_menu-shortcode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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 144 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="p101213"><td class="code" id="p1012code13"><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="p101214"><td class="code" id="p1012code14"><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="p101215"><td class="code" id="p1012code15"><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="p101216"><td class="code" id="p1012code16"><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="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: #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="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: #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="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: #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="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: #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="p101221"><td class="code" id="p1012code21"><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="p101222"><td class="code" id="p1012code22"><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>Thematic Tabbed Widgets</title>
		<link>http://www.cozmoslabs.com/2010/05/02/thematic-tabbed-widgets/</link>
		<comments>http://www.cozmoslabs.com/2010/05/02/thematic-tabbed-widgets/#comments</comments>
		<pubDate>Sun, 02 May 2010 19:19:26 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tabbed widgets]]></category>
		<category><![CDATA[thematic tabed widgets]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1014</guid>
		<description><![CDATA[Tabbed widgets for WordPress themes have been around since WordPress it self. They are a perfect way to save on vertical space and add a bit of interaction with the users. There are two classic ways of implementing the tabbed widgets. Creating a hard coded widget and using the jQuery Cycle plugin. This means you [...]


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/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</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>
</ol>]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1031" class="wp-caption alignright" style="width: 310px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/05/tabs1.png" alt="" title="tabs" width="300" height="126" class="size-full wp-image-1031" /><p class="wp-caption-text">Tabbed widget areas for Thematic</p></div><br />
Tabbed widgets for WordPress themes have been around since WordPress it self. They are a perfect way to save on vertical space and add a bit of interaction with the users. </p>
<p>There are two classic ways of implementing the tabbed widgets. </p>
<ul>
<li>Creating a hard coded widget and using the jQuery Cycle plugin. This means you can&#8217;t easily modify the content of the tabs unless you open the widget file.</li>
<li>Using a tabbed widget plugin. While this is ok for some users it just ads a lot extra code that doesn&#8217;t justify the end.</li>
</ul>
<p>Luckily there is a optimized way of doing things. Write a bit of javascript that converts any default thematic widget area into <strong>a tabbed widget area</strong>. The title of the widgets placed in you widget area will automatically become the widget tabs. </p>
<p><span id="more-1014"></span></p>
<h3>The jQuery Tabbed Widgets Plugin</h3>
<p>This piece of code comes from a friend of mine, <a href="http://twitter.com/dturton">David Turton</a>. It was initially written for a different html structure, so that means the code I&#8217;ll post here will be easily modified to support any WordPress widget areas and transform them into a tabbed widget area.</p>

<div class="wp_codebox"><table><tr id="p101427"><td class="code" id="p1014code27"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">dttabs</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> $.<span style="color: #660066;">extend</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			widgetid <span style="color: #339933;">:</span> <span style="color: #3366CC;">'#secondary'</span><span style="color: #339933;">,</span>
			fade <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
			tabTitleReference <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
			interval <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
			startTab <span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>
			tabContainerName <span style="color: #339933;">:</span> <span style="color: #3366CC;">'tab-items'</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>			
&nbsp;
			<span style="color: #003366; font-weight: bold;">var</span> $this <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				divCount <span style="color: #339933;">=</span> $this.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #339933;">,</span>
				tabContainer <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;ul id=&quot;'</span> <span style="color: #339933;">+</span> options.<span style="color: #660066;">tabContainerName</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
				$this
					.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li:not(:nth-child('</span> <span style="color: #339933;">+</span> options.<span style="color: #660066;">startTab</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'))'</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">end</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						$this.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hovered'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						$this.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hovered'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>						
&nbsp;
				<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;=</span> divCount<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> options.<span style="color: #660066;">tabTitleReference</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						<span style="color: #003366; font-weight: bold;">var</span> heading <span style="color: #339933;">=</span> $this
										.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li:nth-child('</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">')'</span><span style="color: #009900;">&#41;</span>
										.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span>options.<span style="color: #660066;">tabTitleReference</span><span style="color: #009900;">&#41;</span>
										.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':first'</span><span style="color: #009900;">&#41;</span>
										.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
						<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> heading <span style="color: #339933;">!==</span> <span style="color: #3366CC;">''</span> <span style="color: #009900;">&#41;</span> tabContainer <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;tab'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; rel=&quot;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> heading <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
						<span style="color: #000066; font-weight: bold;">else</span> tabContainer <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;tab'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; rel=&quot;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
					<span style="color: #000066; font-weight: bold;">else</span> tabContainer <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;tab'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot; rel=&quot;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> i <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
				tabContainer <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;/ul&gt;'</span><span style="color: #339933;">;</span>
				$<span style="color: #009900;">&#40;</span>options.<span style="color: #660066;">widgetid</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prepend</span><span style="color: #009900;">&#40;</span>tabContainer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #003366; font-weight: bold;">var</span> $container <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#'</span> <span style="color: #339933;">+</span> options.<span style="color: #660066;">tabContainerName</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				$container
					.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li:nth-child('</span> <span style="color: #339933;">+</span> options.<span style="color: #660066;">startTab</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">')'</span><span style="color: #009900;">&#41;</span>
						.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'tab-selected'</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">end</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
					.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span>
						.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
							<span style="color: #003366; font-weight: bold;">var</span> $a <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
							<span style="color: #003366; font-weight: bold;">var</span> num <span style="color: #339933;">=</span> $a.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
							<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> $this
									.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">eq</span><span style="color: #009900;">&#40;</span>num <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #000066; font-weight: bold;">is</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':visible'</span><span style="color: #009900;">&#41;</span>
							<span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// user is already on selected tab</span>
&nbsp;
							$container
								.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li.tab-selected'</span><span style="color: #009900;">&#41;</span>
								.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'tab-selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
							$a.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'tab-selected'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
							<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> options.<span style="color: #660066;">fade</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
								$this
									.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">eq</span><span style="color: #009900;">&#40;</span>num <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span>options.<span style="color: #660066;">fade</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
							<span style="color: #009900;">&#125;</span>
&nbsp;
							<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span> 
								$this
									.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">eq</span><span style="color: #009900;">&#40;</span>num <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
									.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
							<span style="color: #009900;">&#125;</span>
&nbsp;
							<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
						<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
				<span style="color: #006600; font-style: italic;">// auto change tabs				</span>
				<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> options.<span style="color: #660066;">interval</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> options.<span style="color: #660066;">startTab</span><span style="color: #339933;">;</span>
&nbsp;
					setInterval<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
						<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>$this.<span style="color: #660066;">hasClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hovered'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
							$container
								.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span>
								.<span style="color: #660066;">eq</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span>
								.<span style="color: #660066;">trigger</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
							i<span style="color: #339933;">++;</span>
							<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> i <span style="color: #339933;">===</span> divCount <span style="color: #009900;">&#41;</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
						<span style="color: #009900;">&#125;</span>
&nbsp;
					<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> options.<span style="color: #660066;">interval</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><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// end each</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This is the jQuery plugin and now all we need to do is to initiate our tabbed widget.</p>

<div class="wp_codebox"><table><tr id="p101428"><td class="code" id="p1014code28"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">&gt;</span>
jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#secondary&gt;.xoxo'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">dttabs</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		widgetid <span style="color: #339933;">:</span> <span style="color: #3366CC;">'#secondary'</span><span style="color: #339933;">,</span>
		fade <span style="color: #339933;">:</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span>
		tabTitleReference <span style="color: #339933;">:</span> <span style="color: #3366CC;">'.widgettitle'</span><span style="color: #339933;">,</span>
		interval <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span>
		startTab <span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>
		tabContainerName <span style="color: #339933;">:</span> <span style="color: #3366CC;">'tab-items'</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>If we change <strong>#secondary</strong> with <strong>#primary</strong> then the Primary Aside widget will be transformed into a tabbed widget area.</p>
<h3>Integrating the tabbed widget javascript code with Thematic</h3>
<p>Next we need to add these two javascript pieces of code to our child theme. Add the following code to functions.php of your child theme for Thematic.</p>

<div class="wp_codebox"><table><tr id="p101429"><td class="code" id="p1014code29"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> add_js_to_header<span style="color: #009900;">&#40;</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>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">'text/javascript'</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">'&lt;?php bloginfo('</span>stylesheet_directory<span style="color: #0000ff;">'); ?&gt;/dttabs.js'</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">'text/javascript'</span><span style="color: #339933;">&gt;</span>
jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>ready<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#secondary&gt;.xoxo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>dttabs<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		widgetid <span style="color: #339933;">:</span> <span style="color: #0000ff;">'#secondary'</span><span style="color: #339933;">,</span>
		fade <span style="color: #339933;">:</span> <span style="color: #cc66cc;">1000</span><span style="color: #339933;">,</span>
		tabTitleReference <span style="color: #339933;">:</span> <span style="color: #0000ff;">'.widgettitle'</span><span style="color: #339933;">,</span>
		interval <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span>
		startTab <span style="color: #339933;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
		tabContainerName <span style="color: #339933;">:</span> <span style="color: #0000ff;">'tab-items'</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'add_js_to_header'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>Adding a bit of style</h3>
<p>The basic functionality is there. However we still need to add a bit of css to the mix or we&#8217;ll have a bad looking tabbed widget <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>This css code goes inside style.css of your child theme.</p>

<div class="wp_codebox"><table><tr id="p101430"><td class="code" id="p1014code30"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
	Tabed Widget Area #secondary
*/</span>
&nbsp;
<span style="color: #cc00cc;">#secondary</span> .widgettitle<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* The title will be in the tabs. We don't need this anymore. */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span>  <span style="color: #cc00cc;">#tab-items</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#cccccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span>  <span style="color: #cc00cc;">#tab-items</span> li<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span>  <span style="color: #cc00cc;">#tab-items</span> li a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">-1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span>  <span style="color: #cc00cc;">#tab-items</span> li<span style="color: #6666ff;">.tab-selected</span> a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span> .xoxo<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#secondary</span> <span style="color: #6666ff;">.xoxo</span> .xoxo<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>And now we have a <strong>tabbed widget for Thematic</strong>!</p>
<div class="preview_download">
<a href="http://cozmoslabs.com/project/tabbed-widgets/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2009/07/preview.gif" alt="preview"/></a>
</div>
<div class="preview_download">
The javascript for this short tutorial was adapted from <a href="http://net.tutsplus.com/tutorials/javascript-ajax/how-to-build-a-custom-jquery-tabs-plugin-new-plus-tutorial/">TutsPlus premium tutorials</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/07/20/early-morning-child-theme/' rel='bookmark' title='Permanent Link: Early Morning Child Theme'>Early Morning Child Theme</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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2010/05/02/thematic-tabbed-widgets/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Theme Teasers</title>
		<link>http://www.cozmoslabs.com/2010/02/22/theme-teasers/</link>
		<comments>http://www.cozmoslabs.com/2010/02/22/theme-teasers/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 16:36:26 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[childtheme]]></category>
		<category><![CDATA[teaser]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=994</guid>
		<description><![CDATA[The last two months have been really productive. So I thought I&#8217;d share with you two of the works in progress. While still far from ready to be released, they are ready to be shown. Both will be child themes, but with a twist. This is as much as I can tell you at this [...]


Related posts:<ol><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>
<li><a href='http://www.cozmoslabs.com/2010/01/11/smarter-wordpress-theme/' rel='bookmark' title='Permanent Link: Smarter WordPress Theme'>Smarter WordPress 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[<div id="attachment_1000" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/02/themes_in_the_work.jpg" alt="" title="themes_in_the_work" width="600" height="225" class="size-full wp-image-1000" /><p class="wp-caption-text">Themes in the Work</p></div>
<p>The last two months have been really productive. So I thought I&#8217;d share with you two of the works in progress. While still far from ready to be released, they are ready to be shown.</p>
<p>Both will be child themes, but with a twist. This is as much as I can tell you at this point, but I&#8217;ll post more details by the end of the month. </p>
<p><span id="more-994"></span></p>
<div id="attachment_1002" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/02/charisma_teaser.jpg" alt="" title="charisma_teaser" width="600" height="430" class="size-full wp-image-1002" /><p class="wp-caption-text">Charisma Teaser</p></div>
<div id="attachment_1003" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/02/type_log_teaser.jpg" alt="" title="type_log_teaser" width="600" height="430" class="size-full wp-image-1003" /><p class="wp-caption-text">TypeLog Teaser</p></div>


<p>Related posts:<ol><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>
<li><a href='http://www.cozmoslabs.com/2010/01/11/smarter-wordpress-theme/' rel='bookmark' title='Permanent Link: Smarter WordPress Theme'>Smarter WordPress 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/02/22/theme-teasers/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Remove Google Buzz from Gmail</title>
		<link>http://www.cozmoslabs.com/2010/02/11/remove-google-buzz-from-gmail/</link>
		<comments>http://www.cozmoslabs.com/2010/02/11/remove-google-buzz-from-gmail/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 09:22:55 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google buzz]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=983</guid>
		<description><![CDATA[I don&#8217;t like google buzz. Here is how to remove Google Buzz from Gmail in three easy steps. Hide Google Buzz from the Gmail interface Turn off Google Buzz completely Related posts:Themes in Gmail


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/11/21/themes-in-gmail/' rel='bookmark' title='Permanent Link: Themes in Gmail'>Themes in Gmail</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t like google buzz.</p>
<p>Here is how to <strong>remove Google Buzz from Gmail</strong> in three easy steps.</p>
<h3>Hide Google Buzz from the Gmail interface</h3>
<p><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_1116090935.swf' ></param><param name='flashvars' value='i=46327' ></param><param name='allowFullScreen' value='true' ></param><embed src='http://screenr.com/Content/assets/screenr_1116090935.swf' flashvars='i=46327' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer' ></embed></object></p>
<h3>Turn off Google Buzz completely</h3>
<p><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_1116090935.swf' ></param><param name='flashvars' value='i=46329' ></param><param name='allowFullScreen' value='true' ></param><embed src='http://screenr.com/Content/assets/screenr_1116090935.swf' flashvars='i=46329' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer' ></embed></object></p>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2008/11/21/themes-in-gmail/' rel='bookmark' title='Permanent Link: Themes in Gmail'>Themes in Gmail</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2010/02/11/remove-google-buzz-from-gmail/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Exclude posts from WordPress Navigation in Thematic</title>
		<link>http://www.cozmoslabs.com/2010/02/10/exclude-posts-from-wordpress-navigation-in-thematic/</link>
		<comments>http://www.cozmoslabs.com/2010/02/10/exclude-posts-from-wordpress-navigation-in-thematic/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 11:01:45 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[exclude]]></category>
		<category><![CDATA[posts]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=961</guid>
		<description><![CDATA[Let&#8217;s say you have a certain category that you want to be displayed some place other than on your main blog page. No big deal, you just exclude your special category from the main index loop. Now, you&#8217;re probably also want to make some changes to the single post navigation, and make it so that [...]


Related posts:<ol><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/2008/09/19/wp-greet-box-my-design-and-thematic-the-good-the-bad-and-the-ugly/' rel='bookmark' title='Permanent Link: WP Greet Box, my Design and Thematic &#8211; The Good, the Bad and the Ugly'>WP Greet Box, my Design and Thematic &#8211; The Good, the Bad and the Ugly</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[<p>Let&#8217;s say you have a certain category that you want to be displayed some place other than on your main blog page. No big deal, you just exclude your special category from the main index loop.</p>
<p>Now, you&#8217;re probably also want to make some changes to the single post navigation, and make it so that single posts in your special category won&#8217;t get posts from any other category in their navigation links. And also, chances are you&#8217;ll want to exclude posts from your special category from the navigation links of posts in all other categories.</p>
<p>In other words, in the navigation links of single posts from your special category you&#8217;ll only get posts from that category, and in the navigation links of posts from all other categories, you&#8217;ll get posts from all categories except your special category. Two separate navigations.</p>
<p><span id="more-961"></span></p>
<p>For all of this, all you need to do is use the following <strong>two Thematic filters</strong>: <code>thematic_previous_post_link_args</code> and <code>thematic_next_post_link_args</code>. If you&#8217;re interested to look into the code, you can find the filters being applied in <code>thematic/library/extensions/content-extensions.php</code></p>
<p>And here&#8217;s the code snippet to include in your child-theme&#8217;s <code>functions.php</code>:</p>

<div class="wp_codebox"><table><tr id="p96132"><td class="code" id="p961code32"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> custom_previous_post_link_args<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</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>in_category<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'in_same_cat'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'excluded_categories'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$args</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thematic_previous_post_link_args'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_previous_post_link_args'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> custom_next_post_link_args<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</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>in_category<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'in_same_cat'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'excluded_categories'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$args</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thematic_next_post_link_args'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_next_post_link_args'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>



<p>Related posts:<ol><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/2008/09/19/wp-greet-box-my-design-and-thematic-the-good-the-bad-and-the-ugly/' rel='bookmark' title='Permanent Link: WP Greet Box, my Design and Thematic &#8211; The Good, the Bad and the Ugly'>WP Greet Box, my Design and Thematic &#8211; The Good, the Bad and the Ugly</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/2010/02/10/exclude-posts-from-wordpress-navigation-in-thematic/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Extending the admin post filtering</title>
		<link>http://www.cozmoslabs.com/2010/02/08/extending-the-admin-post-filtering/</link>
		<comments>http://www.cozmoslabs.com/2010/02/08/extending-the-admin-post-filtering/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 13:43:07 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[filter management]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=946</guid>
		<description><![CDATA[We have a brand new plugin for all you WordPress maniacs out there. Now you can filter your posts in all imaginable ways, even by custom taxonomies! Download it via the official WordPress plugins repository. Filter the admin post listing by: authors tags custom taxonomies that you have declared No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>We have a brand new plugin for all you WordPress maniacs out there.</p>
<div id="attachment_948" class="wp-caption aligncenter" style="width: 598px"><img class="size-full wp-image-948 " title="screenshot-1" src="http://www.cozmoslabs.com/wp-content/uploads/2010/02/screenshot-1-e1265635588658.png" alt="Multiple filters in the posts management screen" width="588" height="119" /><p class="wp-caption-text">Multiple filters in the posts management screen.</p></div>
<p>Now you can <strong>filter your posts</strong> in all imaginable ways, even by custom taxonomies! <a href="http://wordpress.org/extend/plugins/extended-admin-post-filter/">Download it</a> via the official WordPress plugins repository.</p>
<p><strong>Filter the admin post listing by:</strong></p>
<ul>
<li>authors</li>
<li>tags</li>
<li>custom taxonomies that you have declared</li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2010/02/08/extending-the-admin-post-filtering/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>WordPress Photo Slideshow with NextGen Gallery</title>
		<link>http://www.cozmoslabs.com/2010/01/13/wordpress-photo-slideshow/</link>
		<comments>http://www.cozmoslabs.com/2010/01/13/wordpress-photo-slideshow/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:08:26 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[galleryview]]></category>
		<category><![CDATA[nextgen]]></category>
		<category><![CDATA[wordpress slideshow]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=862</guid>
		<description><![CDATA[After looking into tons of solutions for a WordPress photo slideshow, most of them being flash applets, I&#8217;m confident that I&#8217;ve found the very best one. And it&#8217;s not even Flash, it&#8217;s just JavaScript. Are you familiar with the NextGEN Gallery plugin? Well, you must be, since it&#8217;s probably the most downloaded photo gallery plugin. [...]


Related posts:<ol><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>
<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>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="postimage">
<img src="http://www.cozmoslabs.com/wp-content/uploads/2010/01/galleryview1.jpg" alt="" title="galleryview" width="300" height="200" class="alignright size-full wp-image-909" /></div>
<p>After looking into tons of solutions for a WordPress photo slideshow, most of them being flash applets, I&#8217;m confident that I&#8217;ve found the very best one. And it&#8217;s not even Flash, it&#8217;s just JavaScript.</p>
<p>Are you familiar with the <a href="http://wordpress.org/extend/plugins/nextgen-gallery/">NextGEN Gallery</a> plugin? Well, you must be, since it&#8217;s probably the most downloaded photo gallery plugin. Well, we&#8217;ve found <a href="http://nextgen-gallery.com/templates/galleryview/">a little addon plugin</a> that integrates NextGEN with <a href="http://spaceforaname.com/galleryview">GalleryView</a>, an excellent jQuery gallery plugin. What more could we want?</p>
<p><span id="more-862"></span></p>
<p>So, here&#8217;s how everything works. You upload and activate the NextGEN Gallery plugin, then you create a gallery and put some nice pictures there, right? Then you upload and activate the little addon plugin I mentioned earlier.</p>
<p>In order to output your slideshow to a post or a page, simply add a code like this</p>

<div class="wp_codebox"><table><tr id="p86240"><td class="code" id="p862code40"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#91;</span>nggallery id<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span> template<span style="color: #339933;">=</span>galleryview images<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span></pre></td></tr></table></div>

<p>The only minor downside is that in order to customize your slideshow you need to take a dip into the treacherous waters of coding. Inside the <code>nggGalleryview</code> directory you will find a <code>view</code> directory, and in there, you will find a file called <code>gallery-galleryview.php</code></p>
<h3>Editing the plugin</h3>
<p>Open it and you&#8217;ll see a bit of JavaScript code with a set of configuration options for your slideshow, on line 37.</p>

<div class="wp_codebox"><table><tr id="p86241"><td class="code" id="p862code41"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> defer<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;defer&quot;</span><span style="color: #339933;">&gt;</span>
	jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;document&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#&lt;?php echo $gallery-&gt;anchor ?&gt;'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">galleryView</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			panel_width<span style="color: #339933;">:</span> <span style="color: #CC0000;">450</span><span style="color: #339933;">,</span>
			panel_height<span style="color: #339933;">:</span> <span style="color: #CC0000;">400</span><span style="color: #339933;">,</span>
			frame_width<span style="color: #339933;">:</span> <span style="color: #CC0000;">40</span><span style="color: #339933;">,</span>
			frame_height<span style="color: #339933;">:</span> <span style="color: #CC0000;">40</span><span style="color: #339933;">,</span>
			transition_interval<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
			overlay_color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#222'</span><span style="color: #339933;">,</span>
			overlay_text_color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'white'</span><span style="color: #339933;">,</span>
			caption_text_color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#222'</span><span style="color: #339933;">,</span>
			background_color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'transparent'</span><span style="color: #339933;">,</span>
			border<span style="color: #339933;">:</span> <span style="color: #3366CC;">'none'</span><span style="color: #339933;">,</span>
			nav_theme<span style="color: #339933;">:</span> <span style="color: #3366CC;">'dark'</span><span style="color: #339933;">,</span>
			easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">'easeInOutQuad'</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>These are the default settings. You will need to modify <code>panel_width</code> and <code>panel_height</code> to have a different sized slideshow.</p>
<p>Now we also have to modify the css a bit. By default the images also get a css width and height. </p>
<p>Open up <code>galleryview.css</code>. On line 57 we have:</p>

<div class="wp_codebox"><table><tr id="p86242"><td class="code" id="p862code42"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.galleryview</span> <span style="color: #6666ff;">.panel</span> img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">450px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Modify these with the same width and height as in the javascript code above. Now you can have a slideshow exactly the width you need.</p>
<p>This will work for most people. However there are a few bugs that need ironing out inside the original css. By default it works ok, however I want to make some slight changes.</p>
<ol>
<li>On line 61 inside the <code>galleryview.css</code> change from overflow hidden to visible. This will fix the last thumbnail to be 10px smaller in width then the rest of the thumbnails.

<div class="wp_codebox"><table><tr id="p86243"><td class="code" id="p862code43"><pre class="css" style="font-family:monospace;">.strip_wrapper<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">visible</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
<li>Now we need to move the right arrow over to the right 10px.

<div class="wp_codebox"><table><tr id="p86244"><td class="code" id="p862code44"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.galleryview</span> img<span style="color: #6666ff;">.nav-prev</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
<li>Finally, if you&#8217;re using the Thematic Theme Framework for WordPress we need to add a small css fix. The problem is that both the plugin and Thematic share a common css class, named <code>nav-prev</code>. Because of this your right arrow will be stretched to 50% of the post width <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . This is what we need to add to the end of the plugin&#8217;s css:

<div class="wp_codebox"><table><tr id="p86245"><td class="code" id="p862code45"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.galleryview</span> img<span style="color: #6666ff;">.nav-prev</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

</li>
</ol>
<h3>Going a bit further with our resolve.</h3>
<p>For this plugin to be really useful we&#8217;ll probably need to be able to include it inside out theme files. By default it doesn&#8217;t have a function that will print out the gallery. To go around this we&#8217;ll use the <code> do_shortcode()</code> WordPress function.</p>

<div class="wp_codebox"><table><tr id="p86246"><td class="code" id="p862code46"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> do_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;[nggallery id=1 template=galleryview images=0]&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h3>Our gallery demo. It&#8217;s now 600px wide and 400 tall.</h3>

<div id="ngg-gallery-1-862" class="galleryview">
	<!-- Thumbnails -->
			
	<div class="panel">
		<img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/4267870050_1a8f45786a_b.jpg" />
		<div class="panel-overlay">
			<h2>people in the sun</h2>
			<p>voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non</p>
		</div>
	</div>
 			
	<div class="panel">
		<img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/4268358765_7d25f5f68c_b.jpg" />
		<div class="panel-overlay">
			<h2>a lady</h2>
			<p>proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
		</div>
	</div>
 			
	<div class="panel">
		<img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/4253801746_b2183dfe03_b.jpg" />
		<div class="panel-overlay">
			<h2>some flowers</h2>
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut</p>
		</div>
	</div>
 			
	<div class="panel">
		<img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/4259133644_9d95ce4d62_o.jpg" />
		<div class="panel-overlay">
			<h2>an autumn road</h2>
			<p>laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in</p>
		</div>
	</div>
 			
	<div class="panel">
		<img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/4095262637_ea5ba8ae77_b.jpg" />
		<div class="panel-overlay">
			<h2>a lake</h2>
			<p>labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco</p>
		</div>
	</div>
 			
	<div class="panel">
		<img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/4172130744_ea947f75a8_o.jpg" />
		<div class="panel-overlay">
			<h2>fields</h2>
			<p>laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in</p>
		</div>
	</div>
 			
	<div class="panel">
		<img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/4258960308_dc35af9e5b_b.jpg" />
		<div class="panel-overlay">
			<h2>a misty road</h2>
			<p>labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco</p>
		</div>
	</div>
 			
	<div class="panel">
		<img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/4230226411_2e1c78f401_o.jpg" />
		<div class="panel-overlay">
			<h2>Loch Morlich sunset</h2>
			<p>View west across a frozen Loch Morlich towards the setting sun. Taken in the Cairngorms National Park at Glenmore near Aviemore.</p>
		</div>
	</div>
 			
	<div class="panel">
		<img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/3265687349_517f78c3da_b.jpg" />
		<div class="panel-overlay">
			<h2>a stream</h2>
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut</p>
		</div>
	</div>
 	  	<ul class="filmstrip">
  		
	    <li><img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/thumbs/thumbs_4267870050_1a8f45786a_b.jpg" alt="people in the sun" title="people in the sun" /></li>
		
	    <li><img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/thumbs/thumbs_4268358765_7d25f5f68c_b.jpg" alt="a lady" title="a lady" /></li>
		
	    <li><img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/thumbs/thumbs_4253801746_b2183dfe03_b.jpg" alt="some flowers" title="some flowers" /></li>
		
	    <li><img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/thumbs/thumbs_4259133644_9d95ce4d62_o.jpg" alt="an autumn road" title="an autumn road" /></li>
		
	    <li><img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/thumbs/thumbs_4095262637_ea5ba8ae77_b.jpg" alt="a lake" title="a lake" /></li>
		
	    <li><img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/thumbs/thumbs_4172130744_ea947f75a8_o.jpg" alt="fields" title="fields" /></li>
		
	    <li><img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/thumbs/thumbs_4258960308_dc35af9e5b_b.jpg" alt="a misty road" title="a misty road" /></li>
		
	    <li><img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/thumbs/thumbs_4230226411_2e1c78f401_o.jpg" alt="Loch Morlich sunset" title="Loch Morlich sunset" /></li>
		
	    <li><img src="http://www.cozmoslabs.com/wp-content/gallery/galleryview/thumbs/thumbs_3265687349_517f78c3da_b.jpg" alt="a stream" title="a stream" /></li>
	  	</ul>

</div>

<script type="text/javascript" defer="defer">
	jQuery("document").ready(function(){
		jQuery('#ngg-gallery-1-862').galleryView({
		
		// defaults:
		/*
			panel_width: 450,
			panel_height: 400,
			frame_width: 40,
			frame_height: 40,
			transition_interval: 0,
			overlay_color: '#222',
			overlay_text_color: 'white',
			caption_text_color: '#222',
			background_color: 'transparent',
			border: 'none',
			nav_theme: 'dark',
			easing: 'easeInOutQuad'
		*/
		
			panel_width: 600,
			panel_height: 400,
			frame_width: 40,
			frame_height: 40,
			transition_interval: 0,
			overlay_color: '#222',
			overlay_text_color: 'white',
			caption_text_color: '#222',
			background_color: 'transparent',
			border: 'none',
			nav_theme: 'dark',
			easing: 'easeInOutQuad'
		});
	});
	
</script>


<h3>Conclusions</h3>
<p>I&#8217;ve actually searched quite a lot after an out of the box <strong>WordPress image slideshow plugin</strong>. While GalleryView dose offer a lot, it also falls short in many areas.</p>
<ul>
<li>It hard to modify by non-technical users.</li>
<li>There is no way to have two different sized slideshows.</li>
<li>It&#8217;s recommended that the images are fixed sized when you upload them. Otherwise there is a chance they will look squashed.</li>
</ul>
<p>On the other had, in the hands of a developer or a power user it will be able to cover a large range of problems from normal in-page slideshow to an automated slider for a site&#8217;s leaf pages.</p>
<p>So with this in mind I would recommend you play around with GalleryView plugin for NextGen next time you need an image slideshow!</p>


<p>Related posts:<ol><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>
<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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2010/01/13/wordpress-photo-slideshow/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Smarter Theme Teaser</title>
		<link>http://www.cozmoslabs.com/2009/12/18/smarter-theme-teaser/</link>
		<comments>http://www.cozmoslabs.com/2009/12/18/smarter-theme-teaser/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 14:00:13 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[smarter]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=805</guid>
		<description><![CDATA[It&#8217;s called Smarter and simply put it&#8217;s a CMS and business WordPress theme. The idea behind Smarter Theme is to quickly build a presentation website for small and medium size companies without the need to touch a single line of code. We&#8217;ve put together a screencast with a quick walk-through of the theme and it&#8217;s [...]


Related posts:<ol><li><a href='http://www.cozmoslabs.com/2010/06/24/the-new-smarter-and-wordpress-3-0/' rel='bookmark' title='Permanent Link: The new Smarter and WordPress 3.0'>The new Smarter and WordPress 3.0</a></li>
<li><a href='http://www.cozmoslabs.com/2010/01/11/smarter-wordpress-theme/' rel='bookmark' title='Permanent Link: Smarter WordPress Theme'>Smarter WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2010/02/22/theme-teasers/' rel='bookmark' title='Permanent Link: Theme Teasers'>Theme Teasers</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s called Smarter and simply put it&#8217;s a CMS and business WordPress theme.</p>
<p>The idea behind Smarter Theme is to quickly build a presentation website for small and medium size companies without the need to touch a single line of code.</p>
<p>We&#8217;ve put together a screencast with a quick walk-through of the theme and it&#8217;s features. I hope you find it interesting and let me know what you think so far!</p>
<p><object width="598" height="361"><param name="movie" value="http://www.youtube.com/v/2uCVunwZH6U&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2uCVunwZH6U&#038;fs=1" type="application/x-shockwave-flash" width="598" height="361" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div class="info-box" style="text-align:center;">
The theme will be released in January 2010 so if I got your attention<br/> <a href="http://twitter.com/sareiodata"><strong>you should follow me on Twitter.</strong></a>
</div>


<p>Related posts:<ol><li><a href='http://www.cozmoslabs.com/2010/06/24/the-new-smarter-and-wordpress-3-0/' rel='bookmark' title='Permanent Link: The new Smarter and WordPress 3.0'>The new Smarter and WordPress 3.0</a></li>
<li><a href='http://www.cozmoslabs.com/2010/01/11/smarter-wordpress-theme/' rel='bookmark' title='Permanent Link: Smarter WordPress Theme'>Smarter WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/2010/02/22/theme-teasers/' rel='bookmark' title='Permanent Link: Theme Teasers'>Theme Teasers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2009/12/18/smarter-theme-teaser/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 132/300 queries in 0.231 seconds using disk

Served from: www.cozmoslabs.com @ 2010-07-31 02:39:40 -->