<?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>AEXT.NET MAGAZINE &#187; Theme Design</title>
	<atom:link href="http://aext.net/tag/theme-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://aext.net</link>
	<description>How to Create a Website</description>
	<lastBuildDate>Wed, 30 May 2012 05:03:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WordPress Theme from Scratch &#8211; Day 3: HTML to WordPress</title>
		<link>http://aext.net/2010/01/wordpress-theme-from-scratch-day-3-html-to-wordpress/</link>
		<comments>http://aext.net/2010/01/wordpress-theme-from-scratch-day-3-html-to-wordpress/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 09:52:39 +0000</pubDate>
		<dc:creator>Lief</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Popular]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Theme]]></category>

		<guid isPermaLink="false">http://aext.net/?p=2571</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/01/wordpress-theme-from-scratch-day-3-html-to-wordpress/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/01/wordpress-theme-from-scratch-day-3-html-to-wordpress/" height="61" width="51" /></a></p>This tutorial is in the series of â€œWordPress Theme from Scratchâ€ that helps you build a WordPress theme by yourself from nothing. Previous tutorial in this series helped we convert a mockup in PSD to HTML and today, we will continue to go to last tutorial: build WordPress theme from the HTML file. <a href="http://aext.net/2010/01/wordpress-theme-from-scratch-day-3-html-to-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2010/01/wordpress-theme-from-scratch-day-3-html-to-wordpress/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2010/01/wordpress-theme-from-scratch-day-3-html-to-wordpress/" height="61" width="51" /></a></p><p>This tutorial is in the series of â€œWordPress Theme from Scratchâ€ that helps you build a WordPress theme by yourself from nothing. Previous tutorial in this series helped we convert a mockup in PSD to HTML and today, we will continue to go to last tutorial: build WordPress theme from the HTML file.</p>
<p><span id="more-2571"></span></p>
<p>The most difference between WordPress and other blog platforms in theme development is WordPress theme more easier than others for development. In basic, the elements of wordpress theme likes blocks and building WordPress theme likes we build these blocks to make them to fit together.</p>
<p>In WordPress template, some file we will use to display it in all page on our website such as: header, footer, sidebar &#8230; and other file we have to customize it to fit our requirements under specific conditions. If you are going to build a WordPress theme, I recommend to take a look at &#8220;<a href="http://codex.wordpress.org/Using_Themes">Using_Themes section in WordPress Codex</a>&#8221; to understand how a theme built.</p>
<div class="demo-download">
<ul>
<li><a href="http://aext.net/Downloads/FrozenFlirt.zip" target="_blank"><span class="downloadit">Download</span></a></li>
<li><a href="http://aext.net/wordpress-theme-tutorial/frozenflirt/" target="_blank"><span class="demoit">Demo</span></a></li>
</ul>
</div>
<h3>Prepare files for theme</h3>
<hr />
<p>In this tutorial, I will help you build your first WordPress theme that <em>works</em>. That means I&#8217;m gonna build some important files that WordPress requires to run without errors. My FrozenFlirt WordPress theme should contains these files:</p>
<pre>--<strong>FrozenFlirt</strong>
-----header.php
-----index.php (Homepage display)
-----single.php (Post display)
-----archive.php (Archive display for categories, tags, date, authors...)
-----comments.php (Comment temple include form, post comments)
-----sidebar.php
-----functions.php (All of your template functions will go here)
-----footer.php
-----style.css
-----<strong>image</strong>
-----<strong>js</strong></pre>
<p><strong>Note:</strong> These files need for your template works with basic requirements such as: post, categories, tags, authors, search &#8230; viewing. If you want more, build as same as we are doing here with 404 display, links template &#8230;</p>
<p>Before start, copy all images in this HTML layout to <strong>images</strong> directory and all css files to the root theme folder. Furthermore, this theme is using one javascript file call <em>script.js</em>, so copy this file to folder <strong>js</strong>.</p>
<p>Let&#8217;s begin!</p>
<h3>Split HTML layout</h3>
<hr />
<p>We will use header, sidebar and footer to display in all pages, so we need to split our HTML file into 3 main parts: header.php, sidebar.php and footer.php.</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-2583" title="WordPress theme splitting template files 2" src="http://aext.net/wp-contents/uploads/2010/01/WordPress-theme-splitting-template-files-2-e1262852552626.png" alt="" width="500" height="609" /></div>
<p>Refer to the HTML file in previous tutorial: <a href="http://aext.net/2009/12/wordpress-theme-from-scratch-%E2%80%93-day-2-psd-to-html/">WordPress Theme from Scratch â€“ Day 2: PSD to HTML</a> and after splitting, we have these files:</p>
<p>header.php</p>
<pre class="html"><em><span style="color: #236e25;">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;</span></em>
<span style="color: #881280;">&lt;html </span><span style="color: #994500;">xmlns</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"http://www.w3.org/1999/xhtml"</span><span style="color: #881280;">&gt;</span>
<span style="color: #881280;">&lt;head&gt;</span>
    <span style="color: #881280;">&lt;meta </span><span style="color: #994500;">http-equiv</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Content-Type"</span><span style="color: #994500;">content</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/html; charset=UTF-8"</span><span style="color: #881280;"> /&gt;</span>
    <span style="color: #881280;">&lt;title&gt;</span>FrozenFlirt WordPress Theme From Scratch<span style="color: #881280;">&lt;/title&gt;</span>
    <span style="color: #881280;">&lt;link </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"reset.css"</span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"stylesheet"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/css"</span><span style="color: #881280;"> /&gt;</span>
    <span style="color: #881280;">&lt;link </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"style.css"</span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"stylesheet"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/css"</span><span style="color: #881280;"> /&gt;</span>
    <span style="color: #881280;">&lt;link </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pagenavi-css.css"</span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"stylesheet"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/css"</span><span style="color: #881280;"> /&gt;</span>
    <span style="color: #881280;">&lt;script </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/javascript"</span><span style="color: #881280;">&gt;&lt;/script&gt;</span>
    <span style="color: #881280;">&lt;script </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"script.js"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/javascript"</span><span style="color: #881280;">&gt;&lt;/script&gt;</span>
    <span style="color: #881280;">&lt;script </span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/javascript"</span><span style="color: #881280;">&gt;</span>

        $(document).<span style="color: #003369;">ready</span>(<span style="color: #881350;">function</span>() {

            <span style="color: #881350;">var</span> id = <span style="color: #760f15;">'35591378@N03'</span>;
            <span style="color: #003369;">flickr</span>(id);

            });

    <span style="color: #881280;">&lt;/script&gt;</span>

<span style="color: #881280;">&lt;/head&gt;</span>

<span style="color: #881280;">&lt;body&gt;</span>

    <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"main-wrapper"</span><span style="color: #881280;">&gt;</span>

        <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"container"</span><span style="color: #881280;">&gt;</span>

            <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"header"</span><span style="color: #881280;">&gt;</span>

                <span style="color: #881280;">&lt;ul </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"topmenu"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #881280;">&lt;li&gt;</span>
                        <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Home Page"</span><span style="color: #881280;">&gt;&lt;span&gt;</span>Home<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span>
                    <span style="color: #881280;">&lt;/li&gt;</span>
                    <span style="color: #881280;">&lt;li&gt;</span>
                        <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Tutorial Category"</span><span style="color: #881280;">&gt;&lt;span&gt;</span>Tutorial<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span>
                    <span style="color: #881280;">&lt;/li&gt;</span>
                    <span style="color: #881280;">&lt;li&gt;</span>
                        <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Freebie Category"</span><span style="color: #881280;">&gt;&lt;span&gt;</span>Freebie<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span>
                    <span style="color: #881280;">&lt;/li&gt;</span>
                    <span style="color: #881280;">&lt;li&gt;</span>
                        <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Inspiration Category"</span><span style="color: #881280;">&gt;&lt;span&gt;</span>Inspiration<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span>
                    <span style="color: #881280;">&lt;/li&gt;</span>
                    <span style="color: #881280;">&lt;li&gt;</span>
                        <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Resources Category"</span><span style="color: #881280;">&gt;&lt;span&gt;</span>Resources<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span>
                    <span style="color: #881280;">&lt;/li&gt;</span>
                <span style="color: #881280;">&lt;/ul&gt;</span>

                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"topsearch"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #881280;">&lt;form </span><span style="color: #994500;">action</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"http://aext.net/"</span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"searchform"</span><span style="color: #994500;">method</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"get"</span><span style="color: #881280;">&gt;</span>
                        <span style="color: #881280;">&lt;fieldset&gt;</span>
                            <span style="color: #881280;">&lt;input </span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text"</span><span style="color: #881280;">                                    </span><span style="color: #994500;">onblur</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"if (this.value == '') {this.value = 'Type Keywords And Hit Enter...';}"</span><span style="color: #881280;">                                    </span><span style="color: #994500;">onfocus</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"if(this.value == 'Type Keywords And Hit Enter...') {this.value = '';}"</span><span style="color: #881280;">                                    </span><span style="color: #994500;">value</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Type Keywords And Hit Enter..."</span><span style="color: #881280;">                                    </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"searchfield"</span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"searchbox"</span><span style="color: #994500;">name</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"s"</span><span style="color: #881280;">/&gt;</span>
                        <span style="color: #881280;">&lt;/fieldset&gt;</span>
                    <span style="color: #881280;">&lt;/form&gt;</span>
                <span style="color: #881280;">&lt;/div&gt;</span>

                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"clear"</span><span style="color: #881280;">&gt;&lt;/div&gt;</span>

                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"logo"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"FrozenFlirt Homepage"</span><span style="color: #881280;">&gt;&lt;h1&gt;</span>FrozenFlirt Theme<span style="color: #881280;">&lt;/h1&gt;&lt;/a&gt;</span>
                    <span style="color: #881280;">&lt;h3&gt;</span>"Wordpress Theme From Scratch"<span style="color: #881280;">&lt;/h3&gt;</span>
                <span style="color: #881280;">&lt;/div&gt;</span>

                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"clear"</span><span style="color: #881280;">&gt;&lt;/div&gt;</span>

            <span style="color: #881280;">&lt;/div&gt;</span></pre>
<p>sidebar.php</p>
<pre class="html">            <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"sidebar"</span><span style="color: #881280;">&gt;</span>

                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"widget"</span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"adblocks"</span><span style="color: #881280;">&gt;</span>

                    <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">""</span><span style="color: #881280;">&gt;&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"images/ads/vivatheme.png"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Viva Theme"</span><span style="color: #881280;"> /&gt;&lt;/a&gt;</span>
                    <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">""</span><span style="color: #881280;">&gt;&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"images/ads/pixelcrayons.jpg"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Pixel Crayons"</span><span style="color: #881280;"> /&gt;&lt;/a&gt;</span>
                    <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">""</span><span style="color: #881280;">&gt;&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"images/ads/wpbest.gif"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"WPBEST"</span><span style="color: #881280;"> /&gt;&lt;/a&gt;</span>
                    <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">""</span><span style="color: #881280;">&gt;&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"images/ads/buysellstockdesign.gif"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Buy Sell Stock Design"</span><span style="color: #881280;"> /&gt;&lt;/a&gt;</span>

                <span style="color: #881280;">&lt;/div&gt;</span>

                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"widget"</span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"popular-posts"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #881280;">&lt;h3&gt;</span>Popular Posts<span style="color: #881280;">&lt;/h3&gt;</span>
                    <span style="color: #881280;">&lt;ul&gt;</span>

                        <span style="color: #881280;">&lt;li&gt;&lt;a </span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"blablabla"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #881280;">&gt;&lt;span </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"wpp-post-title"</span><span style="color: #881280;">&gt;</span>5 New Useful jQuery Plugins For Your Next Projects<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span> <span style="color: #881280;">&lt;/li&gt;</span>
                        <span style="color: #881280;">&lt;li&gt;&lt;a </span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"blablabla"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #881280;">&gt;&lt;span </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"wpp-post-title"</span><span style="color: #881280;">&gt;</span>35 Fresh and Cool Web Design Interfaces for Inspiration<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span> <span style="color: #881280;">&lt;/li&gt;</span>
                        <span style="color: #881280;">&lt;li&gt;&lt;a </span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"blablabla"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #881280;">&gt;&lt;span </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"wpp-post-title"</span><span style="color: #881280;">&gt;</span>Bubble Effect with CSS<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span> <span style="color: #881280;">&lt;/li&gt;</span>
                        <span style="color: #881280;">&lt;li&gt;&lt;a </span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"blablabla"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #881280;">&gt;&lt;span </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"wpp-post-title"</span><span style="color: #881280;">&gt;</span>CSS Absolute Positioning: Create A Fancy Link Block<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span> <span style="color: #881280;">&lt;/li&gt;</span>
                        <span style="color: #881280;">&lt;li&gt;&lt;a </span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"blablabla"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #881280;">&gt;&lt;span </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"wpp-post-title"</span><span style="color: #881280;">&gt;</span>Incredible Drop Down Menu Solution With CSS Only<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span> <span style="color: #881280;">&lt;/li&gt;</span>
                    <span style="color: #881280;">&lt;/ul&gt;</span>

                <span style="color: #881280;">&lt;/div&gt;</span>

            <span style="color: #881280;">&lt;/div&gt;</span>

            <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"clear"</span><span style="color: #881280;">&gt;&lt;/div&gt;</span></pre>
