<?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>WP Addict &#187; Tutorials</title>
	<atom:link href="http://wpaddict.net/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpaddict.net</link>
	<description>Get Your WordPress fix here</description>
	<lastBuildDate>Fri, 23 Jul 2010 20:35:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to Display A User Welcome Message In WordPress</title>
		<link>http://wpaddict.net/how-to-display-a-user-welcome-message-in-wordpress/</link>
		<comments>http://wpaddict.net/how-to-display-a-user-welcome-message-in-wordpress/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 11:04:57 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[welcome message]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=455</guid>
		<description><![CDATA[Whether you just like to put up a personal greeting or have a site that has quite a few users, something a welcome message is nice. I have seen a few people put this together and have a centralized paged where users can log in, read the personal message, and then go on their merry way using the website. The code is really simple. This code calls the current user. If you want to only [...]


Related posts:<ol><li><a href='http://wpaddict.net/how-to-display-two-column-for-categories-in-wordpress/' rel='bookmark' title='Permanent Link: How To Display Two Columns For Categories In WordPress'>How To Display Two Columns For Categories In WordPress</a></li>
<li><a href='http://wpaddict.net/edit-this-entry-template-tag/' rel='bookmark' title='Permanent Link: Edit This Entry Template Tag'>Edit This Entry Template Tag</a></li>
<li><a href='http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/' rel='bookmark' title='Permanent Link: Creating A Simple Author Profile Page In WordPress'>Creating A Simple Author Profile Page In WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Whether you just like to put up a personal greeting or have a site that has quite a few users, something a welcome message is nice. I have seen a few people put this together and have a centralized paged where users can log in, read the personal message, and then go on their merry way using the website.</p>
<p>The code is really simple. This code calls the current user. If you want to only let people like contributors or other roles see the message, you have to adjust the level_0 to any of the levels corresponding with the roles. (Example: administrator is 10)</p>
<p><code><br />
&lt; ?php global $user_ID; if( $user_ID ) : ?&gt;<br />
&lt; ?php if( current_user_can('level_0') ) : ?&gt;</p>
<p>Welcome &lt; ?php global $current_user; get_currentuserinfo(); echo ($current_user-&gt;user_login); ?&gt;<br />
&lt; ?php else : ?&gt;<br />
&lt; ?php endif; ?&gt;<br />
&lt; ?php endif; ?&gt;<br />
</code></p>
<p>You can edit the little welcome message to whatever you like.</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/how-to-display-two-column-for-categories-in-wordpress/' rel='bookmark' title='Permanent Link: How To Display Two Columns For Categories In WordPress'>How To Display Two Columns For Categories In WordPress</a></li>
<li><a href='http://wpaddict.net/edit-this-entry-template-tag/' rel='bookmark' title='Permanent Link: Edit This Entry Template Tag'>Edit This Entry Template Tag</a></li>
<li><a href='http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/' rel='bookmark' title='Permanent Link: Creating A Simple Author Profile Page In WordPress'>Creating A Simple Author Profile Page In WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/how-to-display-a-user-welcome-message-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making A Two-Tiered Navigation in WordPress</title>
		<link>http://wpaddict.net/making-a-two-tiered-navigation-in-wordpress/</link>
		<comments>http://wpaddict.net/making-a-two-tiered-navigation-in-wordpress/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 10:47:55 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=435</guid>
		<description><![CDATA[Aside from the wonderful WordPress 3.0 navigation, a lot of people really like the two-tiered navigation. So, what is it? The two-tiered navigation is a horizontal navigation that the first layer on top is the parent pages and the second are the child pages. When you click the parent page, the child pages will appear below the parent. In order to successfully make a similar two-tiered example like that of above, you will need to [...]


Related posts:<ol><li><a href='http://wpaddict.net/custom-thesis-theme-1-blue-simplicity/' rel='bookmark' title='Permanent Link: Custom Thesis Theme #1: Blue Simplicity'>Custom Thesis Theme #1: Blue Simplicity</a></li>
<li><a href='http://wpaddict.net/brand-your-wordpress-login-without-a-plugin/' rel='bookmark' title='Permanent Link: Brand Your WordPress Login Without A Plugin'>Brand Your WordPress Login Without A Plugin</a></li>
<li><a href='http://wpaddict.net/how-to-make-a-tag-cloud-page-in-wordpress/' rel='bookmark' title='Permanent Link: How To Make A Tag Cloud Page In WordPress'>How To Make A Tag Cloud Page In WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Aside from the wonderful WordPress 3.0 navigation, a lot of people really like the two-tiered navigation. So, what is it? The two-tiered navigation is a horizontal navigation that the first layer on top is the parent pages and the second are the child pages. When you click the parent page, the child pages will appear below the parent.</p>
<p><a href="http://wpaddict.net/wp-content/uploads/2010/07/two-tiered-navigation.png"><img src="http://wpaddict.net/wp-content/uploads/2010/07/two-tiered-navigation.png" alt="" title="two-tiered-navigation" width="293" height="113" class="alignright size-full wp-image-436" /></a>In order to successfully make a similar two-tiered example like that of above, you will need to insert some html, and WordPress php functions to your layout&#8217;s template, and the CSS to help with that sheet. However, this tutorial is written for you as a step-by-step process to make it easier to understand.</p>
<p>Step 1. You will want to keep things simple and define our tiered navigation with its own list ID named &#8216;tiered-nav.&#8217; Since this is the beginning, add the php function to call the parent page.</p>
<pre>
&lt;ul id=&quot;tiered-nav&quot;&gt;
&lt;?php wp_list_pages('title_li=&amp;depth=1'); ?&gt;
&lt;/ul&gt;
</pre>
<p>Step 2. After this, you want to add the php if function statement to connect the parent page and children pages, so it will connect to the correct section. For example (using the picture example included with this tutorial) if you have About, Freebies, and Contact for parent pages, you do not want to click on Contact and its child page is Site History (which is suppose to be in the About section.)</p>
<pre>
&lt;?php if($post-&gt;post_parent)
$children = wp_list_pages(&quot;title_li=&amp;child_of=&quot;.$post-&gt;post_parent.&quot;&amp;echo=0&quot;); else
$children = wp_list_pages(&quot;title_li=&amp;child_of=&quot;.$post-&gt;ID.&quot;&amp;echo=0&quot;);
if ($children) { ?&gt;
</pre>
<p>Step 3. You want to make sure to add the second list that will call your child pages. To keep organized, especially when using CSS later, this list unordered list ID is named &#8216;sub-tiered-nav&#8217;.</p>
<pre>
&lt;ul id=&quot;sub-tiered-nav&quot;&gt;
&lt;?php echo $children; ?&gt;
&lt;/ul&gt;
</pre>
<p>Step 4. Not done yet! You have some php functions to close. The if php statement needs to be closed and the whole function that was used in creating the two-tiered navigation needs to be closed.</p>
<pre>
&lt;?php } else { ?&gt;
&lt;?php } ?&gt;
</pre>
<p>Step 5. To get this code looking like a two-tiered navigation, you will have to specify in your CSS what to do in order to make this happen. Right now, you have two unordered lists.</p>
<pre>
/* Two Tiered Navigation */

* {
	margin:0px;
	padding:0px;
	}

/* Top Tier */

#tiered-nav {
	background:#C1DBE9;
	border-bottom:1px solid #FFFFFF;
	height:32px;
	}

#tiered-nav li {
	margin-right:25px;
	}

#tiered-nav li, #sub-tiered-nav li {
	float:left;
	list-style:none;
	}

#tiered-nav a, #tiered-nav a:visited {
	color:#FFFFFF;
	text-decoration:none;
	font-weight:bold;
	}

