<?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; Wordpress</title>
	<atom:link href="http://www.cozmoslabs.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cozmoslabs.com</link>
	<description>Web design and development experiment.</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:05:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Q&amp;A about Akismet with Pete Davies</title>
		<link>http://www.cozmoslabs.com/2748-qa-about-akismet-with-pete-davies/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=qa-about-akismet-with-pete-davies</link>
		<comments>http://www.cozmoslabs.com/2748-qa-about-akismet-with-pete-davies/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 15:43:35 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[interview]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=2748</guid>
		<description><![CDATA[Pete Davies is a Business Engineer at Automattic and you&#8217;ll probably find him writing articles on the Akismet blog. Akismet is an anti-spam filter for comments. If you visit the website, Akismet is described as &#8220;possibly the best way in the world to protect you from web spam&#8221;, which from my experience is not far [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_2755" class="wp-caption alignright" style="width: 310px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2011/11/akismet_logo.png" alt="" title="akismet_logo" width="300" height="90" class="size-full wp-image-2755" /><p class="wp-caption-text">(a-kĭz-mĭt)</p></div><a href="http://about.me/petedavies">Pete Davies</a> is a Business Engineer at Automattic and you&#8217;ll probably find him writing articles on the <a href="http://blog.akismet.com/">Akismet blog.</a></p>
<p>Akismet is an anti-spam filter for comments. If  you visit the website, Akismet is described as <em>&#8220;possibly the best way in the world to protect you from web spam&#8221;</em>, which from my experience is not far from the truth.</p>
<p>However, with over 9 million websites that use Akismet on a daily basis, questions about privacy and differences between the personal and commercial account are bound to appear and Pete was really open to answer a few of them.</p>
<p><span id="more-2748"></span></p>
<h3>
<blockquote><p>Akismet filters out your comment and track-back spam for you, so you can focus on more important things.</p></blockquote>
</h3>
<p><strong>Question:</strong> Tell us a bit about what you do over at Akismet and Automattic.<br />
<strong>Answer:</strong> I work with the Premium Services group at Automattic, which is responsible for VaultPress, VideoPress and Akismet.</p>
<p><strong>Question:</strong> What are there any limits on the free account?<br />
<strong>Answer: </strong>Yes, as stated in our <a href="http://akismet.com/tos">ToS</a>, each Personal API Key should be used only on one site, and with no more than 80,000 comments/month. (There&#8217;s no restriction on the number of Personal API Keys that someone can have, however).</p>
<p><strong>Question:</strong> Does a site that displays ads fits under the Commercial account?<br />
<strong>Answer:</strong> I think your question is the wrong way around. Can a site with ads ever be under a personal account? Absolutely. Personal doesn&#8217;t mean you can&#8217;t make any money at all &#8212; just that it needs to be for a personal site. If you make beer money from some Google AdSense, that&#8217;s great &#8212; we have no desire to take that off you.</p>
<p><strong>Question:</strong> Will Akismet enforce users to move from Free to Commercial (of course, if they are using it for commercial sites)<br />
<strong>Answer:</strong> If we notice a site or an API Key that is blatantly abusing our Terms of Service then yes, we absolutely will ask them to move to a paid subscription, or stop using Akismet. We always give plenty of notice.</p>
<p><strong>Question:</strong> Will Akismet add a back charge in case of users that should be under Commercial but are still using the Free account.<br />
<strong>Answer:</strong> We&#8217;ve never asked anybody for back payments. I don&#8217;t expect that we&#8217;d ever start either.</p>
<p><strong>Question:</strong> Anything else you might want to mention to Akismet users?<br />
<strong>Answer:</strong> Akismet now filters close to 2 billion pieces of spam every month from over 9 million websites. That takes a lot of resources to keep the service up and running reliably and with the accuracy levels that we have. Some people seem to think that the service should be free &#8212; we simply couldn&#8217;t afford to do that&#8230; so somebody has to pay something. I&#8217;m always open to ideas about how we could structure our subscriptions better, but this is the best and fairest we&#8217;ve been able to come up with to date.</p>
<h3>Conclusions</h3>
<p>While Akismet isn&#8217;t perfect for <a href="http://www.dev4press.com/2011/blog/do-you-really-need-akismet/">everyone</a>, I think they&#8217;re doing a pretty good job keeping spam away from millions of blogs. </p>
<p>Other solutions exist like <a href="http://antispambee.com/">Anti-Spam Bee</a> (I&#8217;m currently using it and I&#8217;m happy with it), but they are based on some smart css/javascript/php tricks and mostly work because spam-bots are stupid. </p>
<p>As the spam-bots continue to increase in complexity the only thing that will stop it will be human curation and machine learning. The only way to achieve something like this is to use a centralized service like Akismet or if some smart guy/gall will go and build a decentralized system similar to BitCoin. (although I might be talking about fairy tales here since I don&#8217;t know how BitCoin really works) </p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2748-qa-about-akismet-with-pete-davies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Developer Tools</title>
		<link>http://www.cozmoslabs.com/2664-wordpress-developer-tools/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-developer-tools</link>
		<comments>http://www.cozmoslabs.com/2664-wordpress-developer-tools/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 10:58:43 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[custom field]]></category>
		<category><![CDATA[custom meta box]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress development tools]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=2664</guid>
		<description><![CDATA[During the last 3 years while providing web-design and development solutions to our clients over at Reflection Media, we&#8217;re tried our best to optimize our processes and development time by reusing code, creating a database of often used code snipets and constructing generalist plugins when possible. While this didn&#8217;t always work out as expected, we&#8217;ve [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/500-street-wordpress-theme/' rel='bookmark' title='Street WordPress Theme'>Street WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/1130-the-new-smarter-and-wordpress-3-0/' rel='bookmark' title='The new Smarter and WordPress 3.0'>The new Smarter and WordPress 3.0</a></li>
<li><a href='http://www.cozmoslabs.com/1667-wordpress-automatic-updates-based-on-folder-name-is-that-a-problem/' rel='bookmark' title='WordPress Automatic Updates Based on Folder Name. Is That a Problem?'>WordPress Automatic Updates Based on Folder Name. Is That a Problem?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_2691" class="wp-caption alignright" style="width: 310px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2011/11/wordpress-developer-tools.jpg" alt="WordPress Developer Tools" title="wordpress-developer-tools" width="300" height="225" class="size-full wp-image-2691" /><p class="wp-caption-text">WordPress Developer Tools</p></div><br />
During the last 3 years while providing web-design and development solutions to our clients over at <a href="http://www.reflectionmedia.ro">Reflection Media</a>, we&#8217;re tried our best to optimize our processes and development time by reusing code, creating a database of often used code snipets and constructing generalist plugins when possible.</p>
<p>While this didn&#8217;t always work out as expected, we&#8217;ve tried to push for these goals to the best of our abilities and tried to &#8220;Do The Right Thing&#8221; as often as possible. Out of our efforts we ended up with two cool projects: <strong>BareSkin</strong> &#8211; a WordPress Starter Theme and <strong>Custom Field Creator</strong> &#8211; a easy to use class to create Meta Boxes for posts, pages and custom post types.</p>
<p>By building these <strong>WordPress Developer Tools</strong> we hope to save time and energy on our projects and create a solid base for more complex themes and plugins.</p>
<p>Both projects are in a <code>ALPHA</code> stage but stable enough to be of real use to you as well. I&#8217;ve been using both of them in client projects and I&#8217;m really happy on how they turned out.</p>
<p><span id="more-2664"></span></p>
<h3>BareSkin</h3>
<p><strong>Is a HTML5 WordPress theme to jump-start the development of another full-featured theme.</strong></p>
<p>When we started developing custom themes for our clients, Thematic saved us a lot of time. We didn&#8217;t have to worry about all the things WordPress needs inside a theme and just used Child Themes to style and hooks to add custom functionality.</p>
<p>It all worked well up to a point. You see, the more custom functionality you need, more code goes inside <em>functions.php</em>. We ended up with thousands of lines of code inside <em>functions.php</em> on some of our more complex projects. Once you start unhooking existing functionality and hooking your own, you stop saving time and becomes a BIG pain in the butt to get anything working well.</p>
<p>Our first step away from this was creating our own internal framework. I didn&#8217;t like the direction Thematic has taken so I started looking elsewhere for inspiration and guidance. As it happens, <a href="http://justintadlock.com/archives/2010/08/16/frameworks-parent-child-and-grandchild-themes">Justin Tadlock</a> felt the same thing about frameworks and released <a href="http://themehybrid.com/hybrid-core">Hybrid Core</a> &#8211; a WordPress theme development framework for creating solid parent themes.</p>
<p>We used Hybrid Core and created an internal framework, kept Thematic&#8217;s awesome XHTML structure, but ended up creating our own framework with the same problems as Thematic or any framework out there: we still used hooks and filters to add functionality inside templates.</p>
<p>Somehow that felt wrong to me so after a few projects with it we ditched it and I started looking again, this time by creating a document with the requirements of the theme that fit well with our web-development process.</p>
<h4>BareSkin requirements:</h4>
<ul>
<li>NOT a theme framework. Think of it as a parent theme with limited support for hooks and filters. <strong>Modifications should be made by forking it</strong> and creating a new theme, not through Child Themes.</li>
<li>Functionality should be added through a modular system ( like <em>add_theme_support</em> )</li>
<li>The loops should be included through <em>get_template_part</em> so template files are as easy to understand as possible.</li>
<li>Limited Admin Panel &#8211; only functionality that might belong to a theme, everything else delegate to plugins.</li>
<li>When possible use conventions over configurations</li>
<li>The theme will support 3 layout structures through css includes: 2 columns right-aside, 2 columns left-aside, 3 columns content-in-the-middle similar to Thematic as well as a responsive.css file</li>
</ul>
<p>We&#8217;ve used <a href="http://wordpress.org/extend/themes/toolbox">ToolBox&#8217;s</a> HTML structure, took part of the functionality from Hybrid Core and then mashed it all together to create something really cool.</p>
<p>This is not a finished theme. That&#8217;s why for now it&#8217;s only available via GitHub and will not be submitted to the theme repository for now. Work still needs to be done to the existing CSS structure and you might find inconsistencies in the code.</p>
<div class="preview_download">
<a href="https://github.com/madalinungureanu/bareskin"><strong> &gt;&gt; DOWNLOAD / FORK BareSkin from GitHub &lt;&lt; </strong></a>
</div>
<div class="update">
<h3 style="text-align:center;">UPDATE</h3>
<p>Custom Fields Creator became WordPress Creation Kit </p>
</div>
<h3>Custom Fields Creator</h3>
<p>Custom fields have been in WordPress since a long time. They are an absolute must when it comes to custom post types or even storing extra information regarding a certain page.</p>
<p>However, the UI to manage those fields is somewhat lacking in functionality. You can only add key =&gt; value pairs. No labels, no descriptions. The cool thing is that we can create Custom Meta Boxes and save that information in custom fields.</p>
<div id="attachment_2677" class="wp-caption alignnone" style="width: 611px"><img class="size-full wp-image-2677" title="cf_ui" src="http://www.cozmoslabs.com/wp-content/uploads/2011/11/cf_ui.png" alt="" width="601" height="251" /><p class="wp-caption-text">Default Custom Field Interface.</p></div>
<p>While <a href="http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/">creating Meta Boxes</a> is really cool, it&#8217;s also something we can take a bit further and abstracted a metabox class so you could create them with a few lines of code.</p>
<p><strong>Taking the idea a bit further, what we really needed was repeater fields with our meta boxes.</strong></p>
<p>There are a few cool plugins that allows you to do just that (ACF and Magic Fields 2 come to mind) but we needed something that was easy to embed in custom client plugins where the client didn&#8217;t need access to the structure of the fields, particularly since we&#8217;re using standard WordPress functions to output the information in a page template for the front-end.</p>
<div id="attachment_2682" class="wp-caption alignnone" style="width: 610px"><a href="http://www.cozmoslabs.com/wp-content/uploads/2011/11/cfc-ui.jpg"><img class="size-full wp-image-2682 " title="cfc-ui" src="http://www.cozmoslabs.com/wp-content/uploads/2011/11/cfc-ui.jpg" alt="" width="600"/></a><p class="wp-caption-text">Custom Fields Creator UI to create the testimonials on wpMail.me</p></div>
<h4>Here&#8217;s what Custom Fields Creator dose:</h4>
<ul>
<li><strong>Easy to configure. </strong>You just need to setup two arrays (more info on the GitHub readme file)</li>
<li><strong>Support for Repeater Fields Metabox. </strong>This is the main reason we built it. Let me give you an example. For a particular client we needed to create a &#8220;The Team&#8221; page. Each team member has a name, title, email address and phone number. Initially all information was added in the Visual Editor by us, but when the client updated that information he easily broke the HTML and the formatting was gone together with the sidebars since he didn&#8217;t close a tag <img src='http://www.cozmoslabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Having the information nicely separated in input fields and listing it on the front-end using <a href="http://codex.wordpress.org/Function_Reference/get_post_meta">get_post_meta</a> made it easy for the client to update his information and we didn&#8217;t have to it for them.</li>
<li>Drag and Drop to sort the Repeater Fields.</li>
<li>Easy to create custom Meta Boxes with multiple fields each (let&#8217;s say you need a project extra information like: budget, timeframe  and team members)</li>
<li>Support for all input fields (WYSIWYG is coming soon)</li>
<li>Image / File upload supported via the WordPress Media Uploader (at this point the files aren&#8217;t attached to the post and are available just in the media library but we&#8217;re thinking have to possibility  to chose if needed)</li>
<li>Possibility to target only certain page-templates (there is no point in having &#8220;the team&#8221; metabox shown on the &#8220;Our Clients&#8221; page now is it? ), target certain custom post types and even unique ID&#8217;s.</li>
</ul>
<p>There are other things on the list for it, proper documentation is one (you&#8217;ll find a readme file on github for now), WYSIWYG, validation and tweaks to the UI. At this point is just important to let people know about it and hopefully someone will find it useful.</p>
<div class="preview_download">
<a href="https://github.com/madalinungureanu/wordpress-creation-kit-api"><strong> >> DOWNLOAD / FORK Custom Fields Creator from GitHub << </strong></a>
</div>
<h3>Future Plans</h3>
<p>I think at this point creating proper documentation is a priority for both projects. For BareSkin we need to finalize the CSS so it&#8217;s easy to build upon it, as for Custom Fields Creator tweaking it&#8217;s UI is something I want to do most. I think the UI and ease of use will be THE big feature for both projects and not adding to much extra functionality. They don&#8217;t have to do everything, just need to give you a head-start and let you focus on the fun stuff.</p>
<p>I haven&#8217;t coded any of them, my colleague and good friend <strong>Madalin Ungureanu</strong> did, but I&#8217;ve created the initial requirements for both, did a fair amount of testing and currently working on improving them.</p>
<p>I believe it&#8217;s very important to have solid <strong>WordPress Developer Tools </strong>that allows you to build other cool stuff easily without having to do a lot of copy-pasting between projects. Hopefully they will be of help to other developers as well.</p>
<p><strong>If you do end-up working with any of them I would love to hear about it in the comments.</strong></p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/500-street-wordpress-theme/' rel='bookmark' title='Street WordPress Theme'>Street WordPress Theme</a></li>
<li><a href='http://www.cozmoslabs.com/1130-the-new-smarter-and-wordpress-3-0/' rel='bookmark' title='The new Smarter and WordPress 3.0'>The new Smarter and WordPress 3.0</a></li>
<li><a href='http://www.cozmoslabs.com/1667-wordpress-automatic-updates-based-on-folder-name-is-that-a-problem/' rel='bookmark' title='WordPress Automatic Updates Based on Folder Name. Is That a Problem?'>WordPress Automatic Updates Based on Folder Name. Is That a Problem?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/2664-wordpress-developer-tools/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>What Is WordPress?</title>
		<link>http://www.cozmoslabs.com/1664-what-is-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-is-wordpress</link>
		<comments>http://www.cozmoslabs.com/1664-what-is-wordpress/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 15:15:53 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[what is WordPress]]></category>
		<category><![CDATA[WordPress plugins]]></category>
		<category><![CDATA[WordPress themes]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1664</guid>
		<description><![CDATA[Ever now and again the question arises with new clients that aren&#8217;t really tech savvy: &#8220;What Is WordPress?&#8221; What I&#8217;m hopping to achieve with this post is to drop the technical jargon for a minute and explain in down to earth words what is WordPress , how can it help you, what is WordPress.com, what&#8217;s [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1246-qandapress-a-qa-platform-based-on-wordpress/' rel='bookmark' title='QandaPress, a Q&amp;A platform based on WordPress'>QandaPress, a Q&#038;A platform based on WordPress</a></li>
<li><a href='http://www.cozmoslabs.com/527-wordpress-as-a-social-platform/' rel='bookmark' title='WordPress as a social platform'>WordPress as a social platform</a></li>
<li><a href='http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Ever now and again the question arises with new clients that aren&#8217;t really tech savvy: <strong>&#8220;What Is WordPress?&#8221;</strong></p>
<p><em>What I&#8217;m hopping to achieve with this post is to drop the technical jargon for a minute and explain in down to earth words what is WordPress , how can it help you, what is WordPress.com, what&#8217;s a theme and why do you need plugins. </em></p>
<h3>What is WordPress?</h3>
<p><strong>WordPress</strong> is a FREE web software that anyone can use to create and update a blog or web-site. You can install WordPress on your web-server (or hosting account) and then use the user interface to <strong>create pages, upload images or write articles. </strong><br />
<span id="more-1664"></span><br />
Most importantly you can manage your entire website without any technical knowledge or the need to write code. Everything is done from the admin panel where only authenticated users can access and modify your website.</p>
<div id="attachment_2093" class="wp-caption alignnone" style="width: 600px"><img class="size-full wp-image-2093" title="wordpress_login_screen" src="http://www.cozmoslabs.com/wp-content/uploads/2011/09/wordpress_login_screen.png" alt="" width="590" height="423" /><p class="wp-caption-text">WordPress login screen. Only allowed users are able to modify your content.</p></div>
<p><strong> Some of the things WordPress let&#8217;s you do are:</strong></p>
<ul>
<li>Create new pages for your website or blog (like a About Us or Contact page).</li>
<li>Create menus so your site visitors can find the way around the site and discover relevant information.</li>
<li>Write articles in a chronological order so the newest articles are always at the top.</li>
<li>Allow visitors to leave comments to the articles (or posts) you&#8217;ve written.</li>
<li>Gives you the possibility to have multiple users that can create and update the information on the website. (this is called user management ).</li>
<li>Gives your site a unique design by using Themes (more on this later on).</li>
<li>Adds extra-functionality that doesn&#8217;t come standard with the default installation through Plugins (something simple like a contact form or even a forum for your users &#8211; we&#8217;ll talk about this later on).</li>
</ul>
<div id="attachment_2099" class="wp-caption alignnone" style="width: 600px"><img class="size-full wp-image-2099" title="wordpress_admin_pannel" src="http://www.cozmoslabs.com/wp-content/uploads/2011/09/wordpress_admin_pannel.png" alt="The WordPress Admin Pannel" width="590" height="401" /><p class="wp-caption-text">The WordPress Admin Pannel</p></div>
<h3>Isn&#8217;t WordPress just a blogging software?</h3>
<p><strong>The short answer is NO</strong>.</p>
<p>While WordPress started as a blogging software it&#8217;s now used by companies and institutions all across the globe manage and update their websites. <a href="http://www.nytimes.com/interactive/blogs/directory.html">The New York Times</a>, <a href="http://business.blogs.cnn.com/">CNN</a>, <a href="http://www.thefordstory.com/">Ford</a> and <a href="http://stylenews.peoplestylewatch.com/">People Magazine</a> , just to name a few, are using WordPress to power certain parts of their online business.</p>
<p>WordPress can be used as a <em>publishing platform for news sites</em>, <em>membership site</em>, <em>online shop</em> and even as <em>a social network</em> similar to Facebook.</p>
<p>To put things in perspective, from all the websites in the world, <a href="http://w3techs.com/technologies/overview/content_management/all"><strong>around 14% are using WordPress</strong></a> to manage and update their content. That&#8217;s a lot of websites.</p>
<h3>What is WordPress.com?</h3>
<p>There are two flavors of WordPress. On the one hand there is the open-source free software that you can download and install on your website from <a href="http://wordpress.org">http://wordpress.org</a>. On the other hand there is <a href="http://wordpress.com">http://wordpress.com</a>, <strong>a self hosted service</strong> that give users the possibility to create blogs for free without the need to have a hosting account.</p>
<div id="attachment_2312" class="wp-caption alignnone" style="width: 600px"><img class="size-full wp-image-2312" title="wordpress.com" src="http://www.cozmoslabs.com/wp-content/uploads/2011/09/wordpress.com_.png" alt="wordpress.com screenshot" width="590" height="396" /><p class="wp-caption-text">WordPress.com helps milions of people publish their thoughts on the web.</p></div>
<p>The company behind WordPress.com is called <a href="http://automattic.com/">Automattic</a>. The CEO of Automattic, Matt Mullenweg, is also one of the co-founders WordPress, the open-source software.</p>
<h3>What is a WordPress Theme?</h3>
<p>Fundamentally, a WordPress Theme is a way to &#8220;skin&#8221; your website. This means the design and presentation of the site is managed by the Theme.</p>
<p>There are multiple places to get hold of a WordPress theme. The <a title="http://wordpress.org/extend/themes/" href="http://wordpress.org/extend/themes/">WordPress Theme Directory</a> is the official site for WordPress Themes which have been checked and inspected, and are free for downloading. There are also a lot of commercial themes, however if you are going to buy one I suggest you chose one of the companies on <a href="http://wordpress.org/extend/themes/commercial/">this page</a> since they are released under the GPL license, the same as the WordPress software.</p>
<p><strong> Using Themes</strong></p>
<p>By default, WordPress comes with a default Theme, the latest being the <a title="Glossary" href="http://codex.wordpress.org/Glossary#Twenty_Eleven_theme">WordPress TwentyEleven theme</a>. This means that when you install WordPress on your site, it&#8217;s ready to host and manage your content right away.</p>
<div id="attachment_2305" class="wp-caption alignnone" style="width: 600px"><img class="size-full wp-image-2305" title="preview_twentyeleven" src="http://www.cozmoslabs.com/wp-content/uploads/2011/09/preview_twentyeleven.png" alt="The Twenty Eleven Theme is the default WordPress theme. " width="590" height="485" /><p class="wp-caption-text">The Twenty Eleven Theme is the default WordPress theme.</p></div>
<p>Themes are easy to install and use, and for a more detailed description you can always consult the <a href="http://codex.wordpress.org/Using_Themes">WordPress Codex</a> on how to get started.</p>
<h3>What is a WordPress plugin and why do you need them?</h3>
<p><strong>Plugins can extend WordPress to do almost anything you can imagine.</strong></p>
<p>By default, WordPress comes with a standard functionality. Some might say it&#8217;s pretty powerful by it&#8217;s own, however WordPress can&#8217;t do everything.</p>
<p>This is where <a href="http://codex.wordpress.org/Plugins">WordPress plugins</a> come into play. <em>Plugins are tools to extend the functionality of WordPress</em>. Things like e-commerce carts, SEO functionality for your site, contact forms to gather leads and feedback, twitter widgets to display your latest tweets, caching plugins to speed up your site and many, many more are available some for free and some for money.</p>
<div id="attachment_2315" class="wp-caption alignnone" style="width: 600px"><img class="size-full wp-image-2315" title="wordpress-plugins" src="http://www.cozmoslabs.com/wp-content/uploads/2011/09/wordpress-plugins.png" alt="WordPress backend for installing and managing plugins." width="590" height="316" /><p class="wp-caption-text">WordPress backend for installing and managing plugins.</p></div>
<p>Similar to WordPress Themes, there is a <a href="http://wordpress.org/extend/plugins/">repository of WordPress plugins</a> where you can find many free to download and use plugins. At the time of writing this article there were <strong>16,000+ </strong>plugins in the repository.</p>
<h3>Final Words</h3>
<p>WordPress has come a long way in it&#8217;s short life. It helps millions of people publish their sites on the web, produced a vibrant community, creates jobs (WordPress consultants) and makes the entire world wide web a bit nicer and easier to access by anybody.</p>
<p><strong>So the next time you need a website, just pick WordPress as your CMS!</strong></p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1246-qandapress-a-qa-platform-based-on-wordpress/' rel='bookmark' title='QandaPress, a Q&amp;A platform based on WordPress'>QandaPress, a Q&#038;A platform based on WordPress</a></li>
<li><a href='http://www.cozmoslabs.com/527-wordpress-as-a-social-platform/' rel='bookmark' title='WordPress as a social platform'>WordPress as a social platform</a></li>
<li><a href='http://www.cozmoslabs.com/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1664-what-is-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Automatic Updates Based on Folder Name. Is That a Problem?</title>
		<link>http://www.cozmoslabs.com/1667-wordpress-automatic-updates-based-on-folder-name-is-that-a-problem/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-automatic-updates-based-on-folder-name-is-that-a-problem</link>
		<comments>http://www.cozmoslabs.com/1667-wordpress-automatic-updates-based-on-folder-name-is-that-a-problem/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 11:47:47 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[plugins]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[automatic update]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1667</guid>
		<description><![CDATA[Automatic Updates are great. They are one of the best if not THE best feature WordPress has. I&#8217;ve loved it since it was introduced in 2.7 (2.5 for plugins) and it&#8217;s something that really makes my life easier. If I&#8217;m not mistaken, WordPress automatic updates for themes and plugins are based on the folder name [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/403-commune-child-theme-update/' rel='bookmark' title='Commune Child Theme &#8211; Update'>Commune Child Theme &#8211; Update</a></li>
<li><a href='http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/' rel='bookmark' title='Profile Builder Pro is WordPress Registration Done Right'>Profile Builder Pro is WordPress Registration Done Right</a></li>
<li><a href='http://www.cozmoslabs.com/1246-qandapress-a-qa-platform-based-on-wordpress/' rel='bookmark' title='QandaPress, a Q&amp;A platform based on WordPress'>QandaPress, a Q&#038;A platform based on WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Automatic Updates are great. They are one of the best if not THE best feature WordPress has. I&#8217;ve loved it since it was introduced in 2.7 (2.5 for plugins) and it&#8217;s something that really makes my life easier.</p>
<p>If I&#8217;m not mistaken, WordPress automatic updates for themes and plugins are based on the folder name first and then on the name of the plugin and theme.</p>
<h3>Things aren&#8217;t perfect in the land of WordPress Updates.</h3>
<p>You see, two years ago I released a child theme for Thematic called Commune. It has over 10.000 downloads and a lot of people are using it for their blogs.</p>
<p>A month ago, another theme called Commune was approved on the WordPress.org Theme Repository. Since it had the same name as mine, it issued an automatic update.  One of the users of the Commune Child Theme saw the update and clicked it. After all, it had the same name, it came from WordPress, what could there go wrong?</p>
<p>As you probably suspected the update overwritten the Commune Child Theme and activated the WordPress.org theme. You could say the user was quite surprised and unhappy:</p>
<blockquote><p>Hi Cris &#8211; just updated Commune @ <a title="http://interactivebodywork.com" href="http://t.co/Cj6dycV" rel="nofollow" target="_blank" data-display-url="interactivebodywork.com" data-expanded-url="http://interactivebodywork.com">http://t.co/Cj6dycV</a> &amp; the format is ruined ): no menus, columns &amp; widgets gone&#8230; HELP! (<a href="http://twitter.com/#%21/humanelywild/status/90978966789300224">twitter status</a>)</p></blockquote>
<p><span id="more-1667"></span></p>
<h3>So where&#8217;s the fire?</h3>
<p>Well, there isn&#8217;t one.<strong> These things happen and life goes on.</strong> I&#8217;ve help my child theme user to reinstall my theme, she had to recreate her widget settings and that was all.<strong> So if you have my Commune theme installed please don&#8217;t update it. It&#8217;s the WRONG theme.</strong></p>
<p>Also <a href="http://twitter.com/nacin">@nacin</a> already created a <a href="http://core.trac.wordpress.org/ticket/18097">bug report</a> on the track to address this issue.</p>
<h3>What I&#8217;m hopping to achieve with this post is to raise awareness.</h3>
<p>With WordPress <strong>powering 50 Million websites</strong> and the large number of developers and theme designers something like this is bound to happen sooner or later.</p>
<p>And the same things is valid for Plugin Updates as well. Let&#8217;s say you create a custom plugin for a client, name it appropriately (no one uses this plugin name on WordPress.org either). Since this is a custom plugin you don&#8217;t bother to upload it to the repository.</p>
<p>Months later, someone comes along and creates another plugin with the same name and uploads it to WordPress.org.  You&#8217;ve guessed it! Your original plugin get&#8217;s an automatic update. Client updates the plugin and brakes it&#8217;s site.</p>
<h3>What can you do as a developer?</h3>
<p><strong>Mark Jaquith wrote about this in the past.</strong> You can setup your plugin and theme so they are excluded from the plugin updates. It&#8217;s a simple piece of code and you can learn more about it by <a href="http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/">clicking here.</a> I&#8217;m also including that in all my child themes and custom plugins just to be on the safe side.<a href="http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/"><br />
</a></p>
<p>The thing is that I never really thought this could ever be an issue until it happened to me. Also it&#8217;s a very obscure thing that not many people know about it. Hopefully if you&#8217;re a developer and create custom themes and plugins take this into account.</p>
<h3>No-one is to blame here really but can this be done differently?</h3>
<p>I think so. Issuing an <strong>unique identifier</strong> on which to base the automatic update shouldn&#8217;t be that hard (or is it?)</p>
<p>I&#8217;m writing about this hoping to raise awareness to this issue, not to mention the 3.3 milestone features a refresh to the update system and might even go so far as updating WordPress in the background, without your intervention (these are rumors mind you).</p>
<p>So let me know what you think in the comments.<strong> Should Automatic Updates be issued based on an unique identifier and not just the Theme/Plugin name?</strong></p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/403-commune-child-theme-update/' rel='bookmark' title='Commune Child Theme &#8211; Update'>Commune Child Theme &#8211; Update</a></li>
<li><a href='http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/' rel='bookmark' title='Profile Builder Pro is WordPress Registration Done Right'>Profile Builder Pro is WordPress Registration Done Right</a></li>
<li><a href='http://www.cozmoslabs.com/1246-qandapress-a-qa-platform-based-on-wordpress/' rel='bookmark' title='QandaPress, a Q&amp;A platform based on WordPress'>QandaPress, a Q&#038;A platform based on WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1667-wordpress-automatic-updates-based-on-folder-name-is-that-a-problem/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Profile Builder Pro is WordPress Registration Done Right</title>
		<link>http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=profile-builder-pro-is-wordpress-registration-done-right</link>
		<comments>http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 08:17:12 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[plugins]]></category>
		<category><![CDATA[Profile Builder]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[profile builder pro]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1561</guid>
		<description><![CDATA[Let&#8217;s face it. WordPress default registration process is no good. Hard to customize, hard to integrate it in your theme and not that user friendly. Profile Builder Pro is WordPress Registration Done Right Super easy to customize. Chose from the default styling it comes with or just add css to your theme and you&#8217;re done. [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/' rel='bookmark' title='WordPress Profile Builder: a front-end user registration, login and edit-profile plugin'>WordPress Profile Builder: a front-end user registration, login and edit-profile plugin</a></li>
<li><a href='http://www.cozmoslabs.com/2252-profile-builder-version-1-1-6-has-arrived/' rel='bookmark' title='Profile Builder version 1.1.6 has arrived'>Profile Builder version 1.1.6 has arrived</a></li>
<li><a href='http://www.cozmoslabs.com/1494-profile-builder-beta/' rel='bookmark' title='Profile Builder Beta'>Profile Builder Beta</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><span class="bigfont">Let&#8217;s face it. WordPress default registration process is no good. Hard to customize, hard to integrate it in your theme and not that user friendly. </span></p>
<h3>Profile Builder Pro is WordPress Registration Done Right</h3>
<ul>
<li><strong>Super easy to customize.</strong> Chose from the default styling it comes with or just add css to your theme and you&#8217;re done.</li>
<li><strong>Include the log-in, register and sign-up forms anywhere you want.</strong> &#8211; In any page, template or widget.</li>
<li><strong>Custom Avatar for your users. </strong>You don&#8217;t have to modify your theme to make this to work. It will work by default with the get_avatar function no matter where it&#8217;s used. (bbPress is also supported)</li>
<li><strong>Custom Profile fields for your users.</strong> Ask your users to select their age, enter their favorite movies, etc.</li>
<li><strong>NO-SPAM, NO-CAPCHA.</strong> Since the registration forms are in unique pages they fell off the radar of automated bots that create spam accounts. (You still have to protect the default wp registration form with a capcha. For more details, please read the <a href="http://www.cozmoslabs.com/forums/topic/adding-a-captcha-to-the-registration-form/">following</a> post)</li>
</ul>
<h4>What else is there?</h4>
<p>Why, I&#8217;m glad you asked. We&#8217;ve got <strong>Priority Support</strong>, <strong>Automatic Updates</strong>, <strong>Proper Documentation</strong> and did I say we have Priority Support? <em>We&#8217;re going to help you integrate Profile Builder Pro in your site like it was custom built from scratch.</em></p>
<h4>Still not enough?</h4>
<p>We have plans for some pretty nifty Addons for Profile Builder Pro users in the future:</p>
<ul>
<li>User Profile Pages and User Archive Listing.</li>
<li>Login With Facebook and Twitter.</li>
<li>Super Simple Paypal Payments.</li>
</ul>
<h4>What about the license?</h4>
<p><strong>Profile Builder Pro</strong> is released under <strong>GPL license (same as WordPress)</strong>. You&#8217;ll pay for Automatic Updates, Access to Support Forums, Documentation, Access to future Addons and what&#8217;s more important, <strong>YOUR payment</strong> will help us continuing our work and put food on our family&#8217;s table. Fair to say that you can use this plugin on as many WordPress sites as you see fit.</p>
<h4>Credits &amp; Thanks</h4>
<ul>
<li>Thanks to our beta testers. You&#8217;ve been more then a valuable asset to get this plugin up and running.</li>
<li>Thanks to <a href="http://justintadlock.com/">Justin Tadlock</a> (from his page templates of user registration, edit profile and login this plugin we got the idea and initial code to make this work).</li>
<li>Thanks to <a href="http://valendesigns.com/">Derek Herman</a> (we used the UI from his plugin Option Tree).</li>
<li>Thanks to everyone who downloaded and used the Basic version from <a href="http://wordpress.org/extend/plugins/profile-builder/">WordPress.org</a>.</li>
</ul>
<div class="preview_download">
	<style type="text/css">
		table.noBorder { border: 0px; width:150px;}
	</style>
	<div class="subscriber_holder" id="subscriber_modify">
					
					 
					<span class="price"><strong>$39.99</strong></span>											<!-- INSERT NON-DISCOUNT BUTTON FORM HERE; FORM APPEARS WHEN DISCOUNT WAS REQUESTED BUT CODE WAS ENTERED WRONG OR DISCOUNT WAS NOT REQUESTED-->
						<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
							<input type="hidden" name="cmd" value="_s-xclick">
							<input type="hidden" name="hosted_button_id" value="3J62P8ZXKFJM4">
							<input type="image" src="http://beta.cozmoslabs.com/wp-content/plugins/reflection-media-subscriber/includes/icons/buy_now_button.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
							<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
						</form>
															<!--<p class="free_user">
						<strong>Already have an account?</strong><br/>
						Sign-in <a href="http://www.cozmoslabs.com/profile-builder/my-account/?request=login">here</a>.
					</p><!-- .free_user -->
					
												</div>	
 <a href="http://www.cozmoslabs.com/wordpress-profile-builder/" title="Profile Builder">or learn more</a>
</div>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/' rel='bookmark' title='WordPress Profile Builder: a front-end user registration, login and edit-profile plugin'>WordPress Profile Builder: a front-end user registration, login and edit-profile plugin</a></li>
<li><a href='http://www.cozmoslabs.com/2252-profile-builder-version-1-1-6-has-arrived/' rel='bookmark' title='Profile Builder version 1.1.6 has arrived'>Profile Builder version 1.1.6 has arrived</a></li>
<li><a href='http://www.cozmoslabs.com/1494-profile-builder-beta/' rel='bookmark' title='Profile Builder Beta'>Profile Builder Beta</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>wpMail.me &#8211; a concise, once weekly free roundup of WordPress news and articles</title>
		<link>http://www.cozmoslabs.com/1452-wpmail-me-a-concise-once-weekly-free-roundup-of-wordpress-news-and-articles/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wpmail-me-a-concise-once-weekly-free-roundup-of-wordpress-news-and-articles</link>
		<comments>http://www.cozmoslabs.com/1452-wpmail-me-a-concise-once-weekly-free-roundup-of-wordpress-news-and-articles/#comments</comments>
		<pubDate>Mon, 23 May 2011 15:45:01 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[newsletter]]></category>
		<category><![CDATA[wpmail.me]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1452</guid>
		<description><![CDATA[wpMail.me is a concise, once-weekly free round up of news and articles. It&#8217;s main goal is to ease some of the information overload we encounter in our daily computing by providing with a list of curated articles, news and tutorials. Also since it&#8217;s once a week you can batch process it all in 1 hour [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://wpmail.me/"><img src="http://www.cozmoslabs.com/wp-content/uploads/2011/05/wpmail.png" alt="" title="wpmail" width="250" class="alignright size-full wp-image-1454" /></a><br />
<a href="http://wpmail.me/"><strong>wpMail.me</strong></a> is a concise, once-weekly free round up of news and articles. It&#8217;s main goal is to ease some of the information overload we encounter in our daily computing by providing with a list of curated articles, news and tutorials. Also since it&#8217;s once a week you can batch process it all in 1 hour a week, leaving you with extra free time. </p>
<p><span id="more-1452"></span></p>
<h3>Why?</h3>
<p>Information overload is something we&#8217;ve all encountered. I for one, get lost reading my feeds, hacker news, links on Twitter and the rest.</p>
<p>There are times I feel trapped, like an addict. And it&#8217;s just that: an information addiction. The problem with any addictions is that they do quite a lot of harm. There are solutions to this, like <a href="http://www.problogger.net/archives/2008/06/12/how-batch-processing-made-me-10-times-more-productive/">batch processing</a> that alleviate some of the problems but the problem remains the same: <strong>to much information.</strong></p>
<h3>Staying up to date with WordPress</h3>
<p>Staying up to date with WordPress as a developer is harder then you might thing. It&#8217;s close release cycles makes almost everything you knew 1 year ago obsolete. Custom post types, custom taxonomies, theme backgrounds, theme header images, new menu system all in the last year or so. When you try to factor in all that learning with client work and life in general you realize there&#8217;s no more time left in the day for anything else.</p>
<h3>wpMail.me</h3>
<p>The idea for a weekly newsletter came up when I found out about <a href="http://javascriptweekly.com/">Javascript Weekly</a>, a newsletter about javascript. It made sense to me that there should be something similar in the WP community, however it seams no one thought about it until now. </p>
<p><strong>So where do I gather the all the information?</strong><br />
Mostly RSS feeds, however I&#8217;m thinking of creating something semi-automatic in the future, gathering news from topsy.com, bit.ly(good resource however I need to see how exactly to pull that info), RSS feeds and WordPress Answers (stackexchange).</p>
<p>That&#8217;s it. If you like the idea please <a href="http://wpmail.me/">go and subscribe</a> and share it on twitter!</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='Byty the Free Child Theme &#8211; Built on Thematic'>Byty the Free Child Theme &#8211; Built on Thematic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1452-wpmail-me-a-concise-once-weekly-free-roundup-of-wordpress-news-and-articles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Professional WordPress Plugin Development review</title>
		<link>http://www.cozmoslabs.com/1326-professional-wordpress-plugin-development-review/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=professional-wordpress-plugin-development-review</link>
		<comments>http://www.cozmoslabs.com/1326-professional-wordpress-plugin-development-review/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 09:45:16 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Book Review]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[book review]]></category>
		<category><![CDATA[plugin development]]></category>
		<category><![CDATA[professional wordpress plugin development]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1326</guid>
		<description><![CDATA[It&#8217;s been a while since I&#8217;ve reviewed books on this blog and I think it&#8217;s about time to start doing that again. And I couldn&#8217;t have chosen a better book to start with then &#8220;Professional WordPress Plugin Development&#8221; written by Brad Williams, Ozh Richard and Justin Tadlock. This is the book I’ve been waiting for [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/671-multilingual-wordpress-wpml-review/' rel='bookmark' title='Multilingual WordPress &#8211; WPML Plugin Review'>Multilingual WordPress &#8211; WPML Plugin Review</a></li>
<li><a href='http://www.cozmoslabs.com/449-digital-experience-design-review-book/' rel='bookmark' title='&#8220;Digital Experience Design: Ideas, Industries, Interaction&#8221; &#8211; book review'>&#8220;Digital Experience Design: Ideas, Industries, Interaction&#8221; &#8211; book review</a></li>
<li><a href='http://www.cozmoslabs.com/120-interface-portability-in-web-development-the-next-big-step/' rel='bookmark' title='Front-end interface portability between CMS &#8211; the next BIG step in web-development?'>Front-end interface portability between CMS &#8211; the next BIG step in web-development?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cozmoslabs.com/wp-content/uploads/2011/03/Professional_WordPress_Plugin_Development.jpg" alt="" title="Professional_WordPress_Plugin_Development" width="200" height="281" class="alignright size-full wp-image-1331" />It&#8217;s been a while since I&#8217;ve reviewed books on this blog and I think it&#8217;s about time to start doing that again. And I couldn&#8217;t have chosen a better book to start with then <strong><a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_ss_tl?ie=UTF8&#038;tag=cozmoslabs-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0470916222">&#8220;Professional WordPress Plugin Development&#8221;</a></strong> written by <a href="http://strangework.com/">Brad Williams</a>, <a href="http://planetozh.com/blog/">Ozh Richard </a>and <a href="http://justintadlock.com/">Justin Tadlock</a>.</p>
<p>This is the book I’ve been waiting for ever since I started to work with WordPress 3 years ago. As a theme designer and developer you really have a lot of documentation online. However, the instance you need to do some wild things with WordPress you realize there just isn’t enough information to go on. I’m talking about stuff like plugin security, proper way of handling plugin settings, ajax in WordPress, cron, the rewrite API and developing for multisite. </p>
<p><span id="more-1326"></span></p>
<h3>Professional WordPress Plugin Development review</h3>
<p>A lot of Codex pages are just stubs with almost no information what so ever. </p>
<p><strong>Here are some of the dark corners of WordPress this book brought light to them:</strong></p>
<ul>
<li>Addresses how to integrate into WordPress, save settings, create widgets and shortcodes, and implement uninstall</li>
<li>Learn the proper techniques for storing data, customizing user roles, and security best practices</li>
<li>Shares techniques for using custom post types and creating and using custom taxonomies</li>
<li>How to create plugins for WordPress Multisite networks</li>
<li>Integrate user and role management</li>
<li><strong>Explores the HTTP API, JavaScript and AJAX, Cron, the Rewrite API, and more</strong></li>
</ul>
<p>The authors went into so much detail that after reading it you really get start looking at WordPress as a full fledged application framework and not just a simple CMS to display your company portfolio. </p>
<p>Most other book to date that talked about WordPress Plugin Development went around coding examples and solving particular problems. That&#8217;s ok, but you&#8217;ll never have a birds eye view of the entire API ecosystem. This is where &#8220;<strong>Professional WordPress Plugin Development</strong>&#8221; shines. Each little api function that is available in WordPress is explained in a consistent way and also shows how it interacts with the rest of the system. </p>
<p>Another great thing is explaining <strong>WordPress plugin development best practices.</strong> If you don&#8217;t have a lot of experience with WordPress plugins and don&#8217;t have the time to really research how to do things you can end up writing code that can be handled by the WordPress API in such a fashion that&#8217;s future proof. Take for instance the Plugin Settings options &#8211; if you manage them through the API any future changes to the WordPress UI will be reflected in your plugin as well. </p>
<p>All in all this book is a <strong>MUST READ</strong> by all plugin developers and theme developers alike. If you ask me all the information in this book should be added in the Codex (although that wouldn&#8217;t be fair to the writers). So go ahead and <strong><a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_ss_tl?ie=UTF8&#038;tag=cozmoslabs-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0470916222">get your self a copy from Amazon</a></strong> and start reading it today. (You can get it as a Paperback or digital download &#8211; great for code copy&#038;paste)</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/671-multilingual-wordpress-wpml-review/' rel='bookmark' title='Multilingual WordPress &#8211; WPML Plugin Review'>Multilingual WordPress &#8211; WPML Plugin Review</a></li>
<li><a href='http://www.cozmoslabs.com/449-digital-experience-design-review-book/' rel='bookmark' title='&#8220;Digital Experience Design: Ideas, Industries, Interaction&#8221; &#8211; book review'>&#8220;Digital Experience Design: Ideas, Industries, Interaction&#8221; &#8211; book review</a></li>
<li><a href='http://www.cozmoslabs.com/120-interface-portability-in-web-development-the-next-big-step/' rel='bookmark' title='Front-end interface portability between CMS &#8211; the next BIG step in web-development?'>Front-end interface portability between CMS &#8211; the next BIG step in web-development?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1326-professional-wordpress-plugin-development-review/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Cozy Child Theme</title>
		<link>http://www.cozmoslabs.com/1298-cozy-child-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cozy-child-theme</link>
		<comments>http://www.cozmoslabs.com/1298-cozy-child-theme/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 14:01:30 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Recomended Reading]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1298</guid>
		<description><![CDATA[This elegant WordPress theme started as a custom project but ended up as a Child Theme for the Thematic Framework. It&#8217;s a warm design that makes you feel comfortable. In order to install it you have to download the Thematic Theme (from which this child theme inherits all of the functionality), upload both themes (Cozy [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='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/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This elegant WordPress theme started as a custom project but ended up as a Child Theme for the Thematic Framework.</p>
<p>It&#8217;s a warm design that makes you feel comfortable. </p>
<div id="attachment_1299" class="wp-caption alignnone" style="width: 610px"><img src="http://www.cozmoslabs.com/wp-content/uploads/2011/02/cozy_theme.png" alt="" title="cozy_theme" width="600" height="326" class="size-full wp-image-1299" /><p class="wp-caption-text">Cozy Child Theme for Thematic Framework</p></div>
<p><span id="more-1298"></span></p>
<p class="info-box">
In order to install it you have to download the <a href="http://wordpress.org/extend/themes/thematic">Thematic Theme</a> (from which this child theme inherits all of the functionality), upload both themes (Cozy and Thematic) to your server in the themes folder AND THEN ACTIVATE the Cozy Theme.</p>
<div class="preview_download">
<a href="http://cozmoslabs.com/project/cozy/"><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=13" title="Version 0.1 downloaded 546 times" ><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/download.jpg" alt="Download Cozy Version 0.1" /></a>
</div>
<h3>The end of a good run</h3>
<p>This will probably be the last free child theme I&#8217;ll release for Thematic. The last couple of years have been filed with experiences I never thought possible and I&#8217;ve learned so much. However it&#8217;s time to move forward, leave Thematic behind and try a more sensible approach to theme development. I&#8217;m talking about creating Parent Themes and on top of them Child Themes and not try to solve every problem using Thematic (this is better explained by <a href="http://justintadlock.com/archives/2010/08/16/frameworks-parent-child-and-grandchild-themes">Justin Tadlock</a>) </p>
<p>This doesn&#8217;t mean I&#8217;ll stop releasing themes. On the contrary I look forward adding a couple new free designs that can be used by the community.</p>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/620-early-morning-child-theme/' rel='bookmark' title='Early Morning Child Theme'>Early Morning Child Theme</a></li>
<li><a href='http://www.cozmoslabs.com/145-byty-free-child-theme-built-thematic/' rel='bookmark' title='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/164-installing-wordpress-child-themes-customizing/' rel='bookmark' title='Installing WordPress Child Themes and Customizing the Byty Theme'>Installing WordPress Child Themes and Customizing the Byty Theme</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1298-cozy-child-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress pieces of code of the month</title>
		<link>http://www.cozmoslabs.com/1221-wordpress-pieces-of-code-of-the-month/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-pieces-of-code-of-the-month</link>
		<comments>http://www.cozmoslabs.com/1221-wordpress-pieces-of-code-of-the-month/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 11:37:34 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[in category and tag]]></category>
		<category><![CDATA[pagination]]></category>

		<guid isPermaLink="false">http://www.cozmoslabs.com/?p=1221</guid>
		<description><![CDATA[I found two pieces of code for WordPress that might come in handy from time to time. Custom Post Types pagination for the homepage It appears there&#8217;s a bug in WP 3.0 with the pagination on the homepage for custom post types. When we create an archive page for a custom post type we make [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/961-exclude-posts-from-wordpress-navigation-in-thematic/' rel='bookmark' title='Exclude posts from WordPress Navigation in Thematic'>Exclude posts from WordPress Navigation in Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/557-thematic-featured-posts/' rel='bookmark' title='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/1441-wordpress-get-comments-custom-post-type/' rel='bookmark' title='Get the latest comments for a custom post type in WordPress'>Get the latest comments for a custom post type in WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I found two pieces of code for WordPress that might come in handy from time to time.</p>
<h3>Custom Post Types pagination for the homepage</h3>
<p>It appears there&#8217;s a bug in WP 3.0 with the pagination on the homepage for custom post types.</p>
<p>When we create an archive page for a custom post type we make a page template where we use <a href="http://codex.wordpress.org/Function_Reference/query_posts">query_posts()</a> to list them.</p>
<p>However, when we make try to put the pagination in place using <em>get_query_var(&#8216;paged&#8217;)</em> it fails.</p>

<div class="wp_codebox"><table><tr id="p12213"><td class="code" id="p1221code3"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$paged</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//this code doesn't work</span>
<span style="color: #666666; font-style: italic;">//$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//this code works</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
	<span style="color: #000088;">$paged</span> <span style="color: #339933;">=</span> get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
	<span style="color: #000088;">$paged</span> <span style="color: #339933;">=</span> get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">else</span>
	<span style="color: #000088;">$paged</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$args</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;">'post_type'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'cpt'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'paged'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #000088;">$paged</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'posts_per_page'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'post_status'</span> <span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #0000ff;">'publish'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
query_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<div class="preview_download">
Thanks go to <a href="http://www.wptheming.com/">Devin Price</a> for pointing me in the right direction.
</div>
<h3>Extend category permalinks to query for tags</h3>
<p>While most people don&#8217;t need this, from time to time you might want to have query posts that are in category &#8216;x&#8217; and are tagged with &#8216;y&#8217;. WordPress can query for that very easily, all we need to do is add the permalinks structure: <em>www.example.com/category/x/tag/y/</em></p>

<div class="wp_codebox"><table><tr id="p12214"><td class="code" id="p1221code4"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> extend_category_tag_flush_rewrite_rules<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;">global</span> <span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">flush_rules</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'extend_category_tag_flush_rewrite_rules'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> extend_category_tag_add_rewrite_rules<span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_rewrite</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$rules</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;">$structures</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: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_category_permastruct</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_tag_permastruct</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</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;">$structures</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$s</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$rules</span> <span style="color: #339933;">+=</span> <span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">generate_rewrite_rules</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$s</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rules</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$rules</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$wp_rewrite</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rules</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'generate_rewrite_rules'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'extend_category_tag_add_rewrite_rules'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>You can add this code in your function.php file the theme came with. </p>
<div class="preview_download">
Code based on: <a href="http://sltaylor.co.uk/blog/wordpress-category-archives-by-date/">sltaylor.co.uk/blog/</a>
</div>
<p>Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/961-exclude-posts-from-wordpress-navigation-in-thematic/' rel='bookmark' title='Exclude posts from WordPress Navigation in Thematic'>Exclude posts from WordPress Navigation in Thematic</a></li>
<li><a href='http://www.cozmoslabs.com/557-thematic-featured-posts/' rel='bookmark' title='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/1441-wordpress-get-comments-custom-post-type/' rel='bookmark' title='Get the latest comments for a custom post type in WordPress'>Get the latest comments for a custom post type in WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1221-wordpress-pieces-of-code-of-the-month/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress user registration template and custom user profile fields</title>
		<link>http://www.cozmoslabs.com/1012-wordpress-user-registration-template-and-custom-user-profile-fields/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-user-registration-template-and-custom-user-profile-fields</link>
		<comments>http://www.cozmoslabs.com/1012-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[UPDATE This tutorial, while providing a good introduction to the concept, hasn&#8217;t been updated since it was written. To this end we&#8217;ve written a free plugin that let&#8217;s you add all these front-end forms through the easy use of shortcodes: Profile Builder I&#8217;ve been playing a lot lately with the user registration template (I&#8217;ve used [...]
Related posts:<ol>
<li><a href='http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/' rel='bookmark' title='WordPress Profile Builder: a front-end user registration, login and edit-profile plugin'>WordPress Profile Builder: a front-end user registration, login and edit-profile plugin</a></li>
<li><a href='http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/' rel='bookmark' title='Profile Builder Pro is WordPress Registration Done Right'>Profile Builder Pro is WordPress Registration Done Right</a></li>
<li><a href='http://www.cozmoslabs.com/48-10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="update">
<h3 style="text-align:center;">UPDATE</h3>
<p>This tutorial, while providing a good introduction to the concept, hasn&#8217;t been updated since it was written. </p>
<p>To this end we&#8217;ve written a free plugin that let&#8217;s you add all these front-end forms through the easy use of shortcodes: <a href="http://www.cozmoslabs.com/wordpress-profile-builder/"><strong>Profile Builder</strong></a></p>
</div>
<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 5493 times" ><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/download.jpg" 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="p101215"><td class="code" id="p1012code15"><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="p101216"><td class="code" id="p1012code16"><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="p101217"><td class="code" id="p1012code17"><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="p101218"><td class="code" id="p1012code18"><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="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: #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="p101220"><td class="code" id="p1012code20"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009933; font-style: italic;">/**
 * Template Name: 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="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: #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="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: #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="p101223"><td class="code" id="p1012code23"><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="p101224"><td class="code" id="p1012code24"><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 5493 times" ><img src="http://www.cozmoslabs.com/wp-content/uploads/2010/11/download.jpg" 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/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/' rel='bookmark' title='WordPress Profile Builder: a front-end user registration, login and edit-profile plugin'>WordPress Profile Builder: a front-end user registration, login and edit-profile plugin</a></li>
<li><a href='http://www.cozmoslabs.com/1561-profile-builder-pro-is-wordpress-registration-done-right/' rel='bookmark' title='Profile Builder Pro is WordPress Registration Done Right'>Profile Builder Pro is WordPress Registration Done Right</a></li>
<li><a href='http://www.cozmoslabs.com/48-10-design-tips-for-your-custom-wordpress-theme-built-with-thematic/' rel='bookmark' title='10 design tips for your custom wordpress theme built with thematic'>10 design tips for your custom wordpress theme built with thematic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cozmoslabs.com/1012-wordpress-user-registration-template-and-custom-user-profile-fields/feed/</wfw:commentRss>
		<slash:comments>124</slash:comments>
		</item>
	</channel>
</rss>