<p>footer.php</p>
<pre class="html">            <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"flickr-stream"</span><span style="color: #881280;">&gt;</span>

                <span style="color: #881280;">&lt;h3&gt;</span>Flickr Stream<span style="color: #881280;">&lt;/h3&gt;</span>
                <span style="color: #881280;">&lt;hr /&gt;</span>
                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"clear"</span><span style="color: #881280;">&gt;&lt;/div&gt;</span>
                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"flickr"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #881280;">&lt;noscript&gt;</span>Your message for people w/o javascript enabled goes here.<span style="color: #881280;">&lt;/noscript&gt;</span>
                <span style="color: #881280;">&lt;/div&gt;</span>

            <span style="color: #881280;">&lt;/div&gt;</span>      

            <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"twitter-update"</span><span style="color: #881280;">&gt;</span>
                <span style="color: #881280;">&lt;h3&gt;</span>Twitter Update<span style="color: #881280;">&lt;/h3&gt;</span>
                <span style="color: #881280;">&lt;hr /&gt;</span>
                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"clear"</span><span style="color: #881280;">&gt;&lt;/div&gt;</span>
                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"twitter"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #881280;">&lt;ul </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">'twitter_update_list'</span><span style="color: #881280;">&gt;&lt;/ul&gt;</span>
                <span style="color: #881280;">&lt;/div&gt;</span>
                <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"http://twitter.com/prlamnguyen"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Follow me on twitter"</span><span style="color: #881280;">&gt;&lt;span </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"followme"</span><span style="color: #881280;">&gt;</span>Follow Me!<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span>

            <span style="color: #881280;">&lt;/div&gt;</span>                      

        <span style="color: #881280;">&lt;/div&gt;</span>

    <span style="color: #881280;">&lt;/div&gt;</span>

    <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"clear"</span><span style="color: #881280;">&gt;&lt;/div&gt;</span>

    <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"footer-wrapper"</span><span style="color: #881280;">&gt;</span>

        <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"container"</span><span style="color: #881280;">&gt;</span>

            <span style="color: #881280;">&lt;p </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"copyright"</span><span style="color: #881280;">&gt;&amp;copy;</span>2009 FrozenFlirt. All Rights Reserved<span style="color: #881280;">&lt;/p&gt;</span>

            <span style="color: #881280;">&lt;p </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"designedby"</span><span style="color: #881280;">&gt;</span>WordPress Theme Design by <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"http://aext.net"</span><span style="color: #881280;">&gt;&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"images/aext.png"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Theme by AEXT.NET"</span><span style="color: #881280;"> /&gt;&lt;/a&gt;&lt;/p&gt;</span>

        <span style="color: #881280;">&lt;/div&gt;</span>

    <span style="color: #881280;">&lt;/div&gt;</span>

    <span style="color: #881280;">&lt;script </span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/javascript"</span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"http://twitter.com/javascripts/blogger.js"</span><span style="color: #881280;">&gt;&lt;/script&gt;</span>
    <span style="color: #881280;">&lt;script </span><span style="color: #994500;">text</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/javascript"</span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"http://twitter.com/statuses/user_timeline/prlamnguyen.json?callback=twitterCallback2&amp;count=2"</span><span style="color: #881280;">&gt;&lt;/script&gt;</span>

<span style="color: #881280;">&lt;/body&gt;</span>
<span style="color: #881280;">&lt;/html&gt;</span></pre>
<p>The remain part we will use for replace with the content.</p>
<h3>header.php</h3>
<hr />
<p>The header file need to declare the blog title, description (if you are using SEO plugin, I don&#8217;t think this part is important), blog feed, pingback&#8230; And off course, you need to put your stylesheet here.</p>
<p>Put these code to your header for:</p>
<p>HTML type</p>
<pre class="html"><span style="color: #881280;">&lt;meta </span><span style="color: #994500;">http-equiv</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Content-Type"</span><span style="color: #994500;">content</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'html_type'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">; charset=</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'charset'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;"> /&gt;</span></pre>
<p>Blog title</p>
<pre class="html"><span style="color: #881280;">&lt;title&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">wp_title</span>(<span style="color: #eb7300;">'&amp;laquo;'</span>, <span style="color: #881350;">true</span>, <span style="color: #eb7300;">'right'</span>); <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'name'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/title&gt;</span></pre>
<p>Blog description</p>
<pre class="html"><span style="color: #881280;">&lt;meta </span><span style="color: #994500;">name</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"description"</span><span style="color: #994500;">content</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'description'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;"> /&gt;</span></pre>
<p>Feed and pingback</p>
<pre class="html"><span style="color: #881280;">&lt;link </span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"alternate"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"application/rss+xml"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'name'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;"> RSS Feed"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'rss2_url'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;"> /&gt;</span>
<span style="color: #881280;">&lt;link </span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"alternate"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"application/atom+xml"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'name'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;"> Atom Feed"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'atom_url'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;"> /&gt;</span>
<span style="color: #881280;">&lt;link </span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pingback"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'pingback_url'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;"> /&gt;</span></pre>
<p>Because you will upload this theme to the themes folder, you need to gather the blog directory to import exactly the url to your css, javascript &#8230; files. Using this code, you will get the url to your template folder:</p>
<pre class="html"><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'template_url'</span>); <span style="color: #dd0000;">?&gt;</span></pre>
<p>Link to your stylesheet using code above:</p>
<pre class="html"><span style="color: #dd0000;">&lt;?php</span>

  <span style="color: #881350;">print</span> <span style="color: #eb7300;">'&lt;style type="text/css" media="all"&gt;'</span>;

  <span style="color: #881350;">print</span> <span style="color: #eb7300;">'@import "'</span>.<span style="color: #003369;">get_bloginfo</span>(<span style="color: #eb7300;">'template_url'</span>).<span style="color: #eb7300;">'/reset.css";'</span>;
  <span style="color: #881350;">print</span> <span style="color: #eb7300;">'@import "'</span>.<span style="color: #003369;">get_bloginfo</span>(<span style="color: #eb7300;">'template_url'</span>).<span style="color: #eb7300;">'/style.css";'</span>;  
  <span style="color: #881350;">print</span> <span style="color: #eb7300;">'@import "'</span>.<span style="color: #003369;">get_bloginfo</span>(<span style="color: #eb7300;">'template_url'</span>).<span style="color: #eb7300;">'/pagenavi-css.css";'</span>; 

  <span style="color: #881350;">print</span> <span style="color: #eb7300;">'&lt;/style&gt;'</span>;

<span style="color: #dd0000;">?&gt;</span></pre>
<p>For more information about <em>bloginfo</em>, check this page <a href="http://codex.wordpress.org/Bloginfo">Template Tags/bloginfo</a>.</p>
<p>DON&#8217;T FORGET to put these code before closing the head tag</p>
<pre class="html"><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">wp_head</span>(); <span style="color: #dd0000;">?&gt;</span></pre>
<p>This is one of the most essential theme hooks. You use this hook by having your function echo output to the browser, or by having it perform background tasks. This is very important because all of the plugins installed will use this hook to output their code such as css and javascript to template header.</p>
<p>In this theme, you can see that I made the rounded border style for the categories link on header. It will be easy to list all category links if we just make simple links by using this code:</p>
<pre class="html">    <span style="color: #881280;">&lt;ul&gt;</span>
      <span style="color: #881280;">&lt;li&gt;&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'url'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;">&gt;</span>Home<span style="color: #881280;">&lt;/a&gt;&lt;/li&gt;</span>

      <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #003369;">wp_list_categories</span>(<span style="color: #eb7300;">'echo=0&amp;title_li='</span>); <span style="color: #dd0000;">?&gt;</span>

    <span style="color: #881280;">&lt;/ul&gt;</span></pre>
<p>However, this function just generate a list of category with links and we cannot put a span tag inside the link to make a rounded border style like what we do with the HTML template.</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-2606" title="Wordpress Theme Rounded Border Link" src="http://aext.net/wp-contents/uploads/2010/01/Wordpress-Theme-Rounded-Border-Link.png" alt="" width="500" height="166" /></div>
<p>This is why we use this code instead;</p>
<pre class="html"><span style="color: #881280;">&lt;ul </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"topmenu"</span><span style="color: #881280;">&gt;</span>
    <span style="color: #881280;">&lt;li&gt;</span>
       <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'url'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Home Page"</span><span style="color: #881280;">&gt;&lt;span&gt;</span>Home<span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span>
    <span style="color: #881280;">&lt;/li&gt;</span>

    <span style="color: #dd0000;">&lt;?php</span>

        <span style="color: #825900;">$args</span>=<span style="color: #881350;">array</span>(
            <span style="color: #eb7300;">'orderby'</span> =&gt; <span style="color: #eb7300;">'name'</span>,
            <span style="color: #eb7300;">'order'</span> =&gt; <span style="color: #eb7300;">'ASC'</span>
        );

        <span style="color: #825900;">$categories</span>=<span style="color: #003369;">get_categories</span>(<span style="color: #825900;">$args</span>);

            <span style="color: #881350;">foreach</span>(<span style="color: #825900;">$categories</span> <span style="color: #881350;">as</span> <span style="color: #825900;">$category</span>) {
                <span style="color: #881350;">echo</span> <span style="color: #eb7300;">'&lt;li&gt;'</span>;
                <span style="color: #881350;">echo</span> <span style="color: #eb7300;">'&lt;a href="'</span> . <span style="color: #003369;">get_category_link</span>( <span style="color: #825900;">$category</span>-&gt;term_id ) . <span style="color: #eb7300;">'" title="'</span> . <span style="color: #661aa9;">sprintf</span>( <span style="color: #003369;">__</span>( <span style="color: #eb7300;">"View all posts in %s"</span> ),                       <span style="color: #825900;">$category</span>-&gt;name ) . <span style="color: #eb7300;">'" '</span> . <span style="color: #eb7300;">'&gt;&lt;span&gt;'</span> . <span style="color: #825900;">$category</span>-&gt;name.<span style="color: #eb7300;">'&lt;/span&gt;&lt;/a&gt; &lt;/p&gt; '</span>;
                <span style="color: #881350;">echo</span> <span style="color: #eb7300;">'&lt;/li&gt;'</span>;
            }
    <span style="color: #dd0000;">?&gt;</span>

<span style="color: #881280;">&lt;/ul&gt;</span></pre>
<p>Now, with the css code I provided previous tutorial, we can build great rounded border link style.</p>
<p>[smartads]</p>
<h3>sidebar.php</h3>
<hr />
<p>Actually, the sidebar is very simple. Themes usually have at least 1 or 2 sidebars, in this case, we have one. Each section in the sidebar is known as a &#8220;widget&#8221; that you can add or remove, and move up or down. You can configure your sidebar by going to <strong>Appearance &gt; Widgets</strong>. Because nothing is special here, we only need to make it ready for widgets. That means you can add/remove widget in your sidebar in admin panel. In this case, I will keep the ads section as HTML, other widgets will be updated through widgets configuration.</p>
<p>In your sidebar.php, add these code:</p>
<pre class="html"><span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"sidebar"</span><span style="color: #881280;">&gt;</span>

    <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"widget"</span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"adblocks"</span><span style="color: #881280;">&gt;</span>

        <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">""</span><span style="color: #881280;">&gt;</span>
            <span style="color: #881280;">&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'template_directory'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">/images/ads/vivatheme.png"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Viva Theme"</span><span style="color: #881280;"> /&gt;</span>
        <span style="color: #881280;">&lt;/a&gt;</span>
        <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">""</span><span style="color: #881280;">&gt;</span>
            <span style="color: #881280;">&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'template_directory'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">/images/ads/pixelcrayons.jpg"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Pixel Crayons"</span><span style="color: #881280;"> /&gt;</span>
        <span style="color: #881280;">&lt;/a&gt;</span>
        <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">""</span><span style="color: #881280;">&gt;</span>
            <span style="color: #881280;">&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'template_directory'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">/images/ads/wpbest.gif"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"WPBEST"</span><span style="color: #881280;"> /&gt;</span>
        <span style="color: #881280;">&lt;/a&gt;</span>
        <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">""</span><span style="color: #881280;">&gt;</span>
            <span style="color: #881280;">&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'template_directory'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">/images/ads/buysellstockdesign.gif"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Buy Sell Stock Design"</span><span style="color: #881280;"> /&gt;</span>
        <span style="color: #881280;">&lt;/a&gt;</span>

    <span style="color: #881280;">&lt;/div&gt;</span>

    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">if</span>( !<span style="color: #661aa9;">function_exists</span>(<span style="color: #eb7300;">'dynamic_sidebar'</span>) || !<span style="color: #003369;">dynamic_sidebar</span>() ) : <span style="color: #dd0000;">?&gt;</span>

    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">endif</span>; <span style="color: #dd0000;">?&gt;</span>