#tiered-nav a:hover, #tiered-nav a:active,
li.current_page_parent a,
li.current_page_parent a:visited,
#tiered-nav li.current_page_item a,
#tiered-nav li.current_page_item a:visited
        {
	background:#073447;
	}

/* Second Tier */
#sub-tiered-nav {
	background:#E3EFF7;
	border-top:2px solid #BBD8E7;
	border-bottom:2px solid #E3EFF7;
	height:28px;
	}

#sub-tiered-nav {
	border-right:1px solid #073447;
	padding:0px 7px;
	}	

#sub-tiered-nav a, #sub-tiered-nav a:visited {
	color:#073447;
	text-decoration:none;
	font-weight:bold;
	}

#sub-tiered-nav a:hover, #subnav a:active,
#sub-tiered-nav li.current_page_item a,
#sub-tiered-nav li.current_page_item a:visited {
	text-decoration:underline;
	}
</pre>
<p>Of course, you can use your own colors to pull off this effect and insert images for backgrounds.</p>
<p>Please sneak on over to <a href="http://www.darrenhoyt.com/">Darren Hoyt</a> to thank him for the original code for this tutorial.</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/custom-thesis-theme-1-blue-simplicity/' rel='bookmark' title='Permanent Link: Custom Thesis Theme #1: Blue Simplicity'>Custom Thesis Theme #1: Blue Simplicity</a></li>
<li><a href='http://wpaddict.net/brand-your-wordpress-login-without-a-plugin/' rel='bookmark' title='Permanent Link: Brand Your WordPress Login Without A Plugin'>Brand Your WordPress Login Without A Plugin</a></li>
<li><a href='http://wpaddict.net/how-to-make-a-tag-cloud-page-in-wordpress/' rel='bookmark' title='Permanent Link: How To Make A Tag Cloud Page In WordPress'>How To Make A Tag Cloud Page In WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/making-a-two-tiered-navigation-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Brand Your WordPress Login Without A Plugin</title>
		<link>http://wpaddict.net/brand-your-wordpress-login-without-a-plugin/</link>
		<comments>http://wpaddict.net/brand-your-wordpress-login-without-a-plugin/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 03:56:31 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[custom login page]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=408</guid>
		<description><![CDATA[There is a Custom Admin Branding plugin for that, but why bother when you can insert a few lines into your theme&#8217;s functions.php file? However, if you like to change up your site&#8217;s theme sometimes, you probably want to change the log in page too. A lot of people have been really hooked into branding their WordPress log in page, especially since guest blogging has become popular. Here is the code I put together for [...]


Related posts:<ol><li><a href='http://wpaddict.net/custom-thesis-theme-1-blue-simplicity/' rel='bookmark' title='Permanent Link: Custom Thesis Theme #1: Blue Simplicity'>Custom Thesis Theme #1: Blue Simplicity</a></li>
<li><a href='http://wpaddict.net/how-to-change-the-default-avatar/' rel='bookmark' title='Permanent Link: How to Change The Default Avatar'>How to Change The Default Avatar</a></li>
<li><a href='http://wpaddict.net/making-a-two-tiered-navigation-in-wordpress/' rel='bookmark' title='Permanent Link: Making A Two-Tiered Navigation in WordPress'>Making A Two-Tiered Navigation in WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There is a <a href="http://wordpress.org/extend/plugins/custom-admin-branding/">Custom Admin Branding plugin</a> for that, but why bother when you can insert a few lines into your theme&#8217;s functions.php file? <img src='http://wpaddict.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>However, if you like to change up your site&#8217;s theme sometimes, you probably want to change the log in page too. A lot of people have been really hooked into branding their WordPress log in page, especially since guest blogging has become popular. </p>
<p>Here is the code I put together for WPAddict. This is all merely adding CSS and an action to your theme&#8217;s functions.php file.</p>
<p><img src="http://wpaddict.net/wp-content/uploads/2010/06/wpaddict-loginpage-screenshot-300x191.png" alt="" title="wpaddict-loginpage-screenshot" width="300" height="191" class="alignnone size-medium wp-image-415" /></p>
<p>Adding the action for your custom login:</p>
<p><code><br />
add_action('login_head', 'my_custom_login_logo');<br />
</code></p>
<p>Replace the WordPress logo:</p>
<p><code><br />
function my_custom_login_logo() {<br />
    echo '&lt;style type=&quot;text/css&quot;&gt;<br />
        h1 a { background-image:url('.get_bloginfo('template_directory').'/images/custom-login-logo.png) !important;height:160px;width:322px;margin-bottom:5px;margin-top:-70px; }<br />
</code></p>
<p>Remove the border at the top of the login page:</p>
<p><code><br />
body { border-top-style:none; }<br />
</code></p>
<p>Adding your own background to the login page:</p>
<p><code><br />
html {background:#fff url('.get_bloginfo('template_directory').'/images/bgr_html2.png) repeat-x;}<br />
</code></p>
<p>Removing the Back to blog link:</p>
<p><code><br />
#backtoblog { display:none; }<br />
    &lt;/style&gt;';<br />
}<br />
</code></p>
<p>Full code:</p>
<p><code><br />
function my_custom_login_logo() {<br />
    echo '&lt;style type=&quot;text/css&quot;&gt;<br />
        h1 a { background-image:url('.get_bloginfo('template_directory').'/images/custom-login-logo.png) !important;height:160px;width:322px;margin-bottom:5px;margin-top:-70px; }<br />
body { border-top-style:none; }<br />
html {background:#fff url('.get_bloginfo('template_directory').'/images/bgr_html2.png) repeat-x;}<br />
#backtoblog { display:none; }<br />
    &lt;/style&gt;';<br />
}</p>
<p>add_action('login_head', 'my_custom_login_logo');<br />
</code></p>
<p>You can customize more of the page too, so just view the source of your login page and you can put other CSS attributes into the code above.</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/custom-thesis-theme-1-blue-simplicity/' rel='bookmark' title='Permanent Link: Custom Thesis Theme #1: Blue Simplicity'>Custom Thesis Theme #1: Blue Simplicity</a></li>
<li><a href='http://wpaddict.net/how-to-change-the-default-avatar/' rel='bookmark' title='Permanent Link: How to Change The Default Avatar'>How to Change The Default Avatar</a></li>
<li><a href='http://wpaddict.net/making-a-two-tiered-navigation-in-wordpress/' rel='bookmark' title='Permanent Link: Making A Two-Tiered Navigation in WordPress'>Making A Two-Tiered Navigation in WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/brand-your-wordpress-login-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Creating A Simple Author Profile Page In WordPress</title>
		<link>http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/</link>
		<comments>http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/#comments</comments>
		<pubDate>Mon, 17 May 2010 07:33:49 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[author profile]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=280</guid>
		<description><![CDATA[I went over an effective way to put more social network handles into your WordPress profile without having to use a plugin, as well as being able to call it to your template in case you have an author&#8217;s box somewhere within your single post template. This time, we are not going to have to tinker with your functions.php page. To create a new page, you will need to specify that you are making a [...]


Related posts:<ol><li><a href='http://wpaddict.net/add-more-social-network-handles-to-your-author-profile/' rel='bookmark' title='Permanent Link: Add More Social Network Handles To Your WordPress Author Profile'>Add More Social Network Handles To Your WordPress Author Profile</a></li>
<li><a href='http://wpaddict.net/how-to-make-a-tag-cloud-page-in-wordpress/' rel='bookmark' title='Permanent Link: How To Make A Tag Cloud Page In WordPress'>How To Make A Tag Cloud Page In WordPress</a></li>
<li><a href='http://wpaddict.net/applying-author-gravatar-in-post/' rel='bookmark' title='Permanent Link: Applying Author Gravatar In Post'>Applying Author Gravatar In Post</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I went over <a href="http://wpaddict.net/add-more-social-network-handles-to-your-author-profile/">an effective way to put more social network handles into your WordPress profile without having to use a plugin</a>, as well as being able to call it to your template in case you have an author&#8217;s box somewhere within your single post template.</p>
<p>This time, we are not going to have to tinker with your functions.php page.</p>
<p>To create a new page, you will need to specify that you are making a new template. This one will be called author.php</p>
<p>You want it styles somewhat similar to your other pages, but you can add the following and style it according to your own template. The code contains the gravatar, 3 different social network handles, and a simple listing of the author&#8217;s posts. You can customize it to display excerpts, display excerpts with thumbnails, full posts, and more.</p>
<p><code><br />
&lt;!-- This sets the $curauth variable --&gt;<br />
&lt;?php<br />
if(isset($_GET['author_name'])) :<br />
$curauth = get_userdatabylogin($author_name);<br />
else :<br />
$curauth = get_userdata(intval($author));<br />
endif;<br />
?&gt;<br />
&lt;div class=&quot;post-top&quot;&gt;<br />
&lt;div class=&quot;post-title&quot;&gt;<br />
&lt;h2&gt;About: &lt;?php echo $curauth-&gt;display_name; ?&gt;&lt;/h2&gt;<br />
&lt;p style=&quot;float:left;padding-right:10px;&quot;&gt;&lt;a href=&quot;&lt;?php echo $user_link; ?&gt;&quot; title=&quot;&lt;?php echo $curauth-&gt;display_name; ?&gt;&quot;&gt;<br />
		&lt;?php echo get_avatar($curauth-&gt;user_email, '96', $avatar); ?&gt;<br />
	&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;float:left;&quot;&gt;Connect with &lt;?php echo $curauth-&gt;display_name; ?&gt; at: &lt;a href=&quot;http://twitter.com/&lt;?php echo $curauth-&gt;twitter; ?&gt;&quot;&gt;&lt;strong&gt;Twitter&lt;/strong&gt;&lt;/a&gt; | &lt;a href=&quot;http://facebook.com/&lt;?php echo $curauth-&gt;facebook; ?&gt;&quot;&gt;&lt;strong&gt;Facebook&lt;/strong&gt;&lt;/a&gt; | &lt;a href=&quot;http://linkedin.com/in/&lt;?php echo $curauth-&gt;linkedin; ?&gt;&quot;&gt;&lt;strong&gt;LinkedIn&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;<br />
&lt;br /&gt;<br />
&lt;h3&gt;&lt;strong&gt;Website:&lt;/strong&gt; &lt;span&gt;&lt;a href=&quot;&lt;?php echo $curauth-&gt;user_url; ?&gt;&quot;&gt;&lt;?php echo $curauth-&gt;user_url; ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;<br />
&lt;p&gt;&lt;strong&gt;Profile:&lt;/strong&gt; &lt;?php echo $curauth-&gt;user_description; ?&gt;&lt;p&gt;<br />
&lt;/div&gt;&lt;/div&gt;<br />
&lt;div class=&quot;entry&quot;&gt;<br />
&lt;h3&gt;Posts by &lt;?php echo $curauth-&gt;display_name; ?&gt;:&lt;/h3&gt;<br />
&lt;ul&gt;<br />
&lt;!-- The Loop --&gt;<br />
&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;<br />
&lt;li&gt;<br />
&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link: &lt;?php the_title(); ?&gt;&quot;&gt;<br />
&lt;?php the_title(); ?&gt;&lt;/a&gt;<br />
&lt;/li&gt;<br />
&lt;?php endwhile; else: ?&gt;<br />
&lt;p&gt;&lt;?php _e('No posts by this author.'); ?&gt;&lt;/p&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;!-- End Loop --&gt;<br />
&lt;/ul&gt;</p>
<p></code></p>
<p>In order for people to be able to see your author, simply add the following within your post&#8217;s byline:</p>
<p><code>Written by &lt;span&gt;&lt;?php the_author_posts_link(); ?&gt;&lt;/span&gt;</code></p>
<p>This is actually from my own template from Blondish.net. In fact, this is what <a href="http://blondish.net/author/Nile/">my author profile looks like at Blondish.net</a>.</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/add-more-social-network-handles-to-your-author-profile/' rel='bookmark' title='Permanent Link: Add More Social Network Handles To Your WordPress Author Profile'>Add More Social Network Handles To Your WordPress Author Profile</a></li>
<li><a href='http://wpaddict.net/how-to-make-a-tag-cloud-page-in-wordpress/' rel='bookmark' title='Permanent Link: How To Make A Tag Cloud Page In WordPress'>How To Make A Tag Cloud Page In WordPress</a></li>
<li><a href='http://wpaddict.net/applying-author-gravatar-in-post/' rel='bookmark' title='Permanent Link: Applying Author Gravatar In Post'>Applying Author Gravatar In Post</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Display Posts From A Category In WordPress</title>
		<link>http://wpaddict.net/display-posts-from-a-category-in-wordpress/</link>
		<comments>http://wpaddict.net/display-posts-from-a-category-in-wordpress/#comments</comments>
		<pubDate>Thu, 13 May 2010 14:22:24 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[wp_query]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=270</guid>
		<description><![CDATA[Recently I had a run in with coding with a client who had a developer put together a sloppy custom WordPress query in place of a proper loop. In fact, it was amazing because it was put in replace of code on a great premium theme by StudioPress. By the way, no it was not StudioPress who did it, so let me get that out of the way. They are good at what they do. [...]


Related posts:<ol><li><a href='http://wpaddict.net/display-first-full-entry-and-then-following-entries-as-excerpts/' rel='bookmark' title='Permanent Link: Display First Full Entry And Then Following Entries As Excerpts'>Display First Full Entry And Then Following Entries As Excerpts</a></li>
<li><a href='http://wpaddict.net/how-to-display-two-column-for-categories-in-wordpress/' rel='bookmark' title='Permanent Link: How To Display Two Columns For Categories In WordPress'>How To Display Two Columns For Categories In WordPress</a></li>
<li><a href='http://wpaddict.net/disable-comments-for-older-posts/' rel='bookmark' title='Permanent Link: Disable Comments For Older Posts'>Disable Comments For Older Posts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Recently I had a run in with coding with a client who had a developer put together a sloppy custom WordPress query in place of a proper loop. In fact, it was amazing because it was put in replace of code on a great premium theme by StudioPress. By the way, no it was not StudioPress who did it, so let me get that out of the way. They are good at what they do. <img src='http://wpaddict.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyhow, the custom query was three different pieces of code: a section to show to first 5 most recent posts, and then two columns underneath to show two different categories that the site owner wanted to feature. The was done using a similar solution to the one At Weblog Tools Collection called <a href="http://weblogtoolscollection.com/archives/2008/04/13/define-your-own-wordpress-loop-using-wp_query/">Define Your Own WordPress WP-Query</a>. </p>
<p>The problem was that this solution was not providing a good pagination. The &#8220;Next&#8221; and &#8220;Previous&#8221; did not work, and even if I wanted to use my favorite WP-PageNavi plugin, then I was pretty much &#8211; &#8220;sorry, out of luck.&#8221; This does not work well as a replacement for the regular loop, especially for what it was being used as.</p>
<p>So, I set out to put together a better solution. In the end, I displayed the most recent posts by normal Loop means. For the categories, I used the following:</p>
<p><code><br />
&lt;?php $recent = new WP_Query(); ?&gt;<br />
&lt;?php $recent-&gt;query('cat=1&amp;showposts=3'); ?&gt;<br />
&lt;?php while($recent-&gt;have_posts()) : $recent-&gt;the_post(); ?&gt;<br />
&lt;h3&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/h3&gt;<br />
&lt;div class=&quot;attachment-post-thumbnail&quot;&gt;<br />
&lt;?php the_post_thumbnail(); ?&gt;<br />
&lt;/div&gt;&lt;?php the_content_limit(130, &quot;&quot;); ?&gt;<br />
&lt;?php endwhile; ?&gt;<br />
</code></p>
<p>We are still using a custom WP_Query, but only using it for the categories. You can replace the 1 after cat=1 to whatever category you want to display, and you can change the number of posts displayed by changing the number in showposts=3.</p>
<p>You can customize the code further with CSS and adding other attributes.</p>
<p>I left some styling to include the thumbnail, title, and a short excerpt, even using the_content. Hiowever, you can change it to the_excerpt if you have set your excerpts through your functions.php or excerpt plugin.</p>
<p>An example used by this is at <a href="http://fabgabblog.com">Fab Gab Blog</a>.</p>
<p>Sound easy?</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/display-first-full-entry-and-then-following-entries-as-excerpts/' rel='bookmark' title='Permanent Link: Display First Full Entry And Then Following Entries As Excerpts'>Display First Full Entry And Then Following Entries As Excerpts</a></li>
<li><a href='http://wpaddict.net/how-to-display-two-column-for-categories-in-wordpress/' rel='bookmark' title='Permanent Link: How To Display Two Columns For Categories In WordPress'>How To Display Two Columns For Categories In WordPress</a></li>
<li><a href='http://wpaddict.net/disable-comments-for-older-posts/' rel='bookmark' title='Permanent Link: Disable Comments For Older Posts'>Disable Comments For Older Posts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/display-posts-from-a-category-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Optimize WordPress for Speed: Part 2</title>
		<link>http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-2/</link>
		<comments>http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-2/#comments</comments>
		<pubDate>Tue, 11 May 2010 03:17:44 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[optimize speed]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=256</guid>
		<description><![CDATA[This is a guest post by Jason Capshaw. Jason Capshaw is founder of MyWebTronics, an Atlanta web design firm. He resides in Atlanta with his wife and two children This is Part 2 in the series of How to Optimize WordPress for Speed. Reducing PHP functions in themes WordPress has thousands of different functions that could be called at different points of page loading. Reducing the number of functions used by your theme will assist [...]


Related posts:<ol><li><a href='http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-1/' rel='bookmark' title='Permanent Link: How to Optimize WordPress for Speed: Part 1'>How to Optimize WordPress for Speed: Part 1</a></li>
<li><a href='http://wpaddict.net/brand-your-wordpress-login-without-a-plugin/' rel='bookmark' title='Permanent Link: Brand Your WordPress Login Without A Plugin'>Brand Your WordPress Login Without A Plugin</a></li>
<li><a href='http://wpaddict.net/your-wordpress-site-needs-a-plugin-diet/' rel='bookmark' title='Permanent Link: Your WordPress Site Needs A Plugin Diet'>Your WordPress Site Needs A Plugin Diet</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><em><strong>This is a guest post by Jason Capshaw. Jason Capshaw is founder of <a href="http://www.mywebtronics.com/blog/">MyWebTronics</a>, an <a href="http://www.mywebtronics.com">Atlanta web design firm</a>. He resides in Atlanta with his wife and two children</strong></em></p>
<p>This is Part 2 in the series of <a href="http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-1/">How to Optimize WordPress for Speed</a>. </p>
<h3>Reducing PHP functions in themes</h3>
<p>WordPress has thousands of different functions that could be called at different points of page loading. Reducing the number of functions used by your theme will assist in speeding up page load times. </p>
<p>Themes are built to be used on any domain name without having to hard code anything. This is very useful for adding a new theme to your site, but it requires the use of certain functions to identify blog information. Since you know what them you are using, hard coding some of those functions will reduce server load. </p>
<p><em>Tip: the quickest way to learn how to fix something is not to back it up. So, if you are not looking for an additional lesson in programming, make sure to back up your files before you start editing them</em>.</p>
<p><strong>Here are a few functions to replace:</strong></p>
<ul>
<li><strong>bloginfo(&#8216;stylesheet_url&#8217;);</strong> In the head section of your site. Should replace with http://www.example.com/wp-content/themes/YOURTHEME/style.css</li>
<li><strong>get_option(&#8216;home&#8217;);</strong> This function is usually in the theme header in the link for your blog home page. Replace with your blog location with http://www.example.com/blog/</li>
<li><strong>bloginfo(&#8216;name&#8217;);</strong> This function calls your blog name. Simply replace it with your blog title, &#8220;My Example Blog&#8221; in the theme header.</li>
<li><strong>bloginfo(&#8216;description&#8217;);</strong> This function is usually in your header and calls your site&#8217;s tagline. Replace with your tagline.</li>
<li><strong>bloginfo(&#8216;template_directory&#8217;);</strong> This function (or something similar) may appear throughout the theme to call certain images the theme uses. Simply hardcode each image link to the hard URL as in http://www.example.com/wp-content/themes/YOURTHEME/images/mypic.gif.</li>
<li><strong>edit_post_link(&#8216;Edit this entry.&#8217;);</strong> When an editor or admin is logged in, links appears so that the site can be edited. I would just drop this all together and edit eveything from the admin panel.</li>
</ul>
<h3>Reduce HTTP requests</h3>
<p>When a browser requests a web page, a series of communications begins between the browser and the server. Each time the servers sends a file, it sends a header first to tell the browser what to expect. If the subsequent data does not match, your browser should show an error.</p>
<p>The fewer times the server and browser engage the 7 different network layers of the internet, the less time will be needed to download the page. You do not want one big file with everythin in it, for example, CSS and javascript should be in seperate files. However, in an ideal situation your server should only send four different files:</p>
<ul>
<li>HTML</li>
<li>Stylesheet</li>
<li>Javascript</li>
<li>Image</li>
</ul>
<p>Most sites work like this:</p>
<ul>
<li>HTML</li>
<li>Stylesheet 1</li>
<li>Stylesheet 2</li>
<li>Javascript 1</li>
<li>Javascript 2</li>
<li>Image 1</li>
<li>Image 2</li>
<li>Image 3</li>
<li>Image 4</li>
<li>Image 5</li>
<li>Image 6</li>
<li>Image 7</li>
<li>Image 8</li>
</ul>
<p>Steps to reduce HTTP requests:</p>
<p><strong>#1 Put all CSS into one file</strong></p>
<p>Some themes use multiple CSS stylesheets. Merge them together. Also, some plugins use stylesheets. If you are really serious about getting every bit of speed possible out of WordPress, you could edit the plugin and add the plugin&#8217;s CSS to your theme&#8217;s CSS file.</p>
<p><strong>#2 Combine all javascript into one file</strong></p>
<p>Put every single javascript function into one file. They should not conflict with each other.</p>
<p><strong>#3 Use CSS sprites for background images</strong></p>
<p><a href="http://spritegen.website-performance.org/">CSS has the ability</a> to show only a portion of a particular image in the background. There are some problems with CSS sprites, for example &#8216;repeat&#8217; may be a problem. However, many background images can be combined into one file, especially icons.  </p>
<p>Here are a few examples of large sites that use sprites:</p>
<p><img src="http://wpaddict.net/wp-content/uploads/2010/05/digg-124x300.gif" alt="" title="digg" width="124" height="300" class="alignnone size-medium wp-image-257" /> <img src="http://wpaddict.net/wp-content/uploads/2010/05/youtube-101x300.gif" alt="" title="youtube" width="101" height="300" class="alignnone size-medium wp-image-258" /> <img src="http://wpaddict.net/wp-content/uploads/2010/05/google.png" alt="" title="google" width="150" height="105" class="alignnone size-full wp-image-259" /></p>
<h3>Stop use of Avatars </h3>
<p><img src="http://wpaddict.net/wp-content/uploads/2010/05/avatars-300x256.jpg" alt="" title="avatars" width="300" height="256" class="aligncenter size-medium wp-image-260" /></p>
<p>When avatars are enabled, WordPress takes the user&#8217;s email address and turns it into an md5 hash. It then communicates with Avatar to find out if the user has signed up and what Avatar they use. If they do not have one, they send the URL to the one you have selected. </p>
<p>The browser is required to make multiple DNS requests to the URL provided for the Avatar and download the image from a different source. This process may not be so bad for one or two comments. But when a post has many comments, it can become extremely burdensome and can slow your lightning fast WordPress load time into a turtle&#8217;s crawl.</p>
<h3>Test plugins</h3>
<p>When running a WordPress site, you need to weigh pros vs. cons for certain plugins. The easiest way to test a plugin, is to test your <a href="http://www.webpagetest.org/">site speed</a> before the plugin is activated, and after the plugin is activated.</p>
<p>If the plugin slows down your site; does it add enough value to continue it&#8217;s use? In most cases, probably not. Plugins are usually designed to get users to engage with your site, if it causes a higher bounce rate or frustrated users it is counter productive.</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-1/' rel='bookmark' title='Permanent Link: How to Optimize WordPress for Speed: Part 1'>How to Optimize WordPress for Speed: Part 1</a></li>
<li><a href='http://wpaddict.net/brand-your-wordpress-login-without-a-plugin/' rel='bookmark' title='Permanent Link: Brand Your WordPress Login Without A Plugin'>Brand Your WordPress Login Without A Plugin</a></li>
<li><a href='http://wpaddict.net/your-wordpress-site-needs-a-plugin-diet/' rel='bookmark' title='Permanent Link: Your WordPress Site Needs A Plugin Diet'>Your WordPress Site Needs A Plugin Diet</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Optimize WordPress for Speed: Part 1</title>
		<link>http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-1/</link>
		<comments>http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-1/#comments</comments>
		<pubDate>Mon, 10 May 2010 04:09:15 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[optimize speed]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=252</guid>
		<description><![CDATA[This is a guest post by Jason Capshaw. Jason Capshaw is founder of MyWebTronics, an Atlanta web design firm. He resides in Atlanta with his wife and two children There are many reasons why you want WordPress to be as fast as possible. The least of which is user experience. Visitors are extremely impatient with slow loading sites. Google has zero’d in on this fact and has now added site speed as one of its [...]


Related posts:<ol><li><a href='http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-2/' rel='bookmark' title='Permanent Link: How to Optimize WordPress for Speed: Part 2'>How to Optimize WordPress for Speed: Part 2</a></li>
<li><a href='http://wpaddict.net/on-installing-and-uninstalling-plugins/' rel='bookmark' title='Permanent Link: On Installing And Uninstalling Plugins'>On Installing And Uninstalling Plugins</a></li>
<li><a href='http://wpaddict.net/your-wordpress-site-needs-a-plugin-diet/' rel='bookmark' title='Permanent Link: Your WordPress Site Needs A Plugin Diet'>Your WordPress Site Needs A Plugin Diet</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><em><strong>This is a guest post by Jason Capshaw. Jason Capshaw is founder of <a href="http://www.mywebtronics.com/blog/">MyWebTronics</a>, an <a href="http://www.mywebtronics.com">Atlanta web design firm</a>. He resides in Atlanta with his wife and two children</strong></em></p>
<p>There are many reasons why you want WordPress to be as fast as possible. The least of which is user experience. Visitors are extremely impatient with slow loading sites. Google has zero’d in on this fact and has now added site speed as one of its 200+ ranking factors. </p>
<h3>Reduce data base requests</h3>
<p>Use <a href="http://wordpress.org/extend/plugins/db-cache/">DB Cache</a> to cache data base queries so that the server does not have to access the MySQL database. Database queries use up a significant portion of server resources. By only performing the database query once for multiple visitors, you free up resources to quickly download the page.</p>
<p>Once the plugin is activated, you will see the following at the bottom of your content if you have wp-footer() in your site:</p>
<p><code><br />
Generated in 0.730 seconds. Made 23 queries to database and 9 cached queries. Memory used - 19.67MB <br />
 Cached by DB Cache<br />
</code></p>
<p>As you can see, it gives you a readout of how many queries were performed and how many were pulled from cache.</p>
<h3>Optimizing your MySQL database</h3>
<p>If you have ever used Steam for gaming, or defragged a computer hard drive, you are familiar with this concept. Basically, phpMyAdmin gives you the ability to repair corrupted data and optimize tables. </p>
<p>Open your phpMyAdmin panel and navigate to the database structure. Select all of the tables and select ‘Repair tables’. </p>
<p><a href="http://wpaddict.net/wp-content/uploads/2010/05/repair-tables.jpg"><img src="http://wpaddict.net/wp-content/uploads/2010/05/repair-tables-257x300.jpg" alt="" title="repair-tables" width="257" height="300" class="aligncenter size-medium wp-image-253" /></a></p>
<p>Repeat the process and this time select ‘optimize’. Your MySQL database will be running at maximum capacity. </p>
<p><em>Tip: to keep from having to do this manually, you could just create a cron job and do something like this in a php file:</em></p>
<p><code><br />
$sql = 'OPTIMIZE TABLE `wp_commentmeta`, `wp_comments`, `wp_links`, `wp_options`, `wp_postmeta`, `wp_posts`, `wp_terms`, `wp_term_relationships`, `wp_term_taxonomy`, `wp_usermeta`, `wp_users`';<br />
</code><br /><code><br />
mysql_query($sql);<br />
</code></p>
<p>Please stay tuned for Part 2 of How to Optimize WordPress for Speed.</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-2/' rel='bookmark' title='Permanent Link: How to Optimize WordPress for Speed: Part 2'>How to Optimize WordPress for Speed: Part 2</a></li>
<li><a href='http://wpaddict.net/on-installing-and-uninstalling-plugins/' rel='bookmark' title='Permanent Link: On Installing And Uninstalling Plugins'>On Installing And Uninstalling Plugins</a></li>
<li><a href='http://wpaddict.net/your-wordpress-site-needs-a-plugin-diet/' rel='bookmark' title='Permanent Link: Your WordPress Site Needs A Plugin Diet'>Your WordPress Site Needs A Plugin Diet</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/how-to-optimize-wordpress-for-speed-part-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Add More Social Network Handles To Your WordPress Author Profile</title>
		<link>http://wpaddict.net/add-more-social-network-handles-to-your-author-profile/</link>
		<comments>http://wpaddict.net/add-more-social-network-handles-to-your-author-profile/#comments</comments>
		<pubDate>Sun, 09 May 2010 04:27:16 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[author profile]]></category>
		<category><![CDATA[social network]]></category>
		<category><![CDATA[theme filter]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=246</guid>
		<description><![CDATA[The authoer&#8217;s page by default only allows you to put just enough information up. For those who utilize their authors.php page, they can add more things like your Twitter and Facebook profile to their author profile and not have to even alter the core of their site. You can even add more than that. This is done by adding and a simple function and filter to your theme&#8217;s functions.php file. function my_new_contactmethods( $contactmethods ) { [...]


Related posts:<ol><li><a href='http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/' rel='bookmark' title='Permanent Link: Creating A Simple Author Profile Page In WordPress'>Creating A Simple Author Profile Page In WordPress</a></li>
<li><a href='http://wpaddict.net/network-solutions-and-wordpress-fail/' rel='bookmark' title='Permanent Link: Network Solutions On WordPress: Fail'>Network Solutions On WordPress: Fail</a></li>
<li><a href='http://wpaddict.net/applying-author-gravatar-in-post/' rel='bookmark' title='Permanent Link: Applying Author Gravatar In Post'>Applying Author Gravatar In Post</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-247" title="contact-info" src="http://wpaddict.net/wp-content/uploads/2010/05/contact-info-220x300.jpg" alt="" width="220" height="300" />The authoer&#8217;s page by default only allows you to put just enough information up. For those who utilize their authors.php page, they can add more things like your Twitter and Facebook profile to their author profile and not have to even alter the core of their site. You can even add more than that.</p>
<p>This is done by adding and a simple function and filter to your theme&#8217;s functions.php file.</p>
<p><code><br />
function my_new_contactmethods( $contactmethods ) {<br />
// Add Twitter<br />
$contactmethods['twitter'] = 'Twitter';<br />
//add Facebook<br />
$contactmethods['facebook'] = 'Facebook';<br />
//add LinkedIn<br />
$contactmethods['linkedin'] = 'LinkedIn';</code></p>
<p>return $contactmethods;<br />
}<br />
add_filter(&#8216;user_contactmethods&#8217;,'my_new_contactmethods&#8217;,10,1);</p>
<p>If you want to add more, you can do that. For example, if I wanted to add in YouTube, I would put the following code in before the return $contactmethods line and after the last social network code listed. Example code:</p>
<p><code><br />
//add Youtube<br />
$contactmethods['youtube'] = 'Youtube';<br />
</code></p>
<p>In order to call these into your author profile page, you can put the following code. In the case of the code above for Twitter, LinkedIn, and Facebook:</p>
<p>Twitter:</p>
<p><code><br />
&lt;a href="http://twitter.com/&lt;?php the_author_meta('twitter'); ?&gt;"&gt;Twitter&lt;/a&gt;<br />
</code></p>
<p>Facebook:</p>
<p><code><br />
&lt;a href="http://facebook.com/&lt;?php the_author_meta('facebook'); ?&gt;"&gt;Facebook&lt;/a&gt;<br />
</code></p>
<p>LinkedIn:</p>
<p><code><br />
&lt;a href="http://linkedin.com/in/&lt;?php the_author_meta('linkedin'); ?&gt;"&gt;LinkedIn&lt;/a&gt;<br />
</code></p>
<p>As a note, even though you can add as many social network accounts to your WordPress author profile, you should probably use the ones that are the most important and most relevant to your website&#8217;s visitors.</p>
<p>Sounds easy?</p>
<p>By the way, <a href="http://yoast.com">Joost de Valk</a> is the one to give credit for the ability to <a href="http://yoast.com/user-contact-fields-wp29/">add more to the user contact fields</a>.</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/' rel='bookmark' title='Permanent Link: Creating A Simple Author Profile Page In WordPress'>Creating A Simple Author Profile Page In WordPress</a></li>
<li><a href='http://wpaddict.net/network-solutions-and-wordpress-fail/' rel='bookmark' title='Permanent Link: Network Solutions On WordPress: Fail'>Network Solutions On WordPress: Fail</a></li>
<li><a href='http://wpaddict.net/applying-author-gravatar-in-post/' rel='bookmark' title='Permanent Link: Applying Author Gravatar In Post'>Applying Author Gravatar In Post</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/add-more-social-network-handles-to-your-author-profile/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Display Two Columns For Categories In WordPress</title>
		<link>http://wpaddict.net/how-to-display-two-column-for-categories-in-wordpress/</link>
		<comments>http://wpaddict.net/how-to-display-two-column-for-categories-in-wordpress/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 08:10:50 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[wordpress tricks]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=211</guid>
		<description><![CDATA[Displaying two columns for categories in your WordPress is not too hard. Just takes a little php, html, and css. You can put this in your posts, pages, or sidebar. We are taking the usual category code for WordPress &#60;?php wp_list_categories(); ?&#62; and replacing it with the following code. This php splits up each category and into columns, much like splitting odds and evens. &#60;?php $cats = explode(&#34;&#60;br /&#62;&#34;,wp_list_categories('title_li=&#38;echo=0&#38;depth=1&#38;style=none')); $cat_n = count($cats) - 1; for [...]


Related posts:<ol><li><a href='http://wpaddict.net/display-posts-from-a-category-in-wordpress/' rel='bookmark' title='Permanent Link: Display Posts From A Category In WordPress'>Display Posts From A Category In WordPress</a></li>
<li><a href='http://wpaddict.net/how-to-display-a-user-welcome-message-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display A User Welcome Message In WordPress'>How to Display A User Welcome Message In WordPress</a></li>
<li><a href='http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/' rel='bookmark' title='Permanent Link: Creating A Simple Author Profile Page In WordPress'>Creating A Simple Author Profile Page In WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Displaying two columns for categories in your WordPress is not too hard. Just takes a little php, html, and css. You can put this in your posts, pages, or sidebar.</p>
<p>We are taking the usual category code for WordPress</p>
<p><code><br />
&lt;?php wp_list_categories(); ?&gt;<br />
</code></p>
<p>and replacing it with the following code. This php splits up each category and into columns, much like splitting odds and evens.</p>
<p><code><br />
&lt;?php<br />
$cats = explode(&quot;&lt;br /&gt;&quot;,wp_list_categories('title_li=&amp;echo=0&amp;depth=1&amp;style=none'));<br />
$cat_n = count($cats) - 1;<br />
for ($i=0;$i&lt; $cat_n;$i++):<br />
if ($i&lt;$cat_n/2):<br />
$cat_left = $cat_left.'&lt;li&gt;'.$cats[$i].'';<br />
elseif ($i&gt;=$cat_n/2):<br />
$cat_right = $cat_right.'&lt;li&gt;'.$cats[$i].'&lt;/li&gt;';<br />
endif;<br />
endfor;<br />
?&gt;<br />
</code></p>
<p>After you have put the above code you are ready to add your HTML right after it. Remember you need to make sure to remember your css class definition, because you will be adding it to your theme&#8217;s stylesheet. Remember you can use your own definitions, but remember to make sure you are not already using them for another part of your theme.</p>
<p><code><br />
&lt;ul class=&quot;alignleft&quot;&gt;<br />
&lt;?php echo $cat_left;?&gt;<br />
&lt;/ul&gt;<br />
&lt;ul class=&quot;alignright&quot;&gt;<br />
&lt;?php echo $cat_right;?&gt;<br />
&lt;/ul&gt;<br />
</code></p>
<p>Now that you have the php and html done, you need to add your css. In the case of this tutorial, I have used alignleft and alignright for the classes.</p>
<p><code><br />
.alignleft {<br />
	float: left;<br />
	}<br />
.alignright {<br />
	float: right;<br />
	}<br />
</code></p>
<p>Of course, if you want to play with the css and do other things, by all means go ahead.</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/display-posts-from-a-category-in-wordpress/' rel='bookmark' title='Permanent Link: Display Posts From A Category In WordPress'>Display Posts From A Category In WordPress</a></li>
<li><a href='http://wpaddict.net/how-to-display-a-user-welcome-message-in-wordpress/' rel='bookmark' title='Permanent Link: How to Display A User Welcome Message In WordPress'>How to Display A User Welcome Message In WordPress</a></li>
<li><a href='http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/' rel='bookmark' title='Permanent Link: Creating A Simple Author Profile Page In WordPress'>Creating A Simple Author Profile Page In WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/how-to-display-two-column-for-categories-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Video Tutorial: How To Make Your Front Page a Static Page</title>
		<link>http://wpaddict.net/video-tutorial-how-to-make-your-front-page-a-static-page/</link>
		<comments>http://wpaddict.net/video-tutorial-how-to-make-your-front-page-a-static-page/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 09:15:20 +0000</pubDate>
		<dc:creator>Nile</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[static page]]></category>
		<category><![CDATA[video tutorial]]></category>

		<guid isPermaLink="false">http://wpaddict.net/?p=81</guid>
		<description><![CDATA[How to Make Your WordPress front page a static page, rather than a page for your blog. Some people prefer to have their blog on a different page and have other pages they want visitors to see before the blog. Related posts:How To Make A Tag Cloud Page In WordPress Creating A Simple Author Profile Page In WordPress


Related posts:<ol><li><a href='http://wpaddict.net/how-to-make-a-tag-cloud-page-in-wordpress/' rel='bookmark' title='Permanent Link: How To Make A Tag Cloud Page In WordPress'>How To Make A Tag Cloud Page In WordPress</a></li>
<li><a href='http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/' rel='bookmark' title='Permanent Link: Creating A Simple Author Profile Page In WordPress'>Creating A Simple Author Profile Page In WordPress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_1116090935.swf' /><param name='flashvars' value='i=28653' /><param name='allowFullScreen' value='true' /><embed src='http://screenr.com/Content/assets/screenr_1116090935.swf' flashvars='i=28653' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object></p>
<p>How to Make Your WordPress front page a static page, rather than a page for your blog. Some people prefer to have their blog on a different page and have other pages they want visitors to see before the blog.</p>


<p>Related posts:<ol><li><a href='http://wpaddict.net/how-to-make-a-tag-cloud-page-in-wordpress/' rel='bookmark' title='Permanent Link: How To Make A Tag Cloud Page In WordPress'>How To Make A Tag Cloud Page In WordPress</a></li>
<li><a href='http://wpaddict.net/creating-a-simple-author-profile-page-in-wordpress/' rel='bookmark' title='Permanent Link: Creating A Simple Author Profile Page In WordPress'>Creating A Simple Author Profile Page In WordPress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wpaddict.net/video-tutorial-how-to-make-your-front-page-a-static-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