<span style="color: #881280;">&lt;/div&gt;</span>

<span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"clear"</span><span style="color: #881280;">&gt;&lt;/div&gt;</span></pre>
<p>The code above will keep the ads section stays in the sidebar even when you add widgets in admin panel or not. Other widgets will be added through admin panel and be right next below to ads block.</p>
<p>However, that&#8217;s not enough. Because, in this case, we are setting up the sidebar widgets as div elements, we need to set up the sidebar format by using <em>register_sidebar()</em> in functions.php file. In functions.php file, add these code:</p>
<pre class="php"><em><span style="color: #236e25;">// register sidebars </span></em><span style="color: #881350;">if</span>( <span style="color: #661aa9;">function_exists</span>(<span style="color: #eb7300;">'register_sidebar'</span>)) {
    <span style="color: #003369;">register_sidebar</span>(<span style="color: #881350;">array</span>(
        <span style="color: #eb7300;">'name'</span> =&gt; <span style="color: #eb7300;">'Default sidebar'</span>,
        <span style="color: #eb7300;">'id'</span> =&gt; <span style="color: #eb7300;">'sidebar-1'</span>,
        <span style="color: #eb7300;">'before_widget'</span> =&gt; <span style="color: #eb7300;">'&lt;div class="widget" id="%1$s"&gt;'</span>,
        <span style="color: #eb7300;">'after_widget'</span> =&gt; <span style="color: #eb7300;">'&lt;/div&gt;'</span>,
        <span style="color: #eb7300;">'before_title'</span> =&gt; <span style="color: #eb7300;">'&lt;h3&gt;'</span>,
        <span style="color: #eb7300;">'after_title'</span> =&gt; <span style="color: #eb7300;">'&lt;/h3&gt;'</span>
    ));
}</pre>
<p>This code used for register the default side that all widgets inside it will come inside div element with class name <em>widget</em> and their id by plugin widgets. The title of each widget will be wrap by an <em>h3</em> tag.</p>
<p>That&#8217;s all you need for a sidebar with widget ready. Download this plugin <a href="http://wordpress.org/extend/plugins/wordpress-popular-posts/">WordPress Popular Posts</a>, install, active then drag the widget to the sidebar. Done!</p>
<h3>footer.php file</h3>
<hr />
<p>Honestly, there is nothing important here. Some blog design their beautiful footer with a lot of stuff, but in this case we only create two widgets for Flickr stream and Twitter update using javascript to make this tutorial simple. These widget display will depend on the user&#8217;s Flirkr and Twitter account, so we will create these widget display base on the options that user will put their account in. Luckily I published an useful posts &#8220;<a href="http://aext.net/2009/10/wordpress-theme-design-with-options-adminstration/">WordPress Theme Design with Options Adminstration</a>&#8220;. Now, you have to check this post first because it&#8217;s very complicated step that should not put here for a very long long long tutorial. It&#8217;s not necessary, but at least put some code for this tutorial more complete.</p>
<p>In functions.php file, put these code for theme options:</p>
<pre class="php"><em><span style="color: #236e25;">// theme options </span></em><span style="color: #825900;">$options</span> = <span style="color: #881350;">array</span>(

  <span style="color: #881350;">array</span>(    
    <span style="color: #eb7300;">"name"</span> =&gt; <span style="color: #eb7300;">"&lt;strong&gt;Flickr ID&lt;/strong&gt;"</span>,
    <span style="color: #eb7300;">"desc"</span> =&gt; <span style="color: #eb7300;">"Enter your Flickr ID to display Flickr Stream widget"</span>,
    <span style="color: #eb7300;">"id"</span> =&gt; <span style="color: #eb7300;">"flickr_account"</span>,
    <span style="color: #eb7300;">"default"</span> =&gt; <span style="color: #eb7300;">""</span>),

  <span style="color: #881350;">array</span>(    
    <span style="color: #eb7300;">"name"</span> =&gt; <span style="color: #eb7300;">"&lt;strong&gt;Twitter Account&lt;/strong&gt;"</span>,
    <span style="color: #eb7300;">"desc"</span> =&gt; <span style="color: #eb7300;">"Enter your Twitter username to display Twitter Update widget"</span>,
    <span style="color: #eb7300;">"id"</span> =&gt; <span style="color: #eb7300;">"twitter_account"</span>,
    <span style="color: #eb7300;">"default"</span> =&gt; <span style="color: #eb7300;">"prlamnguyen"</span>),

);</pre>
<p>These lines of code will control the form submission of the theme options:</p>
<pre class="php"><span style="color: #881350;">function</span> <span style="color: #003369;">frozenflirt_options</span>() {
  <span style="color: #881350;">global</span> <span style="color: #825900;">$options</span>;

  <span style="color: #881350;">if</span>(<span style="color: #eb7300;">'theme_save'</span>== <span style="color: #825900;">$_REQUEST</span>[<span style="color: #eb7300;">'action'</span>] ) {

    <span style="color: #881350;">foreach</span>(<span style="color: #825900;">$options</span> <span style="color: #881350;">as</span> <span style="color: #825900;">$value</span>) {
     <span style="color: #881350;">if</span>( !<span style="color: #003369;">isset</span>( <span style="color: #825900;">$_REQUEST</span>[ <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>] ] ) ) {  } <span style="color: #881350;">else</span> { <span style="color: #003369;">update_option</span>( <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>], <span style="color: #661aa9;">stripslashes</span>(<span style="color: #825900;">$_REQUEST</span>[ <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>]])); } }
     <span style="color: #881350;">if</span>(<span style="color: #661aa9;">stristr</span>(<span style="color: #825900;">$_SERVER</span>[<span style="color: #eb7300;">'REQUEST_URI'</span>],<span style="color: #eb7300;">'&amp;saved=true'</span>)) {
     <span style="color: #825900;">$location</span> = <span style="color: #825900;">$_SERVER</span>[<span style="color: #eb7300;">'REQUEST_URI'</span>];
    } <span style="color: #881350;">else</span> {
     <span style="color: #825900;">$location</span> = <span style="color: #825900;">$_SERVER</span>[<span style="color: #eb7300;">'REQUEST_URI'</span>] . <span style="color: #eb7300;">"&amp;saved=true"</span>;
    }

    <span style="color: #661aa9;">header</span>(<span style="color: #eb7300;">"Location: </span><span style="color: #c94b16;">$location</span><span style="color: #eb7300;">"</span>);
    <span style="color: #881350;">die</span>;

  } <span style="color: #881350;">else</span> <span style="color: #881350;">if</span>(<span style="color: #eb7300;">'theme_reset'</span> == <span style="color: #825900;">$_REQUEST</span>[<span style="color: #eb7300;">'action'</span>] ) {

    <span style="color: #881350;">foreach</span>(<span style="color: #825900;">$options</span> <span style="color: #881350;">as</span> <span style="color: #825900;">$value</span>) {
     <span style="color: #003369;">delete_option</span>( <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>] );
     <span style="color: #825900;">$location</span> = <span style="color: #825900;">$_SERVER</span>[<span style="color: #eb7300;">'REQUEST_URI'</span>] . <span style="color: #eb7300;">"&amp;reset=true"</span>;
    }

    <span style="color: #661aa9;">header</span>(<span style="color: #eb7300;">"Location: </span><span style="color: #c94b16;">$location</span><span style="color: #eb7300;">"</span>);
    <span style="color: #881350;">die</span>;

  }

  <span style="color: #003369;">add_theme_page</span>(<span style="color: #eb7300;">'FrozenFlirt Theme Setting'</span>, <span style="color: #eb7300;">'FrozenFlirt Theme Setting'</span>, <span style="color: #0000ff;">10</span>, <span style="color: #eb7300;">'frozenflirt-settings'</span>, <span style="color: #eb7300;">'frozenflirt_admin'</span>);
}</pre>
<p>And these code for the UI in admin panel:</p>
<pre class="php"><span style="color: #dd0000;">&lt;?php</span>
<span style="color: #881350;">function</span> <span style="color: #003369;">frozenflirt_admin</span>() {
    <span style="color: #881350;">global</span> <span style="color: #825900;">$options</span>;
<span style="color: #dd0000;">?&gt;</span>
<span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"wrap"</span><span style="color: #881280;">&gt;</span>
  <span style="color: #881280;">&lt;h2 </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"alignleft"</span><span style="color: #881280;">&gt;</span>Theme Setting<span style="color: #881280;">&lt;/h2&gt;</span>
  <span style="color: #881280;">&lt;br </span><span style="color: #994500;">clear</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"all"</span><span style="color: #881280;"> /&gt;</span>

  <span style="color: #dd0000;">&lt;?php</span>
    <em><span style="color: #236e25;">//Check if settings saved! </span></em>    <span style="color: #881350;">if</span>( <span style="color: #825900;">$_REQUEST</span>[<span style="color: #eb7300;">'saved'</span>] ) {
  <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"updated fade"</span><span style="color: #881280;">&gt;&lt;p&gt;&lt;strong&gt;</span>Setting Saved<span style="color: #881280;">&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;</span>
  <span style="color: #dd0000;">&lt;?php</span> } <span style="color: #dd0000;">?&gt;</span>

<span style="color: #881280;">&lt;form </span><span style="color: #994500;">method</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"post"</span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"myForm"</span><span style="color: #881280;">&gt;</span>
<span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"poststuff"</span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"metabox-holder"</span><span style="color: #881280;">&gt;</span>

 <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"stuffbox"</span><span style="color: #881280;">&gt;</span>
  <span style="color: #881280;">&lt;h3&gt;</span>Footer Setting<span style="color: #881280;">&lt;/h3&gt;</span>
  <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"inside"</span><span style="color: #881280;">&gt;</span>
    <span style="color: #881280;">&lt;table </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"form-table"</span><span style="color: #994500;">style</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"width: auto"</span><span style="color: #881280;">&gt;</span>
    <span style="color: #dd0000;">&lt;?php</span>
     <span style="color: #881350;">foreach</span>(<span style="color: #825900;">$options</span> <span style="color: #881350;">as</span> <span style="color: #825900;">$value</span>) {
      <span style="color: #881350;">switch</span>( <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>] ) {
        <span style="color: #881350;">case</span> <span style="color: #eb7300;">"flickr_account"</span>: <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;tr&gt;</span>
        <span style="color: #881280;">&lt;th </span><span style="color: #994500;">scope</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"row"</span><span style="color: #881280;">&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'name'</span>]; <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;br /&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'desc'</span>]; <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/th&gt;</span>
        <span style="color: #881280;">&lt;td&gt;</span>
         <span style="color: #881280;">&lt;input </span><span style="color: #994500;">name</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>]; <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;">                 </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>]; <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text"</span><span style="color: #881280;">                 </span><span style="color: #994500;">value</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">get_option</span>(<span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>])?<span style="color: #661aa9;">printf</span>(<span style="color: #003369;">get_option</span>(<span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>])): <span style="color: #661aa9;">printf</span>(<span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'default'</span>]) <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;"> /&gt;</span>
        <span style="color: #881280;">&lt;/td&gt;</span>
        <span style="color: #881280;">&lt;/tr&gt;</span>

      <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">break</span>;
        <span style="color: #881350;">case</span> <span style="color: #eb7300;">"twitter_account"</span>: <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;tr&gt;</span>
        <span style="color: #881280;">&lt;th </span><span style="color: #994500;">scope</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"row"</span><span style="color: #881280;">&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'name'</span>]; <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;br /&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'desc'</span>]; <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/th&gt;</span>
        <span style="color: #881280;">&lt;td&gt;</span>
         <span style="color: #881280;">&lt;input </span><span style="color: #994500;">name</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>]; <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;">                 </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>]; <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text"</span><span style="color: #881280;">                 </span><span style="color: #994500;">value</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">get_option</span>(<span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>])?<span style="color: #661aa9;">printf</span>(<span style="color: #003369;">get_option</span>(<span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'id'</span>])): <span style="color: #661aa9;">printf</span>(<span style="color: #825900;">$value</span>[<span style="color: #eb7300;">'default'</span>]) <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;"> /&gt;</span>
        <span style="color: #881280;">&lt;/td&gt;</span>
        <span style="color: #881280;">&lt;/tr&gt;</span>

      <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">break</span>;
        }
    }
    <span style="color: #dd0000;">?&gt;</span>
   <span style="color: #881280;">&lt;/table&gt;</span>
  <span style="color: #881280;">&lt;/div&gt;</span>
 <span style="color: #881280;">&lt;/div&gt;</span>  

<span style="color: #881280;">&lt;/div&gt;</span>
<span style="color: #881280;">&lt;input </span><span style="color: #994500;">name</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"theme_save"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"submit"</span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"button-primary"</span><span style="color: #994500;">value</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Save changes"</span><span style="color: #881280;"> /&gt;</span>
<span style="color: #881280;">&lt;input </span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"hidden"</span><span style="color: #994500;">name</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"action"</span><span style="color: #994500;">value</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"theme_save"</span><span style="color: #881280;"> /&gt;</span>
<span style="color: #881280;">&lt;/form&gt;</span>

<span style="color: #881280;">&lt;form </span><span style="color: #994500;">method</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"post"</span><span style="color: #881280;">&gt;</span>
<span style="color: #881280;">&lt;input </span><span style="color: #994500;">name</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"theme_reset"</span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"submit"</span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"button-primary"</span><span style="color: #994500;">value</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Reset"</span><span style="color: #881280;"> /&gt;</span>
<span style="color: #881280;">&lt;input </span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"hidden"</span><span style="color: #994500;">name</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"action"</span><span style="color: #994500;">value</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"theme_reset"</span><span style="color: #881280;"> /&gt;</span>
<span style="color: #881280;">&lt;/form&gt;</span>

<span style="color: #881280;">&lt;/div&gt;</span>
<span style="color: #dd0000;">&lt;?php</span>
}
<span style="color: #dd0000;">?&gt;</span></pre>
<p>Your theme options adminstration will look like:</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-2608" title="Wordpress Theme Options" src="http://aext.net/wp-contents/uploads/2010/01/Wordpress-Theme-Options.png" alt="" width="500" height="270" /></div>
<p>We are good now with the theme options. Let&#8217;s get these value to display in the theme. In your footer.php, insert these code to your Twitter widgets to get twitter account name from theme options:</p>
<pre class="html"><span style="color: #881280;">&lt;script </span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/javascript"</span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"http://twitter.com/javascripts/blogger.js"</span><span style="color: #881280;">&gt;&lt;/script&gt;</span>
<span style="color: #881280;">&lt;script </span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/javascript"</span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"http://twitter.com/statuses/user_timeline/</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">if</span>(!<span style="color: #003369;">get_option</span>(<span style="color: #eb7300;">'twitter_account'</span>)) { <span style="color: #881350;">echo</span> <span style="color: #eb7300;">'prlamnguyen'</span>; } <span style="color: #881350;">else</span> { <span style="color: #661aa9;">printf</span>(<span style="color: #003369;">get_option</span>(<span style="color: #eb7300;">'twitter_account'</span>)); } <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">.json?callback=twitterCallback2&amp;count=2"</span><span style="color: #881280;">&gt;&lt;/script&gt;</span></pre>
<p>In this code above, if the option value of twitter_account doesn&#8217;t exist, this widget will display twitter update from my twitter account by default. <img src='http://aext.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>With Flickr Stream widget, go back to header.php file to edit because I put the jQuery code to get stream from specific account on header.php file. I&#8217;m so sorry! If you want, move this code block to the footer.php file. That&#8217;s fine!</p>
<pre class="html"><span style="color: #881280;">&lt;script </span><span style="color: #994500;">type</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"text/javascript"</span><span style="color: #881280;">&gt;</span>

        $(document).<span style="color: #003369;">ready</span>(<span style="color: #881350;">function</span>() {

            <span style="color: #881350;">var</span> id = <span style="color: #760f15;">'</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #661aa9;">printf</span>(<span style="color: #003369;">get_option</span>(<span style="color: #eb7300;">'flickr_account'</span>)); <span style="color: #dd0000;">?&gt;</span><span style="color: #760f15;">'</span>;
            <span style="color: #003369;">flickr</span>(id);

        });

<span style="color: #881280;">&lt;/script&gt;</span></pre>
<p>Alright, now you have done for the three files that will used in all pages. Now, we continue to go forward to other pages that display in homepage, post pages, categories pages&#8230;</p>
<h3>index.php</h3>
<hr />
<p>This file will used for display in the main page of your blog. It usually displays a number of recent articles. The number of posts will be display was set up in your <strong>WordPress Admin &gt; Setting &gt; Reading</strong>as below:</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-2589" title="WordPress theme setting up number of posts willl be displayed in homepage" src="http://aext.net/wp-contents/uploads/2010/01/WordPress-theme-setting-up-number-of-posts-willl-be-displayed-in-homepage.png" alt="" width="500" height="294" /></div>
<p>By default, you don&#8217;t need to query posts in homepage, the only code for the loop of display post in homepage is:</p>
<pre class="html"><span style="color: #dd0000;">&lt;?php</span>

<em><span style="color: #236e25;">//The Loop </span></em><span style="color: #881350;">if</span>( <span style="color: #003369;">have_posts</span>() ) : 

    <span style="color: #881350;">while</span>( <span style="color: #003369;">have_posts</span>() ) : <span style="color: #003369;">the_post</span>();

        <em><span style="color: #236e25;">//Posts in the loop </span></em>    
    <span style="color: #881350;">endwhile</span>;

<span style="color: #881350;">else</span>:

        <em><span style="color: #236e25;">//No post in homepage ????? </span></em>     
<span style="color: #881350;">endif</span>;

<span style="color: #dd0000;">?&gt;</span></pre>
<p>However, sometime we need to display post in homepage with conditions. An example with Noupe.com, they are using the Community News which all of news were submit will go to News category, but they don&#8217;t want to display a lot of community news in homepage. The best way to do is override and replace the main query in homepage. In the case I have just mentioned(At this time, Noupe has disabled Community submission !!!), the replaced query will be:</p>
<pre class="html"><span style="color: #dd0000;">&lt;?php</span>

<em><span style="color: #236e25;">//Begin replace the main query </span></em><span style="color: #003369;">query_posts</span>(<span style="color: #eb7300;">'cat=-155'</span>); <em><span style="color: #236e25;">//155 is the id of Community News category </span></em>
<em><span style="color: #236e25;">//The Loop </span></em><span style="color: #881350;">if</span>( <span style="color: #003369;">have_posts</span>() ) : 

    <span style="color: #881350;">while</span>( <span style="color: #003369;">have_posts</span>() ) : <span style="color: #003369;">the_post</span>();

        <em><span style="color: #236e25;">//Posts in the loop </span></em>    
    <span style="color: #881350;">endwhile</span>;

<span style="color: #881350;">else</span>:

        <em><span style="color: #236e25;">//No post in homepage ????? </span></em>     
<span style="color: #881350;">endif</span>;

<em><span style="color: #236e25;">//Reset the query </span></em><span style="color: #003369;">wp_reset_query</span>();

<span style="color: #dd0000;">?&gt;</span></pre>
<p>With the query_posts, you can change the order, number of posts&#8230;. I would like to forward a link to <a href="http://codex.wordpress.org/Template_Tags/query_posts">Template Tags/query posts</a> to check more information and usages.</p>
<p>Way back to the tutorial, you already knew how to use the loop in display posts, now we begin to work with our index.php. But at first, you have to clean this index.php because we have 4 blocks of post in HTML template. Keep only one post excerpt, remove all of others.</p>
<p>Before starting write code for display post excerpts, we need to look back to the split files. You remember that we split our HTML file into 3 files: <em>header.php</em>, <em>sidebar.php</em> and <em>footer.php</em>. Now, we need to include them again. In index.php file, put your header, sidebar and footer:</p>
<pre class="html"><span style="color: #dd0000;">&lt;?php</span>

<em><span style="color: #236e25;">/**  * @package WordPress  * @subpackage FrozenFlirt_Theme  */</span></em>
<span style="color: #dd0000;">?&gt;</span>

<span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">get_header</span>(); <span style="color: #dd0000;">?&gt;</span>

            <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"main-content"</span><span style="color: #881280;">&gt;</span>

                ..........

            <span style="color: #881280;">&lt;/div&gt;</span>

            <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">get_sidebar</span>(); <span style="color: #dd0000;">?&gt;</span>

<span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">get_footer</span>(); <span style="color: #dd0000;">?&gt;</span></pre>
<p>In main content elements, we write a loop of post to display:</p>
<pre class="html"><span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"main-content"</span><span style="color: #881280;">&gt;</span>
  <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"container"</span><span style="color: #881280;">&gt;</span>

    <span style="color: #dd0000;">&lt;?php</span>

    <span style="color: #881350;">if</span>(<span style="color: #003369;">have_posts</span>()) : <span style="color: #881350;">while</span>(<span style="color: #003369;">have_posts</span>()) : <span style="color: #003369;">the_post</span>();

    <span style="color: #dd0000;">?&gt;</span>

    <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"post exerpt clearfix"</span><span style="color: #881280;">&gt;</span>
      <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #881280;">&gt;</span>
        <span style="color: #881280;">&lt;img </span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"ahh ahh ahh"</span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"images/post-image-1.png"</span><span style="color: #994500;">width</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"200"</span><span style="color: #994500;">height</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"200"</span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"thumbnail"</span><span style="color: #881280;"> /&gt;</span>
      <span style="color: #881280;">&lt;/a&gt;</span>

      <span style="color: #881280;">&lt;h2&gt;&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"nofollow"</span><span style="color: #881280;">&gt;</span>Fronze Flirt Theme<span style="color: #881280;">&lt;/a&gt;&lt;/h2&gt;</span>

      <span style="color: #881280;">&lt;small&gt;</span>Written by <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Lam Nguyen"</span><span style="color: #881280;">&gt;</span>Lam Nguyen<span style="color: #881280;">&lt;/a&gt;</span> on <span style="color: #881280;">&lt;strong&gt;</span>Dec 11th<span style="color: #881280;">&lt;/strong&gt;</span> in <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Tutorial Category"</span><span style="color: #881280;">&gt;</span>Tutorials<span style="color: #881280;">&lt;/a&gt;&lt;/small&gt;</span>

      <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"summary"</span><span style="color: #881280;">&gt;</span>
        <span style="color: #881280;">&lt;p&gt;</span>Lorem ipsum dolor sit amet, this is bold text consectetur adipiscing elit. This font is in italic cras lacinia pellentesque elit nec sodales. Etiam vehicula egestas interdum. Nulla facilisi. In at lectus odio, quis iaculis dui. <span style="color: #881280;">&lt;/p&gt;</span>
        <span style="color: #881280;">&lt;p&gt;&lt;a </span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"nofollow"</span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Read more this post"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"#"</span><span style="color: #881280;">&gt;</span>Continue Reading <span style="color: #881280;">&amp;raquo;&lt;/a&gt;&lt;/p&gt;</span>
      <span style="color: #881280;">&lt;/div&gt;</span>

    <span style="color: #881280;">&lt;/div&gt;</span>

    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">endwhile</span>; <span style="color: #dd0000;">?&gt;</span>

        <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">if</span>(<span style="color: #661aa9;">function_exists</span>(<span style="color: #eb7300;">'wp_pagenavi'</span>)) : <span style="color: #dd0000;">?&gt;</span>
            <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">wp_pagenavi</span>() <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">else</span> : <span style="color: #dd0000;">?&gt;</span>
            <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"navigation"</span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pagenavi"</span><span style="color: #881280;">&gt;</span>
                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"alignleft"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">next_posts_link</span>(<span style="color: #003369;">__</span>(<span style="color: #eb7300;">'&amp;laquo; Older Entries'</span>,<span style="color: #eb7300;">'arclite'</span>)) <span style="color: #dd0000;">?&gt;</span>
                <span style="color: #881280;">&lt;/div&gt;</span>
                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"alignright"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">previous_posts_link</span>(<span style="color: #003369;">__</span>(<span style="color: #eb7300;">'Newer Entries &amp;raquo;'</span>,<span style="color: #eb7300;">'arclite'</span>)) <span style="color: #dd0000;">?&gt;</span>
                <span style="color: #881280;">&lt;/div&gt;</span>
                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"clear"</span><span style="color: #881280;">&gt;&lt;/div&gt;</span>
            <span style="color: #881280;">&lt;/div&gt;</span>
        <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">endif</span>; <span style="color: #dd0000;">?&gt;</span>

    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">else</span>: <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;p&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #661aa9;">printf</span>(<span style="color: #eb7300;">"Sorry, no posts matched your criteria."</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/p&gt;</span>
    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">endif</span>; <span style="color: #dd0000;">?&gt;</span>

  <span style="color: #881280;">&lt;/div&gt;</span>
<span style="color: #881280;">&lt;/div&gt;</span></pre>
<p>This loop will display the number of post with the same title, thumbnail, description&#8230; because we haven&#8217;t change the code to display correct post title, post description&#8230; These code below is used for replace the HTML in the loop:</p>
<pre class="html"><span style="color: #dd0000;">&lt;?php</span>
    <span style="color: #881350;">if</span>(<span style="color: #003369;">have_posts</span>()) : <span style="color: #881350;">while</span>(<span style="color: #003369;">have_posts</span>()) : <span style="color: #003369;">the_post</span>();          
<span style="color: #dd0000;">?&gt;</span>
<span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"post excerpt clearfix"</span><span style="color: #881280;">&gt;</span>
  <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_permalink</span>() <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;">&gt;</span>
  <span style="color: #dd0000;">&lt;?php</span>
        <span style="color: #881350;">if</span>( <span style="color: #003369;">has_post_thumbnail</span>() ) {
            <span style="color: #003369;">the_post_thumbnail</span>(<span style="color: #881350;">array</span>(<span style="color: #0000ff;">200</span>,<span style="color: #0000ff;">200</span>), <span style="color: #881350;">array</span>(<span style="color: #eb7300;">'class'</span> =&gt; <span style="color: #eb7300;">'thumbnail'</span>));
        } <span style="color: #881350;">else</span> {
            <em><span style="color: #236e25;">// Who doesn't want a thumbnail?? </span></em>        }
  <span style="color: #dd0000;">?&gt;</span>
  <span style="color: #881280;">&lt;/a&gt;</span>
  <span style="color: #881280;">&lt;h2&gt;&lt;a </span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"nofollow"</span><span style="color: #881280;">  </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_permalink</span>() <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;">&gt;</span>
    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_title</span>(); <span style="color: #dd0000;">?&gt;</span>
    <span style="color: #881280;">&lt;/a&gt;&lt;/h2&gt;</span>

  <span style="color: #881280;">&lt;small&gt;</span>
        Written by <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_author_posts_link</span>(); <span style="color: #dd0000;">?&gt;</span>
                on <span style="color: #881280;">&lt;strong&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_time</span>(<span style="color: #eb7300;">'F jS'</span>) <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/strong&gt;</span>
                in <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_category</span>(<span style="color: #eb7300;">', '</span>); <span style="color: #dd0000;">?&gt;</span>
  <span style="color: #881280;">&lt;/small&gt;</span>

  <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"summary"</span><span style="color: #881280;">&gt;</span>
    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_content</span>( <span style="color: #eb7300;">'Continue Reading &amp;raquo;'</span> ); <span style="color: #dd0000;">?&gt;</span>
  <span style="color: #881280;">&lt;/div&gt;</span>

<span style="color: #881280;">&lt;/div&gt;</span>
<span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">endwhile</span>; <span style="color: #dd0000;">?&gt;</span></pre>
<p>Wow, we&#8217;re going to the most interesting feature of WordPress 2.9: <strong>Thumbnail Generation for Post</strong>. You remember, in the past, how we made thumbnail for a post? It was really a nightmare with a lot of code and stuff. Today, everything has changed. With few lines of codes, you can insert thumbnail for posts easily.</p>
<p>In functions.php file, insert these code to active the new feature:</p>
<pre class="php"><span style="color: #003369;">add_theme_support</span>( <span style="color: #eb7300;">'post-thumbnails'</span>, <span style="color: #881350;">array</span>( <span style="color: #eb7300;">'post'</span> ) );</pre>
<p>You can make this feature active for posts, pages&#8230; but for posts only in this case. Display the thumbnail within the loop:</p>
<pre class="html"><span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_permalink</span>() <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;">&gt;</span>
    <span style="color: #dd0000;">&lt;?php</span>
        <span style="color: #881350;">if</span>( <span style="color: #003369;">has_post_thumbnail</span>() ) {
            <span style="color: #003369;">the_post_thumbnail</span>(<span style="color: #881350;">array</span>(<span style="color: #0000ff;">200</span>,<span style="color: #0000ff;">200</span>), <span style="color: #881350;">array</span>(<span style="color: #eb7300;">'class'</span> =&gt; <span style="color: #eb7300;">'thumbnail'</span>));
        } <span style="color: #881350;">else</span> {
            <em><span style="color: #236e25;">// Who doesn't want a thumbnail?? </span></em>        }
    <span style="color: #dd0000;">?&gt;</span>
<span style="color: #881280;">&lt;/a&gt;</span></pre>
<p>This code will display the thumbnail with dimension: 200&#215;200 pixels and the img tag is with class name thumbnail. The thumbnail will be added when writing post:</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-2594" title="WordPress theme using thumbnail generation feature" src="http://aext.net/wp-contents/uploads/2010/01/WordPress-theme-using-thumbnail-generation-feature-e1262930429762.png" alt="" width="500" height="369" /></div>
<p>I recommend this post for new feature Post Thumbnail references: <a href="http://www.kremalicious.com/2009/12/wordpress-post-thumbnails/">Using The New Post Thumbnail Feature In WordPress 2.9</a>.</p>
<h3>archive.php</h3>
<hr />
<p>This file will used for display category archive, tag archive&#8230; The easiest way is copy all code of index.php page and past it to archive.php because tag or category archive usually display in the same way as index page. In WordPress, when develop theme, the posts query was already made by WordPress, so that&#8217;s why we need just copy and paste content of index.php to the archive.php file. As I said above, if you need to display something different such as: posts order, number of posts will be displayed&#8230; just use the <em>query_posts()</em>function to override and replace the main query for the page.</p>
<p>However, in archive.php file, you need to notify users which page they are on. Insert these code on the top, before display the loop of posts:</p>
<pre class="html">                ...

                <span style="color: #dd0000;">&lt;?php</span>

                <span style="color: #881350;">if</span>(<span style="color: #003369;">have_posts</span>()) :

                <span style="color: #dd0000;">?&gt;</span>

      <span style="color: #dd0000;">&lt;?php</span> <span style="color: #825900;">$post</span> = <span style="color: #825900;">$posts</span>[<span style="color: #0000ff;">0</span>]; <em><span style="color: #236e25;">// Hack. Set $post so that the_date() works. </span></em><span style="color: #dd0000;">?&gt;</span>
      <span style="color: #dd0000;">&lt;?php</span> <em><span style="color: #236e25;">/* If this is a category archive */</span></em> <span style="color: #881350;">if</span>(<span style="color: #003369;">is_category</span>()) { <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;h2 </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pagetitle"</span><span style="color: #881280;">&gt;</span>Archive for the <span style="color: #881280;">&amp;#8216;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">single_cat_title</span>(); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&amp;#8217;</span> Category<span style="color: #881280;">&lt;/h2&gt;</span>
      <span style="color: #dd0000;">&lt;?php</span> <em><span style="color: #236e25;">/* If this is a tag archive */</span></em> } <span style="color: #881350;">elseif</span>( <span style="color: #003369;">is_tag</span>() ) { <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;h2 </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pagetitle"</span><span style="color: #881280;">&gt;</span>Posts Tagged <span style="color: #881280;">&amp;#8216;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">single_tag_title</span>(); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&amp;#8217;&lt;/h2&gt;</span>
      <span style="color: #dd0000;">&lt;?php</span> <em><span style="color: #236e25;">/* If this is a daily archive */</span></em> } <span style="color: #881350;">elseif</span>(<span style="color: #003369;">is_day</span>()) { <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;h2 </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pagetitle"</span><span style="color: #881280;">&gt;</span>Archive for <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_time</span>(<span style="color: #eb7300;">'F jS, Y'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/h2&gt;</span>
      <span style="color: #dd0000;">&lt;?php</span> <em><span style="color: #236e25;">/* If this is a monthly archive */</span></em> } <span style="color: #881350;">elseif</span>(<span style="color: #003369;">is_month</span>()) { <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;h2 </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pagetitle"</span><span style="color: #881280;">&gt;</span>Archive for <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_time</span>(<span style="color: #eb7300;">'F, Y'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/h2&gt;</span>
      <span style="color: #dd0000;">&lt;?php</span> <em><span style="color: #236e25;">/* If this is a yearly archive */</span></em> } <span style="color: #881350;">elseif</span>(<span style="color: #003369;">is_year</span>()) { <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;h2 </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pagetitle"</span><span style="color: #881280;">&gt;</span>Archive for <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_time</span>(<span style="color: #eb7300;">'Y'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/h2&gt;</span>
      <span style="color: #dd0000;">&lt;?php</span> <em><span style="color: #236e25;">/* If this is an author archive */</span></em> } <span style="color: #881350;">elseif</span>(<span style="color: #003369;">is_author</span>()) { <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;h2 </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pagetitle"</span><span style="color: #881280;">&gt;</span>Author Archive<span style="color: #881280;">&lt;/h2&gt;</span>
      <span style="color: #dd0000;">&lt;?php</span> <em><span style="color: #236e25;">/* If this is a paged archive */</span></em> } <span style="color: #881350;">elseif</span>(<span style="color: #003369;">isset</span>(<span style="color: #825900;">$_GET</span>[<span style="color: #eb7300;">'paged'</span>]) &amp;&amp; !<span style="color: #003369;">empty</span>(<span style="color: #825900;">$_GET</span>[<span style="color: #eb7300;">'paged'</span>])) { <span style="color: #dd0000;">?&gt;</span>
        <span style="color: #881280;">&lt;h2 </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"pagetitle"</span><span style="color: #881280;">&gt;</span>Blog Archives<span style="color: #881280;">&lt;/h2&gt;</span>
      <span style="color: #dd0000;">&lt;?php</span> } <span style="color: #dd0000;">?&gt;</span>

                <span style="color: #dd0000;">&lt;?php</span>

                    <span style="color: #881350;">while</span>(<span style="color: #003369;">have_posts</span>()) : <span style="color: #003369;">the_post</span>();

                <span style="color: #dd0000;">?&gt;</span>

                ...</pre>
<p>The result:</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-2596" title="Wordpress Theme Archive Page Display" src="http://aext.net/wp-contents/uploads/2010/01/Wordpress-Theme-Archive-Page-Display.png" alt="" width="500" height="271" /></div>
<h3>single.php</h3>
<hr />
<p>This file is used for display your WordPress posts. In this file, I will tell you a small trick. In HTML template, you see the post display as below:</p>
<pre class="html"><span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"summary"</span><span style="color: #881280;">&gt;</span>

    <span style="color: #881280;">&lt;p&gt;</span>Post Excerpt<span style="color: #881280;">&lt;/p&gt;</span>

<span style="color: #881280;">&lt;/div&gt;</span>

<span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"post-content"</span><span style="color: #881280;">&gt;</span>

    Post Main Content

<span style="color: #881280;">&lt;/div&gt;</span></pre>
<p>If you put <em>the_excerpt()</em> and <em>the_content()</em> together to display as above. That will not work because the post excerpt will be duplicated. Even when put the excerpt to the Excerpt field which located below the post editor. This is good if you want to display links or images in your excerpt, but it doesn&#8217;t work here.</p>
<p>Alright, here is the trick. We will hook into <em>the_content</em>. In functions.php file, add these code:</p>
<pre class="html"><span style="color: #003369;">add_filter</span>(<span style="color: #eb7300;">'the_content'</span>, <span style="color: #eb7300;">'format_content'</span>);

<span style="color: #881350;">function</span> <span style="color: #003369;">format_content</span>(<span style="color: #825900;">$content</span>) {

    <span style="color: #881350;">if</span>( <span style="color: #661aa9;">preg_match</span>(<span style="color: #eb7300;">'/&lt;span id="(.*?)?"&gt;&lt;\/span&gt;/'</span>, <span style="color: #825900;">$content</span>, <span style="color: #825900;">$matches</span>) ) {

        <span style="color: #825900;">$content</span> = <span style="color: #661aa9;">explode</span>(<span style="color: #825900;">$matches</span>[<span style="color: #0000ff;">0</span>], <span style="color: #825900;">$content</span>, <span style="color: #0000ff;">2</span>);

        <span style="color: #825900;">$content</span> = <span style="color: #eb7300;">'&lt;div class="summary"&gt;'</span> . <span style="color: #825900;">$content</span>[<span style="color: #0000ff;">0</span>] . <span style="color: #eb7300;">'&lt;/div&gt;'</span> . <span style="color: #825900;">$matches</span>[<span style="color: #0000ff;">0</span>] . <span style="color: #eb7300;">'&lt;div class="post-content"&gt;'</span> . <span style="color: #825900;">$content</span>[<span style="color: #0000ff;">1</span>] . <span style="color: #eb7300;">'&lt;/div&gt;'</span>;
    }

    <span style="color: #881350;">return</span> <span style="color: #825900;">$content</span>;

}</pre>
<p>We will split the content into 2 parts then wrap each part by specific div tag with class name &#8220;summary&#8221; and &#8220;post-content&#8221;. Is that cool?</p>
<p>And this is the complete code of single.php file:</p>
<pre class="html"><span style="color: #dd0000;">&lt;?php</span>

<em><span style="color: #236e25;">/**  * @package WordPress  * @subpackage FrozenFlirt_Theme  */</span></em>
<span style="color: #dd0000;">?&gt;</span>

<span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">get_header</span>(); <span style="color: #dd0000;">?&gt;</span>

            <span style="color: #881280;">&lt;div </span><span style="color: #994500;">id</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"main-content"</span><span style="color: #881280;">&gt;</span>
              <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"container"</span><span style="color: #881280;">&gt;</span>

                <span style="color: #dd0000;">&lt;?php</span>

                <span style="color: #881350;">if</span>(<span style="color: #003369;">have_posts</span>()) : <span style="color: #881350;">while</span>(<span style="color: #003369;">have_posts</span>()) : <span style="color: #003369;">the_post</span>();

                <span style="color: #dd0000;">?&gt;</span>

                <span style="color: #881280;">&lt;div </span><span style="color: #994500;">class</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"post clearfix"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #881280;">&lt;a </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_permalink</span>() <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;">&gt;</span>
                    <span style="color: #dd0000;">&lt;?php</span>
                        <span style="color: #881350;">if</span>( <span style="color: #003369;">has_post_thumbnail</span>() ) {
                            <span style="color: #003369;">the_post_thumbnail</span>(<span style="color: #881350;">array</span>(<span style="color: #0000ff;">200</span>,<span style="color: #0000ff;">200</span>), <span style="color: #881350;">array</span>(<span style="color: #eb7300;">'class'</span> =&gt; <span style="color: #eb7300;">'thumbnail'</span>));
                        } <span style="color: #881350;">else</span> {
                            <em><span style="color: #236e25;">// Who doesn't want a thumbnail?? </span></em>                        }
                    <span style="color: #dd0000;">?&gt;</span>
                    <span style="color: #881280;">&lt;/a&gt;</span>

                    <span style="color: #881280;">&lt;h2&gt;&lt;a </span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"nofollow"</span><span style="color: #881280;">  </span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_permalink</span>() <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;">&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_title</span>(); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/a&gt;&lt;/h2&gt;</span>                
                    <span style="color: #881280;">&lt;small&gt;</span>Written by <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_author_posts_link</span>(); <span style="color: #dd0000;">?&gt;</span> on <span style="color: #881280;">&lt;strong&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_time</span>(<span style="color: #eb7300;">'F jS'</span>) <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/strong&gt;</span> in <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_category</span>(<span style="color: #eb7300;">', '</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/small&gt;</span>

                    <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_content</span>(); <span style="color: #dd0000;">?&gt;</span>

                <span style="color: #881280;">&lt;/div&gt;</span>

                <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">comments_template</span>(); <span style="color: #dd0000;">?&gt;</span>

                <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">endwhile</span>; <span style="color: #dd0000;">?&gt;</span>

                <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">else</span>: <span style="color: #dd0000;">?&gt;</span>
                    <span style="color: #881280;">&lt;p&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">_e</span>(<span style="color: #eb7300;">"Sorry, no posts matched your criteria."</span>,<span style="color: #eb7300;">"arclite"</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/p&gt;</span>
                <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">endif</span>; <span style="color: #dd0000;">?&gt;</span>

              <span style="color: #881280;">&lt;/div&gt;</span>
            <span style="color: #881280;">&lt;/div&gt;</span>

            <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">get_sidebar</span>(); <span style="color: #dd0000;">?&gt;</span>

<span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">get_footer</span>(); <span style="color: #dd0000;">?&gt;</span></pre>
<p>You have done with the single.php file, but don&#8217;t forget to put <span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">comments_template</span>(); <span style="color: #dd0000;">?&gt;</span> before ending the loop.</p>
<div class="bigimage"><img class="aligncenter size-full wp-image-2600" title="Wordpress Theme split post content into 2 parts" src="http://aext.net/wp-contents/uploads/2010/01/Wordpress-Theme-split-post-content-into-2-parts-e1262938881543.png" alt="" width="500" height="253" /></div>
<h3>comments.php</h3>
<hr />
<p>WordPress fresh installed will come with the default theme and we can use some of those files to re-use. In default theme directory, open comments.php file, copy all the code then paste it to your new theme comments.php file. Use css to style the comment form and comments list. That&#8217;s all we need for the comment template.</p>
<p>I recommend some tutorial that help you build a better comment:</p>
<ul>
<li><a href="http://www.instantshift.com/2009/02/08/30-most-wanted-wordpress-comments-page-hacks/">30 Most Wanted WordPress Comments Page Hacks</a></li>
<li><a href="http://www.darrenhoyt.com/2007/08/18/styling-your-wordpress-comments/">Styling Your WordPress Comments</a></li>
<li><a href="http://www.smashingmagazine.com/2009/07/23/10-wordpress-comments-hacks/">10 Handy WordPress Comments Hacks</a></li>
</ul>
<p>The most important when editing the comments.php file is DON&#8217;T FORGET to put these code before closing the comment form tag:</p>
<pre class="html"><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">comment_id_fields</span>(); <span style="color: #dd0000;">?&gt;</span>
<span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">do_action</span>(<span style="color: #eb7300;">'comment_form'</span>, <span style="color: #825900;">$post</span>-&gt;ID); <span style="color: #dd0000;">?&gt;</span></pre>
<p>With <em>page.php</em> file to display pages, we are good to use the same code of <em>single.php</em> file because the in fact, page is a post.</p>
<h3>Conclusion</h3>
<p>This tutorial doesn&#8217;t guide you to build a completed WordPress theme, but at least it makes the WordPress Theme FrozenFlirt works with some basic function such as: view post, view index page, archive pages, comments&#8230;. If you need to build a completed theme with all of function you will need do more. The great place and my recommend website to learn how to mastering WordPress theme is <a href="http://codex.wordpress.org/Main_Page">WordPress Codex</a>. Hope you guys design great WordPress theme from this tutorial. Any suggestion helps this tutorial more completed will be appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2010/01/wordpress-theme-from-scratch-day-3-html-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>The Nice Way To Mention Your Recent Articles in WordPress SideBar</title>
		<link>http://aext.net/2009/12/the-nice-way-to-mention-your-recent-articles-in-wordpress-sidebar/</link>
		<comments>http://aext.net/2009/12/the-nice-way-to-mention-your-recent-articles-in-wordpress-sidebar/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 20:53:42 +0000</pubDate>
		<dc:creator>Lief</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[Wordpress Sidebar]]></category>
		<category><![CDATA[Wordpress Theme]]></category>

		<guid isPermaLink="false">http://aext.net/?p=2301</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2009/12/the-nice-way-to-mention-your-recent-articles-in-wordpress-sidebar/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2009/12/the-nice-way-to-mention-your-recent-articles-in-wordpress-sidebar/" height="61" width="51" /></a></p>People asked me how I mention my recent articles in WordPress sidebar by display post thumbnails and titles with a well-styled. Today, I would like to response their request. This way is being used in some blogs. I'm not sure if they are using the same method as mine, but at least we will get the same result. <a href="http://aext.net/2009/12/the-nice-way-to-mention-your-recent-articles-in-wordpress-sidebar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2009/12/the-nice-way-to-mention-your-recent-articles-in-wordpress-sidebar/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2009/12/the-nice-way-to-mention-your-recent-articles-in-wordpress-sidebar/" height="61" width="51" /></a></p><p>People asked me how I mention my recent articles in WordPress sidebar by display post thumbnails and titles with a well-styled. Today, I would like to response their request. This way is being used in some blogs. I&#8217;m not sure if they are using the same method as mine, but at least we will get the same result.</p>
<p><span id="more-2301"></span></p>
<p>When design blog theme in WordPress, I always look for non-using plugins solution. People asked me which plugin I&#8217;m using for this sidebar. No, the answer is NO.</p>
<p>There are a lot of WordPress plugins to display your recent articles, popular articles to mention your posts in the sidebar widget. However, you forgot that you can do the same with a simple posts query using <em><a href="http://codex.wordpress.org/Function_Reference/WP_Query">WP_Query();</a></em> function.</p>
<p>To begin, create new posts object that you will call by will <strong>have_posts()</strong> and display your posts within the loop</p>
<p>Example:</p>
<pre>$wp_query-&gt;have_posts();</pre>
<p>This function is called to see if there are any posts to show. Using the while loop, and we can use have_post() as the condition. This will iterate around as long as there are posts to show.</p>
<p>In my case, I&#8217;m using iterations, the_post(), within the while loop to iterate around as long as there are posts to show.</p>
<pre class="php"><span style="color: #881280;">&lt;ul&gt;</span>

  <span style="color: #dd0000;">&lt;?php</span> <span style="color: #825900;">$recent</span> = <span style="color: #881350;">new</span> <span style="color: #003369;">WP_Query</span>(<span style="color: #eb7300;">"showposts=35"</span>); <span style="color: #881350;">while</span>(<span style="color: #825900;">$recent</span>-&gt;<span style="color: #003369;">have_posts</span>()) : <span style="color: #825900;">$recent</span>-&gt;<span style="color: #003369;">the_post</span>();<span style="color: #dd0000;">?&gt;</span>

    <span style="color: #881280;">&lt;li&gt;</span>
      <span style="color: #881280;">&lt;a </span><span style="color: #994500;">title</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"Permanent Link to </span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_title</span>(); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #994500;">rel</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"nofollow"</span><span style="color: #994500;">href</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_permalink</span>() <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;">&gt;</span>

        <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">if</span>(<span style="color: #003369;">get_post_meta</span>(<span style="color: #825900;">$post</span>-&gt;ID, <span style="color: #eb7300;">"image"</span>, <span style="color: #881350;">true</span>)): <span style="color: #dd0000;">?&gt;</span>
            <span style="color: #881280;">&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'template_url'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">/scripts/thumb.php?src=</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">echo</span> <span style="color: #003369;">get_post_meta</span>(<span style="color: #825900;">$post</span>-&gt;ID, <span style="color: #eb7300;">"image"</span>, <span style="color: #881350;">true</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">&amp;w=25&amp;h=25&amp;zc=1"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_title</span>(); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;"> /&gt;</span>
        <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">else</span>: <span style="color: #dd0000;">?&gt;</span>
            <span style="color: #881280;">&lt;img </span><span style="color: #994500;">src</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">bloginfo</span>(<span style="color: #eb7300;">'template_url'</span>); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">/images/thumbnail.png"</span><span style="color: #994500;">width</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"25"</span><span style="color: #994500;">height</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"25"</span><span style="color: #994500;">alt</span><span style="color: #881280;">=</span><span style="color: #1a1aa6;">"</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_title</span>(); <span style="color: #dd0000;">?&gt;</span><span style="color: #1a1aa6;">"</span><span style="color: #881280;"> /&gt;</span>    
        <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">endif</span>; <span style="color: #dd0000;">?&gt;</span>

      <span style="color: #881280;">&lt;span&gt;</span><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">the_title</span>(); <span style="color: #dd0000;">?&gt;</span><span style="color: #881280;">&lt;/span&gt;&lt;/a&gt;</span>
    <span style="color: #881280;">&lt;/li&gt;</span>

  <span style="color: #dd0000;">&lt;?php</span> <span style="color: #881350;">endwhile</span>; <span style="color: #dd0000;">?&gt;</span>

<span style="color: #881280;">&lt;/ul&gt;</span></pre>
<p>This code above will check if you have post meta name is <strong>image</strong>, it will display the thumbnail using <a href="http://code.google.com/p/timthumb/">timthumb</a> script. Timthumb is a small php script for cropping, zooming and resizing web images (jpg, png, gif). Perfect for use on blogs and other applications.</p>
<p>[smartads]</p>
<p>You can change the number of post will be displayed and set the condition to display number of posts in single page larger than other page because the post page is always longer than others, right?</p>
<p>CSS Bonus:</p>
<pre class="css">.widget ul {
    <span style="color: #88134f;">list-style-type</span>:<span style="color: #9b4400;">none</span>;
    <span style="color: #88134f;">margin</span>:<span style="color: #0000ff;">5px</span> <span style="color: #9b4400;">auto</span> <span style="color: #0000ff;">8px</span>;
    <span style="color: #88134f;">padding</span>:<span style="color: #0000ff;">0 0 2px</span>;
    <span style="color: #88134f;">width</span>:<span style="color: #9b4400;">auto</span>;
}

.widget ul li {
    <span style="color: #88134f;">clear</span>:<span style="color: #9b4400;">both</span>;
    <span style="color: #88134f;">letter-spacing</span>:<span style="color: #0000ff;">0</span>;
    <span style="color: #88134f;">margin</span>:<span style="color: #0000ff;">0</span>;
    <span style="color: #88134f;">padding</span>:<span style="color: #0000ff;">5px</span> <span style="color: #0000ff;">0 0</span>;
}

.widget ul li a {
    <span style="color: #88134f;">border-bottom</span>:<span style="color: #0000ff;">0 </span><span style="color: #9b4400;">dotted</span> <span style="color: #760f15;">#DDDDDD</span>;
    <span style="color: #88134f;">color</span>:<span style="color: #760f15;">#333333</span>;
    <span style="color: #88134f;">font-family</span>:Georgia,<span style="color: #760f15;">"Nimbus Roman No9 L"</span>,<span style="color: #9b4400;">serif</span>;
    <span style="color: #88134f;">font-size</span>:<span style="color: #0000ff;">11px</span>;
    <span style="color: #88134f;">font-weight</span>:<span style="color: #9b4400;">normal</span>;
    <span style="color: #88134f;">margin</span>:<span style="color: #0000ff;">0</span>;
    <span style="color: #88134f;">padding</span>:<span style="color: #0000ff;">0</span>;
    <span style="color: #88134f;">text-decoration</span>:<span style="color: #9b4400;">none</span>;
}

.widget ul li img {
    <span style="color: #88134f;">border</span>:<span style="color: #0000ff;">3px</span> <span style="color: #9b4400;">solid</span> <span style="color: #760f15;">#DFDFDF</span>;
    <span style="color: #88134f;">float</span>:<span style="color: #9b4400;">left</span>;
    <span style="color: #88134f;">margin-bottom</span>:<span style="color: #0000ff;">10px</span>;
    <span style="color: #88134f;">margin-right</span>:<span style="color: #0000ff;">10px</span>;
    <span style="color: #88134f;">padding</span>:<span style="color: #0000ff;">1px</span>;
}

.widget ul li span {
    <span style="color: #88134f;">display</span>:<span style="color: #9b4400;">block</span>;
    <span style="color: #88134f;">padding</span>:<span style="color: #0000ff;">0</span>;
}</pre>
<h3>Conclusion</h3>
<hr />
<p>We don&#8217;t need to use any plugin for display not only such a simple list of post like that but also other simple things in WordPress. WordPress provide us <a href="http://codex.wordpress.org/">WordPress Codex</a>which contains a thousand of Function References. If you want to build your own WordPress theme with unique style, the first thing you need is check out how WordPress function works. Good luck, hope see more beautiful WordPress themes from the web community.</p>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2009/12/the-nice-way-to-mention-your-recent-articles-in-wordpress-sidebar/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>10 Useful Code Snippets And Plugins To Spice Up WordPress Avatar</title>
		<link>http://aext.net/2009/12/10-useful-code-snippets-and-plugins-to-spice-up-wordpress-avatar/</link>
		<comments>http://aext.net/2009/12/10-useful-code-snippets-and-plugins-to-spice-up-wordpress-avatar/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 06:30:49 +0000</pubDate>
		<dc:creator>Lief</dc:creator>
				<category><![CDATA[Roundup]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress Avatar]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[Wordpress Theme]]></category>

		<guid isPermaLink="false">http://aext.net/?p=1767</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2009/12/10-useful-code-snippets-and-plugins-to-spice-up-wordpress-avatar/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2009/12/10-useful-code-snippets-and-plugins-to-spice-up-wordpress-avatar/" height="61" width="51" /></a></p>How well are you using avatar in your wordpress blog? Let see how people spice up avatar section in their wordpress. This entry provides us 10 most useful code snippets and wordpress plugin that help you control, customize your avatar in wordpress better. <a href="http://aext.net/2009/12/10-useful-code-snippets-and-plugins-to-spice-up-wordpress-avatar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2009/12/10-useful-code-snippets-and-plugins-to-spice-up-wordpress-avatar/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2009/12/10-useful-code-snippets-and-plugins-to-spice-up-wordpress-avatar/" height="61" width="51" /></a></p><p>How well are you using avatar in your wordpress blog? Let see how people spice up avatar section in their wordpress. This entry provides us 10 most useful code snippets and wordpress plugins that help us control, customize our avatar in wordpress better.</p>
<p><span id="more-1767"></span></p>
<h3>Change the Default Gravatar in WordPress</h3>
<div class="bigimage"><a href="http://buildinternet.com/2009/02/how-to-change-the-default-gravatar-in-wordpress/"><img class="aligncenter size-full wp-image-1768" title="mystery-man-icon-intro" src="http://aext.net/wp-contents/uploads/2009/11/mystery-man-icon-intro.jpg" alt="mystery-man-icon-intro" width="500" height="166" /></a></div>
<pre class="php"><span style="color: #003369;">add_filter</span>( <span style="color: #eb7300;">'avatar_defaults'</span>, <span style="color: #eb7300;">'newgravatar'</span> );

<span style="color: #881350;">function</span> <span style="color: #003369;">newgravatar </span>(<span style="color: #825900;">$avatar_defaults</span>) {
    <span style="color: #825900;">$myavatar</span> = <span style="color: #003369;">get_bloginfo</span>(<span style="color: #eb7300;">'template_directory'</span>) . <span style="color: #eb7300;">'/images/buildinternet-gravatar.jpg'</span>;
    <span style="color: #825900;">$avatar_defaults</span>[<span style="color: #825900;">$myavatar</span>] = <span style="color: #eb7300;">"Build Internet"</span>;
    <span style="color: #881350;">return</span> <span style="color: #825900;">$avatar_defaults</span>;
}</pre>
<p>By default, if users don&#8217;t have gravatar with their email, wordpress gives you an option that can be change the default avatar in Setting&gt;Discussion. However, you can replace or add one more option that default avatar can be replace by your own image.<br />
<a class="more" href="http://buildinternet.com/2009/02/how-to-change-the-default-gravatar-in-wordpress/">Source: Build Internet</a></p>
<h3>Using Twitter avatars in comments without plug-ins</h3>
<p>First, grab the functions file <a href="http://www.smashingmagazine.com/2009/01/08/twitter-avatars-in-comments-wordpress-plugin/">here</a>.</p>
<p>Then, copy all the content of <em>twittar.php</em> and paste it to your functions.php file</p>
<p>Finally, copy and paste code line below to your comments.php file within the comment loop.</p>
<pre class="php"><span style="color: #dd0000;">&lt;?php</span> <span style="color: #003369;">twittar</span>(<span style="color: #eb7300;">'45'</span>, <span style="color: #eb7300;">'default.png'</span>, <span style="color: #eb7300;">'#e9e9e9'</span>, <span style="color: #eb7300;">'twitavatars'</span>, <span style="color: #0000ff;">1</span>, <span style="color: #eb7300;">'G'</span>); <span style="color: #dd0000;">?&gt;</span></pre>
<p><a class="more" href="http://www.wprecipes.com/ho-to-use-twitter-avatars-in-comments">Source: WP Recipes</a></p>
<h3>Automatically insert author bio on each post</h3>
<div class="bigimage"><a href="http://aext.net/2009/10/wordpress-hack-anything-can-be-added-anywhere-in-the-post-content/"><img class="aligncenter size-full wp-image-1774" title="Automatically insert author bio on each post" src="http://aext.net/wp-contents/uploads/2009/11/Automatically-insert-author-bio-on-each-post.jpg" alt="Automatically insert author bio on each post" width="500" height="219" /></a></div>
<p>Using WordPress hooks, it can be very easy to modify WordPress variables to fit your needs. In this recipe, Iâ€™m going to show you how to use hooks to automatically insert the author bio after each post.</p>
<p>Open your functions.php file and paste the following code. After insert these code, you can customize the css for the author bio box easily.</p>
<pre class="php"><span style="color: #881350;">function</span> <span style="color: #003369;">get_author_bio </span>(<span style="color: #825900;">$content</span>=<span style="color: #eb7300;">''</span>){<span style="color: #881350;"> </span><span style="color: #825900;"> </span>

    <span style="color: #881350;">if</span>(!<span style="color: #003369;">in_category</span>(<span style="color: #eb7300;">"Community News"</span>)) {

    <span style="color: #825900;">$post_author_name</span>=<span style="color: #003369;">get_the_author_meta</span>(<span style="color: #eb7300;">"display_name"</span>);
    <span style="color: #825900;">$post_author_description</span>=<span style="color: #003369;">get_the_author_meta</span>(<span style="color: #eb7300;">"description"</span>);      

    <span style="color: #825900;">$html</span>=<span style="color: #eb7300;">"&lt;div class='clearfix' id='about_author'&gt;\n"</span>;

    <span style="color: #825900;">$html</span>.=<span style="color: #eb7300;">"&lt;img width='80' height='80' class='avatar' src='http://www.gravatar.com/avatar.php?gravatar_id="</span>.<span style="color: #661aa9;">md5</span>(<span style="color: #003369;">get_the_author_email</span>()). <span style="color: #eb7300;">"&amp;default="</span>.<span style="color: #661aa9;">urlencode</span>(<span style="color: #825900;">$GLOBALS</span>[<span style="color: #eb7300;">'defaultgravatar'</span>]).<span style="color: #eb7300;">"&amp;size=80&amp;r=PG' alt='PG'/&gt;\n"</span>;

    <span style="color: #825900;">$html</span>.=<span style="color: #eb7300;">"&lt;div class='author_text'&gt;\n"</span>;
    <span style="color: #825900;">$html</span>.=<span style="color: #eb7300;">"&lt;h4&gt;Author: &lt;span&gt;"</span>.<span style="color: #825900;">$post_author_name</span>.<span style="color: #eb7300;">"&lt;/span&gt;&lt;/h4&gt;\n"</span>;

    <span style="color: #825900;">$html</span>.= <span style="color: #825900;">$post_author_description</span>.<span style="color: #eb7300;">"\n"</span>;
    <span style="color: #825900;">$html</span>.=<span style="color: #eb7300;">"&lt;/div&gt;\n"</span>;
    <span style="color: #825900;">$html</span>.=<span style="color: #eb7300;">"&lt;div class='clear'&gt;&lt;/div&gt;\n"</span>;

    <span style="color: #825900;">$html</span>.=<span style="color: #eb7300;">"&lt;/div&gt;"</span>;
    <span style="color: #825900;">$content</span> .= <span style="color: #825900;">$html</span>;

    }

    <span style="color: #881350;">return</span> <span style="color: #825900;">$content</span>;

}</pre>
<p><a class="more" href="http://aext.net/2009/10/wordpress-hack-anything-can-be-added-anywhere-in-the-post-content/">Source: AEXT.NET</a></p>
<h3>Checking for the Existence of a Gravatar</h3>
<p>If you request a Gravatar image and the email you request doesn&#8217;t have an account in the Gravatar system it returns a default image to you. In some cases this might not be what you want, instead, you might want to know whether you will get back a real gravatar or if it will just be the default. Sometime, you don&#8217;t want to display avatar element instead of default avatar if users don&#8217;t have gravatar exists in your email.</p>
<p>WordPress Codex shows you a trick that check the header response. Return false if code response is not match with 202. Thus, you can use the Boolean value to decide display or not.</p>
<pre class="php"><span style="color: #dd0000;">&lt;?php</span>

<span style="color: #881350;">function</span> <span style="color: #003369;">validate_gravatar</span>(<span style="color: #825900;">$email</span>) {
    <em><span style="color: #236e25;">// Craft a potential url and test its headers </span></em>    <span style="color: #825900;">$hash</span> = <span style="color: #661aa9;">md5</span>(<span style="color: #825900;">$email</span>);
    <span style="color: #825900;">$uri</span> = <span style="color: #eb7300;">'http://www.gravatar.com/avatar/'</span> . <span style="color: #825900;">$hash</span> . <span style="color: #eb7300;">'?d=404'</span>;
    <span style="color: #825900;">$headers</span> = <span style="color: #661aa9;">@get_headers</span>(<span style="color: #825900;">$uri</span>);
    <span style="color: #881350;">if</span>(!<span style="color: #661aa9;">preg_match</span>(<span style="color: #eb7300;">"|200|"</span>, <span style="color: #825900;">$headers</span>[<span style="color: #0000ff;">0</span>])) {
        <span style="color: #825900;">$has_valid_avatar</span> = <span style="color: #881350;">FALSE</span>;
    } <span style="color: #881350;">else</span> {
        <span style="color: #825900;">$has_valid_avatar</span> = <span style="color: #881350;">TRUE</span>;
    }
    <span style="color: #881350;">return</span> <span style="color: #825900;">$has_valid_avatar</span>;
}

<span style="color: #dd0000;">?&gt;</span></pre>
<p><a class="more" href="http://codex.wordpress.org/Using_Gravatars#Checking_for_the_Existence_of_a_Gravatar">Source: WordPress Codex</a></p>
<h3>User Avatar Photos in WordPress</h3>
<div class="bigimage"><a href="http://www.darcynorman.net/2008/09/02/user-avatar-photos-in-wordpress/"><img class="aligncenter size-full wp-image-1778" title="userphoto_wordpress_plugin" src="http://aext.net/wp-contents/uploads/2009/11/userphoto_wordpress_plugin.png" alt="userphoto_wordpress_plugin" width="500" height="200" /></a></div>
<p>WordPress has supported Gravatars for awhile, which is great, but in some cases, you want to display users avatar as their uploaded photos.</p>
<p>First, download and install <a href="http://wordpress.org/extend/plugins/user-photo/">User Photo plugin</a>, then use code below to display their photo:</p>
<pre class="php">    <span style="color: #881350;">if</span>(<span style="color: #661aa9;">function_exists</span>(<span style="color: #eb7300;">'userphoto_the_author_thumbnail'</span>)) {  

        <span style="color: #003369;">userphoto_the_author_thumbnail</span>();

    }</pre>
<p><a class="more" href="http://www.darcynorman.net/2008/09/02/user-avatar-photos-in-wordpress/">Source: D&#8217;Arcy Norman dot net</a></p>
<h3>Avatar Display for Logged In Users</h3>
<div class="bigimage"><img class="aligncenter size-full wp-image-1784" title="Avatar Display for Logged In Users" src="http://aext.net/wp-contents/uploads/2009/11/Avatar-Display-for-Logged-In-Users.jpg" alt="Avatar Display for Logged In Users" width="500" height="190" /></div>
<p>This simple code help to display the avatar of current logged user.</p>
<pre class="php"> <span style="color: #dd0000;">&lt;?php</span>
    <span style="color: #881350;">global</span> <span style="color: #825900;">$current_user</span>;

        <span style="color: #003369;">get_currentuserinfo</span>();

        <span style="color: #881350;">echo</span> <span style="color: #003369;">get_avatar</span>( <span style="color: #825900;">$current_user</span>-&gt;ID, <span style="color: #0000ff;">128</span> );
 <span style="color: #dd0000;">?&gt;</span></pre>
<h3>Add Local Avatar</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/add-local-avatar/"><img class="aligncenter size-full wp-image-1781" title="screenshot-3" src="http://aext.net/wp-contents/uploads/2009/11/screenshot-3.jpg" alt="screenshot-3" width="500" height="152" /></a></div>
<p>Adds local (private) avatars for your users. Maybe your users don&#8217;t want a global avatar, aren&#8217;t IT savvy enough to set a Gravatar up, simply want a private avatar for your blog, or any other reason too&#8230;</p>
<p><a class="more" href="http://wordpress.org/extend/plugins/add-local-avatar/">Download: Add Local Avatar</a></p>
<h3>WP-Gravatar Plugin</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/wp-gravatar/"><img class="aligncenter size-full wp-image-1787" title="screenshot-2" src="http://aext.net/wp-contents/uploads/2009/11/screenshot-2.png" alt="screenshot-2" width="500" height="164" /></a></div>
<p>This plugin lets you use Gravatar, MyBlogLog, OpenAvatar, Wavatar, Identicon, monsterID or Favico.ico files with your comments. But thats not all, this plugin provides you many features: gives you a Widget with your profile info and your gravatar, gives you the option to show an about the author box with posts shown on single page, let&#8217;s you show the Gravatar, OpenAvatar, Wavatar, Identicon, monsterID avatars in the Edit Comment section of your admin pages&#8230;<br />
<a class="more" href="http://wordpress.org/extend/plugins/wp-gravatar/">Download: WP-Gravatar</a></p>
<h3>WP-SnapAvatar</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/wp-snapavatar/"><img class="aligncenter size-full wp-image-1790" title="screenshot-4" src="http://aext.net/wp-contents/uploads/2009/12/screenshot-4.jpg" alt="screenshot-4" width="500" height="180" /></a></div>
<p>When people comment in your blog but they don&#8217;t have avatar, such as gravatar&#8230; this plugin will allows us to take a snapshot of their website for the replacement.<br />
<a class="more" href="http://wordpress.org/extend/plugins/wp-snapavatar/">Download: WP-SnapAvatar</a></p>
<h3>jQuery Comment Preview</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/jquery-comment-preview/"><img class="aligncenter size-full wp-image-1792" title="screenshot-1" src="http://aext.net/wp-contents/uploads/2009/12/screenshot-1.png" alt="screenshot-1" width="500" height="245" /></a></div>
<p>Live comment preview without page reboot. Works on jQuery.</p>
<p><a class="more" href="http://wordpress.org/extend/plugins/jquery-comment-preview/">Download: jQuery Comment Preview</a></p>
<div class="txtad-cont"></div>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2009/12/10-useful-code-snippets-and-plugins-to-spice-up-wordpress-avatar/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
		<item>
		<title>10 WordPress Plugins To Boost Up Your Theme You Have Ever Known</title>
		<link>http://aext.net/2009/11/10-wordpress-plugins-to-boost-up-your-theme-you-have-ever-known/</link>
		<comments>http://aext.net/2009/11/10-wordpress-plugins-to-boost-up-your-theme-you-have-ever-known/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 21:18:56 +0000</pubDate>
		<dc:creator>Lief</dc:creator>
				<category><![CDATA[Popular]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Theme Design]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[Wordpress Theme]]></category>

		<guid isPermaLink="false">http://aext.net/?p=1464</guid>
		<description><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2009/11/10-wordpress-plugins-to-boost-up-your-theme-you-have-ever-known/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2009/11/10-wordpress-plugins-to-boost-up-your-theme-you-have-ever-known/" height="61" width="51" /></a></p>Do you know what the most difference between the hard-working wordpress theme developer and the lazier one is? The hard-working always finds the ways to restrict plugin using for his theme, but the lazier one just needs a plugin that can use for his theme and save his time is fine. However, sometime, there are wordpress plugins that two kind of designer above must use.

This post contains 10 wordpress plugins that help you to boost up your wordpress design. Some of plugins in this collection based on the ideas around the web blog design posts. Enjoy it! <a href="http://aext.net/2009/11/10-wordpress-plugins-to-boost-up-your-theme-you-have-ever-known/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://aext.net/theme/platinoom" title="Platinoom - Premium WordPress Themes"><img src="http://aext.net/wp-content/uploads/2011/04/platinoom_wordpress_theme.png" alt="ThemeKiss" /></a></p><p style="float: right;"><a href="http://api.tweetmeme.com/share?url=http://aext.net/2009/11/10-wordpress-plugins-to-boost-up-your-theme-you-have-ever-known/&service=su.pr&service_api=b57727e991c454bd2b2c62ff71462c79"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://aext.net/2009/11/10-wordpress-plugins-to-boost-up-your-theme-you-have-ever-known/" height="61" width="51" /></a></p><p>Do you know what the most difference between the hard-working wordpress theme developer and the lazier one is? The hard-working always finds the ways to restrict plugin using for his theme, but the lazier one just needs a plugin that can use for his theme and save his time is fine. However, sometime, there are wordpress plugins that two kind of designer above must use.</p>
<p>This post contains 10 wordpress plugins that help you to boost up your wordpress design. Some of plugins in this collection based on the ideas around the web blog design tutorial posts. Enjoy it!</p>
<p><span id="more-1464"></span></p>
<h3>Paginator or Paginator 3000</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/paginator/"><img class="aligncenter size-full wp-image-1465" title="10 WordPress Plugins Boost Up - Paginator 3000" src="http://aext.net/wp-contents/uploads/2009/11/10-Wordpress-Plugins-Boost-Up.jpg" alt="10 WordPress Plugins Boost Up - Paginator 3000" width="500" height="247" /></a></div>
<p>This is a pagination plugin that based on the idea of scrolling. Your pagination will not be split into parts, it will display all the pages but you can easily access all page by the scroll bar. You can find a demo <a href="http://karaboz.ru/2007/11/19/paginator-3000-postranichnaya-navigaciya-budushhego/">here</a>.</p>
<p><strong>Download:</strong> <a href="http://wordpress.org/extend/plugins/paginator/">Paginator</a>.</p>
<h3>Freebie Images</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/freebie-images-free-stock-images-plugin/"><img class="aligncenter size-full wp-image-1468" title="Freebie Image" src="http://aext.net/wp-contents/uploads/2009/11/Freebie-Image.jpg" alt="Freebie Image" width="500" height="247" /></a></div>
<p>The Freebie Images Plugin allows you to search among hundreds of thousands of high quality stock photos, illustrations &amp; vector files. Spice up your blog with high quality free stock photos &amp; images created by professional photographers and illustrators: Easy to use search interface with advanced filtering and Drag &amp; Drop functionality.</p>
<p><strong>Download:</strong> <a href="http://wordpress.org/extend/plugins/freebie-images-free-stock-images-plugin/">Freebie Images: Free Stock Images Plugin</a>.</p>
<h3>Category and page icons</h3>
<div class="bigimage"><a href="http://wpdevelop.com/wp-plugins/category-page-icons/icons-plugin/"><img class="aligncenter size-full wp-image-1471" title="category-page-icons-gallery2" src="http://aext.net/wp-contents/uploads/2009/11/category-page-icons-gallery2.jpg" alt="category-page-icons-gallery2" width="500" height="247" /></a></div>
<p>Using this plugin, you can add icons (images) to sidebar of your site or blog into section of categories and pages.</p>
<p><strong>Download:</strong> <a href="http://wpdevelop.com/wp-plugins/category-page-icons/icons-plugin/">Category and page icons plugin</a>.</p>
<h3>Login With Ajax</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/login-with-ajax/"><img class="aligncenter size-full wp-image-1472" title="Login With Ajax" src="http://aext.net/wp-contents/uploads/2009/11/Login-With-Ajax.jpg" alt="Login With Ajax" width="500" height="215" /></a></div>
<p>Login With Ajax is for sites that need user logins and would like to avoid the normal wordpress login, this plugin adds the capability of placing a login widget in the sidebar with smooth AJAX login effects.</p>
<p><strong>Download:</strong> <a href="http://wordpress.org/extend/plugins/login-with-ajax/">Login With Ajax</a>.</p>
<h3>Attachments</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/attachments/"><img class="aligncenter size-full wp-image-1474" title="Attachments" src="http://aext.net/wp-contents/uploads/2009/11/Screen-shot-2009-11-12-at-1.54.20-PM.png" alt="Attachments" width="571" height="300" /></a></div>
<p>Attachments allows you to append any number of items from your WordPress Media Library to Posts and Pages. This plugin does not directly interact with your theme, you will need to edit your template files.</p>
<p><strong>Download:</strong> <a href="http://wordpress.org/extend/plugins/attachments/">WordPress Attachments</a>.</p>
<h3>WP Content Slideshow</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/wp-content-slideshow/"><img class="aligncenter size-full wp-image-1476" title="Wordpress Content Slideshow" src="http://aext.net/wp-contents/uploads/2009/11/Wordpress-Content-Slideshow.png" alt="Wordpress Content Slideshow" width="500" height="171" /></a></div>
<p>If you plan to build WordPress theme for sell, you should put this plugin in your pocket. Here below is the plugin description.</p>
<p>WP Content Slideshow shows up to 5 Posts in a very nice and powerfull Javascript Slideshow. On the left side of the Slideshow it displays a Image for every Post. On the right side, there are all the Titles (and a small description under the Title) of the Posts. The Slideshow highlights the active Post and repeats automatically after getting to the 5th Post. You have a powerfull Administration Area to adjust the Category, the number of Posts, the width and height, and many colours for the Slideshow!</p>
<p><strong>Download:</strong> <a href="http://wordpress.org/extend/plugins/wp-content-slideshow/">WP Content Slideshow</a>.</p>
<h3>Drag To Share</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/drag-to-share/"><img class="aligncenter size-full wp-image-1478" title="Drag To Share" src="http://aext.net/wp-contents/uploads/2009/11/Drag-To-Share.png" alt="Drag To Share" width="500" height="269" /></a></div>
<p>The plugin was developed on the source files created by Dan Wellman. Read more <a href="http://net.tutsplus.com/tutorials/javascript-ajax/drag-to-share">here</a>. This plugin is basically a similar effect release by Meebo.com and used by big players like Mashable.</p>
<p><strong>Download:</strong> <a href="http://wordpress.org/extend/plugins/drag-to-share/">Drag To Share</a>.</p>
<h3>I Like This</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/i-like-this/"><img class="aligncenter size-full wp-image-1481" title="i-like-this" src="http://aext.net/wp-contents/uploads/2009/11/i-like-this.jpg" alt="i-like-this" width="500" height="240" /></a></div>
<p>This plugin allows your visitors to simply like your posts instead of comment it.</p>
<p><strong>Download:</strong> <a href="http://wordpress.org/extend/plugins/i-like-this/">I Like This</a>.</p>
<h3>WP Sliding Login/Dashboard Panel</h3>
<div class="bigimage"><a href="http://wordpress.org/extend/plugins/wp-sliding-logindashboard-panel/"><img class="aligncenter size-full wp-image-1483" title="WP Sliding Login Dashboard Panel" src="http://aext.net/wp-contents/uploads/2009/11/WP-Sliding-Login-Dashboard-Panel.png" alt="WP Sliding Login Dashboard Panel" width="500" height="261" /></a></div>
<p>Add a sliding login/dashboard panel to WordPress Theme. This awesome panel is based on <a href="http://web-kreation.com/index.php/tutorials/nice-clean-sliding-login-panel-built-with-jquery/">Nice clean sliding login panel built with jquery</a></p>
<p><strong>Download:</strong> <a href="http://web-kreation.com/index.php/tutorials/nice-clean-sliding-login-panel-built-with-jquery/">WP Sliding Login/Dashboard Panel</a>.</p>
<h3>Author Exposed</h3>
<div class="bigimage"><a href="http://colorlightstudio.com/2008/03/14/wordpress-plugin-author-exposed/"><img class="aligncenter size-full wp-image-1485" title="wordpress-authors" src="http://aext.net/wp-contents/uploads/2009/11/wordpress-authors.jpg" alt="wordpress-authors" width="500" height="262" /></a></div>
<p>Author Exposed is a simple WordPress plugin that allows your visitors easy and elegant way to see more details about the post author.</p>
<p><strong>Download:</strong> <a href="http://colorlightstudio.com/2008/03/14/wordpress-plugin-author-exposed/">Author Exposed</a>.</p>
<div class="txtad-cont"></div>
]]></content:encoded>
			<wfw:commentRss>http://aext.net/2009/11/10-wordpress-plugins-to-boost-up-your-theme-you-have-ever-known/feed/</wfw:commentRss>
		<slash:comments>67</slash:comments>
		</item>
	</channel>
</rss>

