<?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>Design RJC &#187; WordPress</title>
	<atom:link href="http://designrjc.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://designrjc.com</link>
	<description>UX Web Business Strategist</description>
	<lastBuildDate>Fri, 04 May 2012 06:13:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Fix previous_posts_link() And next_posts_link() For Custom Post Types</title>
		<link>http://designrjc.com/fix-previous_posts_link-and-next_posts_link-for-custom-post-types/</link>
		<comments>http://designrjc.com/fix-previous_posts_link-and-next_posts_link-for-custom-post-types/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 04:32:14 +0000</pubDate>
		<dc:creator>Rudy Chou</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://designrjc.com/?p=1306</guid>
		<description><![CDATA[As I update the DesignRJC site, I run into a query issue for my Custom Post Types in WordPress 3.1 where the previous_posts_link() and next_posts_link() are not displaying properly. If you&#8217;ve been working with custom post types in WordPress 3.1 and have this issue, hopefully this will help resolve it. Researching The Issues With previous_posts_link()...&#160;&#160;<a href="http://designrjc.com/fix-previous_posts_link-and-next_posts_link-for-custom-post-types/">Continue Reading...</a>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>As I update the DesignRJC site, I run into a query issue for my <strong>Custom Post Types in WordPress 3.1</strong> where the <span style="color: #993300;">previous_posts_link()</span> and <span style="color: #993300;">next_posts_link()</span> are not displaying properly.  If you&#8217;ve been working with custom post types in WordPress 3.1 and have this issue, hopefully this will help resolve it.</p>
<h2>Researching The Issues With previous_posts_link() And next_posts_link</h2>
<p>Basically, the <span style="color: #993300;">previous_posts_link() </span>and <span style="color: #993300;">next_posts_link()</span> functions allow you to display the next set of posts being queried.  In this case, it is a <strong>custom post type</strong> of portfolio items I created for DesignRJC to display projects, client work and concepts.  You can read more on using the these functions on the WordPress Codex <a title="next_posts_link() - WordPress Codex" href="http://codex.wordpress.org/Function_Reference/next_posts_link" target="_blank">here</a> and <a title="previous_posts_link() - WordPress Codex" href="http://codex.wordpress.org/Template_Tags/previous_posts_link" target="_blank">here</a>.</p>
<p>Its maddening when something so simple as using a built-in WordPress function does not work properly and I had several hunches to try and debug.</p>
<p>At first, I thought it was the theme.  Currently testing the capabilities of building out a child-theme using Justin Tadlock&#8217;s Prototype Theme.  Unfortunately, not being an exclusive member of their support forums doesn&#8217;t get me much help.  Still not 100% sold on child-themes and relying on a framework but it definitely has its positives.</p>
<p>Began double-checking the custom post type registration functions to make sure the re-write slug name for portfolio post type is different than the page template name used.</p>
<p>Everything checked out okay on that end as well.</p>
<p>I then study the query itself within the page template.  The query I use for the portfolio post type is:</p>
<pre>
&lt;?php
    $paged = ( get_query_var( 'paged' ) ) ? get_query_var('paged') : 1;
    $args = array( 'post_type' =&gt; 'portfolio', 'posts_per_page' =&gt; 2, 'paged' =&gt; $paged );
    $loop = new WP_Query( $args );
    while( $loop-&gt;have_posts() ) : $loop-&gt;the_post();
?&gt;
</pre>
<p>From reading other people&#8217;s experiences, it seems that my query is correct because of creating the variable <span style="color: #993300;">$paged = ( get_query_var( &#8216;paged&#8217; )) ? get_query_var( &#8216;paged&#8217; ) : 1;</span> line of code.  This didn&#8217;t resolve my problem.</p>
<h2>Solution For Fixing previous_posts_link() And next_posts_link() Properly For Custom Post Types</h2>
<p>I came across another solution for displaying <span style="color: #993300;">next_posts_link()</span> and <span style="color: #993300;">previous_posts_link()</span> functions correctly.  It required the use of a second parameter of <span style="color: #993300;">$max_number_pages</span>.  In short, it passes the total number of pages to be paginated within this custom query.  This solved my issues and here is the snippet of the code I used:</p>
<pre>
&lt;?php previous_posts_link('« Previous', $loop-&gt;max_num_pages); ?&gt;
&lt;?php next_posts_link('More »', $loop-&gt;max_num_pages); ?&gt;
</pre>
<p>Notice in both functions, the second parameter is used.  By default, it is set to zero to display all pages.  Pagination for custom post types require extra finesse.</p>
<p>Where it is <span style="color: #993300;">$loop-&gt;max_num_pages</span>, <span style="color: #993300;">$loop</span> is the original query variable object from above and by using <span style="color: #993300;">max_num_pages</span>, I pass the total number of pages to be paginated into the second variable from the query.</p>
<p>Very helpful hint and fix to working with WordPress custom post types.  Credit goes to <a href="http://wpcanyon.com/tipsandtricks/solution-previous_posts_link-and-next_posts_link-not-working/" target="_blank">WPCanyon</a> for coming up with this solution.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://designrjc.com/fix-previous_posts_link-and-next_posts_link-for-custom-post-types/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How To Display Most Recent Posts and Comments on WordPress</title>
		<link>http://designrjc.com/how-to-display-most-recent-posts-and-comments-on-wordpress/</link>
		<comments>http://designrjc.com/how-to-display-most-recent-posts-and-comments-on-wordpress/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 02:38:03 +0000</pubDate>
		<dc:creator>Rudy Chou</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://designrjc.com/?p=797</guid>
		<description><![CDATA[Default WordPress allows you to display recent posts and recent comments through a widget.  However, as I develop my own theme, I want to be able to customize as much as possible without using a widget in my sidebar at all. The problem is, displaying recent posts and recent comments is not as simple as...&#160;&#160;<a href="http://designrjc.com/how-to-display-most-recent-posts-and-comments-on-wordpress/">Continue Reading...</a>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>Default WordPress allows you to display recent posts and recent comments through a widget.  However, as I develop my own theme, I want to be able to customize as much as possible without using a widget in my sidebar at all.</p>
<p>The problem is, displaying recent posts and recent comments is not as simple as just using a WordPress template tag found in WordPress Codex.  Instead, you will need to get creative and create a bit of custom code to grab the data from the database.</p>
<p>There are definitely some <a title="Most Commonly Used WordPress Code Snippets" href="http://dinolatoga.com/2009/05/24/most-commonly-used-wordpress-code-snippets/" target="_blank">common code snippets used for WordPress</a> but I found the ability to control and display recent posts and recent comments to be what I need most.</p>
<h3>Displaying Most Recent Posts</h3>
<p>There are several ways to display the most recent posts from just using the<strong> wp_get_archives</strong> tag to <strong>query_posts</strong> tag which involves using the WordPress loop.  There is a more customized solution that I found from <a title="Dino Latoga" href="http://dinolatoga.com" target="_blank">Dino Latoga</a> and its as follows:</p>
<pre>&lt;?php
$recentposts = get_posts('numberposts=12&amp;category=4');
	foreach ($recentposts as $post) :
	setup_postdata($post);
?&gt;
&lt;li&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endforeach; ?&gt;</pre>
<h3>Displaying Most Recent Comments</h3>
<p>Also from Dino&#8217;s post on commonly used WordPress code snippets is being able to display recent comments.  Unlike displaying most recent posts, it doesn&#8217;t necessarily uses any WordPress tags.  Instead, you are actually querying your database to grab the necessary information you want to be displayed.</p>
<p>Here is the code for displaying most recent comments:</p>
<pre>&lt;?php
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,30) AS com_excerpt
FROM $wpdb-&gt;comments
LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID =
$wpdb-&gt;posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC
LIMIT 7";
$comments = $wpdb-&gt;get_results($sql);
$output = $pre_HTML;
$output .= "\n&lt;ul&gt;";
foreach ($comments as $comment) {
$output .= "\n&lt;li&gt;".strip_tags($comment-&gt;comment_author)
.": " . "&lt;a href=\"" . get_permalink($comment-&gt;ID) .
"#comment-" . $comment-&gt;comment_ID . "\" title=\"on " .
$comment-&gt;post_title . "\"&gt;" . strip_tags($comment-&gt;com_excerpt)
."&amp;hellip;&lt;/a&gt;&lt;/li&gt;";
}
$output .= "\n&lt;/ul&gt;";
$output .= $post_HTML;
echo $output;?&gt;</pre>
<p>There a tons of custom codes to make your WordPress installation that much more feature and content rich, but these two code snippets have helped me create a better user experience when combined with <a title="Adding tabs or tabbed menu to WordPress" href="http://designrjc.com/adding-tabs-or-tabbed-menu-to-wordpress/" target="_self">Tabbed Menu in the sidebar</a>.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://designrjc.com/how-to-display-most-recent-posts-and-comments-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Add Author Information on a WordPress Post</title>
		<link>http://designrjc.com/adding-author-bio-information-to-a-post-on-wordpress/</link>
		<comments>http://designrjc.com/adding-author-bio-information-to-a-post-on-wordpress/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 02:07:49 +0000</pubDate>
		<dc:creator>Rudy Chou</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[User Interface Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://designrjc.com/?p=792</guid>
		<description><![CDATA[It is always nice to add custom features to enhance the user experience.  One of these enhancements is to add the an author&#8217;s bio information to an article he or she has written.  This is particularly useful because when reading a good article the user may be inclined to learn more about the author. A...&#160;&#160;<a href="http://designrjc.com/adding-author-bio-information-to-a-post-on-wordpress/">Continue Reading...</a>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>It is always nice to add custom features to enhance the user experience.  One of these enhancements is to add the an author&#8217;s bio information to an article he or she has written.  This is particularly useful because when reading a good article the user may be inclined to learn more about the author.</p>
<p><img onError="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);"  class="alignnone size-full wp-image-793" title="about the author wordpress" src="http://designrjc.com/wp-content/uploads/2010/02/Picture-22.png" alt="about the author wordpress" width="580" height="153" /></p>
<p>A quick snippet of the author&#8217;s information can help users relate to the author as well as help the author promote himself or herself.</p>
<h3>Using the_author_meta tag to grab information</h3>
<p>In WordPress, each registered user can fill out information about themselves in their profile.  This is found in the Dashboard under Users -&gt; Your Profile.  Some of the meta information fields that are available by default are the following:</p>
<ul>
<li>Username</li>
<li>First name</li>
<li>Last name</li>
<li>Nickname</li>
<li>Email</li>
<li>Website</li>
<li>AIM</li>
<li>Yahoo IM</li>
<li>Jabber / Google Talk</li>
<li>Biographical Info</li>
</ul>
<p>By using <strong>the_author_meta</strong> tag in your <strong>single.php</strong>, you are able to pull the information regarding the author.  Of course, you will need all the strings that you can use with <strong>the_author_meta</strong> tag.  Here is a list of all the strings to use the_author_meta tag:</p>
<ul>
<li>user_login</li>
<li>user_pass</li>
<li>user_nicename</li>
<li>user_email</li>
<li>user_url</li>
<li>user_registered</li>
<li>user_activation_key</li>
<li>user_status</li>
<li>display_name</li>
<li>nickname</li>
<li>first_name</li>
<li>last_name</li>
<li>description</li>
<li>jabber</li>
<li>aim</li>
<li>yim</li>
<li>user_level</li>
<li>user_firstname</li>
<li>user_lastname</li>
<li>user_description</li>
<li>rich_editing</li>
<li>comment_shortcuts</li>
<li>admin_color</li>
<li>plugins_per_page</li>
<li>plugins_last_view</li>
<li>ID</li>
</ul>
<p>Course, you can read more about the_author_meta tag at <a title="Wordpress Codex - Author Meta Tag" href="http://codex.wordpress.org/Template_Tags/the_author_meta" target="_blank">WordPress Codex</a>.</p>
<h3>Sample Code Snippet of Adding Author Bio to the Post</h3>
<p>A quick simple sample is to grab the author&#8217;s display name, bio information and website.</p>
<pre>&lt;div id="author"&gt;
&lt;p&gt;Written by: &lt;?php the_author_meta('display_name'); ?&gt;&lt;/p&gt;
&lt;p&gt;Quick Bio: &lt;?php the_author_meta('user_description'); ?&gt;&lt;/p&gt;
&lt;p&gt;Website: &lt;a href="&lt;?php the_author_meta('user_url'); ?&gt;"&gt;&lt;?php the_author_meta('user_url'); ?&gt;&lt;/a&gt;
&lt;/div&gt;</pre>
<p>Adding the code above into your <strong>single.php</strong> after the loop, you will be able to display the author information.  You will need to style with CSS.</p>
<h3>Adding Gravatar to the Author Bio</h3>
<p>To further customize the author info, you may want to add an avatar.  Because <a title="Grab Your Avatar!" href="http://en.gravatar.com/" target="_blank">gravatar</a> is linked to your email and recognized by all WordPress installation, the only tag you need to grab your avatar icon is the following code:</p>
<pre>&lt;?php echo get_avatar (get_the_author_email(), '100'); ?&gt;</pre>
<p>The code snippet above is just a function.  Basically, you are calling the function <strong>get_avatar</strong> and the two parameters following is for the author&#8217;s email and the second is the size of the avatar.</p>
<h3>Other Guides on Adding Author Bio Information</h3>
<ul>
<li><a title="Stranger in a Strange Land - Add Author Bio for WordPress" href="http://www.casadeblundell.com/jonathan/techno/add-authors-bio-to-wordpress-posts/" target="_blank">Add an author&#8217;s bio to WordPress posts &#8211; Stranger in a Strange Land</a></li>
<li><a title="GabeDiaz - Displaying Author Pic and Bio in Your WordPress" href="http://gabediaz.com/blog/displaying-author-pic-and-bio-in-your-wordpress-post/" target="_blank">Displaying Author Pic and Bio in Your WordPress &#8211; Gabe Diaz</a></li>
</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://designrjc.com/adding-author-bio-information-to-a-post-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How To Add a Tabbed Menu to Your Custom WordPress Design</title>
		<link>http://designrjc.com/how-to-add-a-tabbed-menu-to-your-custom-wordpress-design/</link>
		<comments>http://designrjc.com/how-to-add-a-tabbed-menu-to-your-custom-wordpress-design/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 00:45:04 +0000</pubDate>
		<dc:creator>Rudy Chou</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[User Interface Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://designrjc.com/?p=788</guid>
		<description><![CDATA[The sidebar for WordPress is typically where the archive, categories and other items are listed on your front page. However, as your categories and numbers of posts in the archive grow, so does the list; resulting in a really long sidebar.  Having a long sidebar can take up precious onscreen real estate.  It can also...&#160;&#160;<a href="http://designrjc.com/how-to-add-a-tabbed-menu-to-your-custom-wordpress-design/">Continue Reading...</a>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>The sidebar for WordPress is typically where the archive, categories and other items are listed on your front page.  However, as your categories and numbers of posts in the archive grow, so does the list; resulting in a really long sidebar.  Having a long sidebar can take up precious onscreen real estate.  It can also be a distraction to the user.</p>
<p><img onError="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);"  class="alignnone size-full wp-image-790" title="Tabbed Menu Sample" src="http://designrjc.com/wp-content/uploads/2010/02/Picture-21.png" alt="" width="580" height="287" /></p>
<h3>Tabbed Menu as the Solution</h3>
<p>In looking how to save some onscreen real estate as well as providing a more slick interface for users to navigate for content on the site, designers can choose to create a tabbed menu.</p>
<p>In searching the internet, there were many solutions.  There are actually a couple of specific plugins for WordPress.  Although, it is easier to use a plugin, the widget based style is less customizable for my liking.</p>
<p>I found several resources on the tabbed menu mechanism and some required a lot of coding as well as using different javascript framework libraries to achieve such effect.</p>
<h3>Implementing the Yahoo! TabView</h3>
<p>In the end, I chose to use the method found on <a title="Rubiqube" href="http://rubiqube.com/wordpress-tutorial-adding-tabs-to-your-blog-sidebar/" target="_blank">Rubiqube</a> because it uses a trusted code source, <a title="Yahoo! Developer Network: YUI TabView" href="http://developer.yahoo.com/yui/tabview/#start" target="_blank">Yahoo&#8217;s TabView</a>.  Rubiqube does a good job of explaining implementation and reassures that this technique will work with WordPress.</p>
<p>Here are the steps I took to implement:</p>
<ol>
<li>Go to <a title="YUI 2: Tabview Source" href="http://developer.yahoo.com/yui/tabview/#start" target="_blank">http://developer.yahoo.com/yui/tabview/#start</a> and read through the instructions.</li>
<li>You will need to paste the following code in the header part of <strong>header.php</strong> for the theme your working on.  This will allow your theme to load the necessary javascript for the tabbed view menu.
<pre>&lt;!-- Sam Skin CSS for TabView --&gt;
&lt;link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/tabview/assets/skins/sam/tabview.css"&gt;

&lt;!-- JavaScript Dependencies for Tabview: --&gt;
&lt;script src="http://yui.yahooapis.com/2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js"&gt;&lt;/script&gt;
&lt;script src="http://yui.yahooapis.com/2.8.0r4/build/element/element-min.js"&gt;&lt;/script&gt;

&lt;!-- OPTIONAL: Connection (required for dynamic loading of data) --&gt;
&lt;script src="http://yui.yahooapis.com/2.8.0r4/build/connection/connection-min.js"&gt;&lt;/script&gt;

&lt;!-- Source file for TabView --&gt;
&lt;script src="http://yui.yahooapis.com/2.8.0r4/build/tabview/tabview-min.js"&gt;&lt;/script&gt;</pre>
</li>
<li>Add the HTML code into the location of where you desire the tabbed menu, this is most likely somewhere in your <strong>sidebar.php</strong>.</li>
<pre>
<div id="_mcePaste">&lt;div id="demo"&gt;</div>
<div id="_mcePaste">&lt;ul&gt;</div>
<div id="_mcePaste">&lt;li&gt;&lt;a href="#tab1"&gt;&lt;em&gt;Tab One Label&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;</div>
<div id="_mcePaste">&lt;li&gt;&lt;a href="#tab2"&gt;&lt;em&gt;Tab Two Label&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;</div>
<div id="_mcePaste">&lt;li&gt;&lt;a href="#tab3"&gt;&lt;em&gt;Tab Three Label&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;</div>
<div id="_mcePaste">&lt;/ul&gt;</div>
<div id="_mcePaste">&lt;div&gt;</div>
<div id="_mcePaste">&lt;div&gt;</div>
<div id="_mcePaste">Tab One Content&lt;/div&gt;</div>
<div id="_mcePaste">&lt;div&gt;</div>
<div id="_mcePaste">Tab Two Content&lt;/div&gt;</div>
<div id="_mcePaste">&lt;div&gt;</div>
<div id="_mcePaste">Tab Three Content&lt;/div&gt;</div>
<div id="_mcePaste">&lt;/div&gt;</div>
<div id="_mcePaste">&lt;/div&gt;&lt;/pre&gt;</div>

&lt;pre&gt;&lt;div id="demo"&gt;&lt;ul&gt;	&lt;li&gt;&lt;a href="#tab1"&gt;&lt;em&gt;Tab One Label&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;	&lt;li&gt;&lt;a href="#tab2"&gt;&lt;em&gt;Tab Two Label&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;	&lt;li&gt;&lt;a href="#tab3"&gt;&lt;em&gt;Tab Three Label&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;div&gt;
Tab One Content&lt;/div&gt;&lt;div&gt;
Tab Two Content&lt;/div&gt;&lt;div&gt;
Tab Three Content&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</pre>
<li>Do not forget to activate by enabling the Yahoo TabView by calling the  script with the following:</li>
<pre>&lt;script type="text/javascript"&gt;
var myTabs = new YAHOO.widget.TabView("demo");
&lt;/script&gt;</pre>
<li>Finally, make sure the tabbed menu is loaded on the desired page and the effects are working.  You can now begin customizing the content to be loaded.  Just replace items in the HTML code markup.</li>
<li>Once you customize what you want in each tab which is just a &lt;li&gt; element, you can add the CSS classes to style it to your liking.  The CSS classes used to style the tabbed menu are the following:
<pre>.yui-navset {
    background: #E8F4FD;
    padding: 5px 5px 3px 5px;
    margin-bottom: 35px;
}
.yui-nav li
{
    list-style: none;
    float: left;
    margin-right: 2px;
    text-align: center;
    font-size: 90%;
    font-weight: bold;
}
.yui-nav li a
{
    text-decoration:none;
    color: #005288;
    display: block;
    padding: 8px;
}
.yui-nav li.selected a {
    background: #FFFFFF;
}
.yui-nav li a:hover
{
    color: #000;
}
.yui-content {
    background: #FFFFFF;
    clear: both;
}
.tab-list li {
    padding: 8px;
    border-bottom: 2px solid #E8F4FD;
}</pre>
</li>
</ol>
<p>Simple enough, I was able to implement it after reading both articles and having a rough idea on how to style it.  It works easily enough and I will use this for future projects as well.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://designrjc.com/how-to-add-a-tabbed-menu-to-your-custom-wordpress-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Place A Login Form Anywhere in Your WordPress Theme</title>
		<link>http://designrjc.com/placing-login-form-on-front-page-of-wordpress/</link>
		<comments>http://designrjc.com/placing-login-form-on-front-page-of-wordpress/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 19:08:24 +0000</pubDate>
		<dc:creator>Rudy Chou</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[User Interface Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://designrjc.com/?p=783</guid>
		<description><![CDATA[If your running WordPress, you&#8217;ll know that if you want to log into the admin dashboard, you have to type in the URL for the login page.  This can be inconvenient if you set up a social website where you want users to be able to login. Sure, a link to the login page can...&#160;&#160;<a href="http://designrjc.com/placing-login-form-on-front-page-of-wordpress/">Continue Reading...</a>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><img onError="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);"  class="alignnone size-full wp-image-784" title="Wordpress Login" src="http://designrjc.com/wp-content/uploads/2010/02/Picture-2.png" alt="" width="354" height="169" /></p>
<p>If your running WordPress, you&#8217;ll know that if you want to log into the admin dashboard, you have to type in the URL for the login page.  This can be inconvenient if you set up a social website where you want users to be able to login.</p>
<p>Sure, a link to the login page can be done, but that requires one extra click and loading of the page.</p>
<p><a title="WPDesigner - How to place a login from in the sidebar" href="http://www.wpdesigner.com/2007/07/09/how-to-place-a-login-form-in-the-sidebar/" target="_blank">WPDesigner</a> has a great snippet of code to add to your theme so users can login from the front page.</p>
<h3>The Code</h3>
<p>You can download the code from WPDesigner.  But here is a quick preview of the code:</p>
<pre>	&lt;li&gt;
		&lt;?php global $user_ID, $user_identity, $user_level ?&gt;
		&lt;?php if ( $user_ID ) : ?&gt;
		&lt;h2&gt;Control panel&lt;/h2&gt;
		&lt;ul&gt;
			&lt;li&gt;Identified as &lt;strong&gt;&lt;?php echo $user_identity ?&gt;&lt;/strong&gt;.
			&lt;ul&gt;
				&lt;li&gt;&lt;a href="&lt;?php bloginfo('url') ?&gt;/wp-admin/"&gt;Dashboard&lt;/a&gt;&lt;/li&gt;

				&lt;?php if ( $user_level &gt;= 1 ) : ?&gt;
				&lt;li&gt;&lt;a href="&lt;?php bloginfo('url') ?&gt;/wp-admin/post-new.php"&gt;Write an article&lt;/a&gt;&lt;/li&gt;
				&lt;?php endif // $user_level &gt;= 1 ?&gt;

				&lt;li&gt;&lt;a href="&lt;?php bloginfo('url') ?&gt;/wp-admin/profile.php"&gt;Profile and personal options&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href="&lt;?php bloginfo('url') ?&gt;/wp-login.php?action=logout&amp;amp;redirect_to=&lt;?php echo urlencode($_SERVER['REQUEST_URI']) ?&gt;"&gt;Exit&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/li&gt;
		&lt;/ul&gt;

		&lt;?php elseif ( get_option('users_can_register') ) : ?&gt;

		&lt;h2&gt;Identification&lt;/h2&gt;
		&lt;ul&gt;
			&lt;li&gt;
			&lt;form action="&lt;?php bloginfo('url') ?&gt;/wp-login.php" method="post"&gt;
				&lt;p&gt;
				&lt;label for="log"&gt;&lt;input type="text" name="log" id="log" value="&lt;?php echo wp_specialchars(stripslashes($user_login), 1) ?&gt;" size="22" /&gt; User&lt;/label&gt;&lt;br /&gt;
				&lt;label for="pwd"&gt;&lt;input type="password" name="pwd" id="pwd" size="22" /&gt; Password&lt;/label&gt;&lt;br /&gt;
				&lt;input type="submit" name="submit" value="Send" /&gt;
				&lt;label for="rememberme"&gt;&lt;input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /&gt; Remember me&lt;/label&gt;&lt;br /&gt;
				&lt;/p&gt;
				&lt;input type="hidden" name="redirect_to" value="&lt;?php echo $_SERVER['REQUEST_URI']; ?&gt;"/&gt;
			&lt;/form&gt;
			&lt;/li&gt;

			&lt;li&gt;&lt;a href="&lt;?php bloginfo('url') ?&gt;/wp-register.php"&gt;Register&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="&lt;?php bloginfo('url') ?&gt;/wp-login.php?action=lostpassword"&gt;Recover password&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;

		&lt;?php endif // get_option('users_can_register') ?&gt;

	&lt;/li&gt;</pre>
<p>Just copy and paste the code above into your sidebar or any other desired location where you want the login form on your front page.  You can do some CSS to edit the appearance so it fits your theme&#8217;s design.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://designrjc.com/placing-login-form-on-front-page-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Set Primary Domain Into a Subfolder on Bluehost</title>
		<link>http://designrjc.com/how-to-set-primary-domain-into-a-subfolder-on-bluehost/</link>
		<comments>http://designrjc.com/how-to-set-primary-domain-into-a-subfolder-on-bluehost/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 05:15:18 +0000</pubDate>
		<dc:creator>Rudy Chou</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.designrjc.com/?p=764</guid>
		<description><![CDATA[Today, I decided that I needed to move my website, a WordPress, installation to a different location.  Since I was going to move and migrate my entire website, I figured I might as well choose an ideal location. Being hosted on Bluehost meant that my primary domain resided in the root folder.  Any add-on domains...&#160;&#160;<a href="http://designrjc.com/how-to-set-primary-domain-into-a-subfolder-on-bluehost/">Continue Reading...</a>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>Today, I decided that I needed to move my website, a <a title="Easily Move Your WordPress Installation" href="http://www.designrjc.com/moving-wordpress-installation-to-another-location/" target="_self">WordPress, installation</a> to a different location.  Since I was going to move and migrate my entire website, I figured I might as well choose an ideal location.</p>
<p>Being hosted on Bluehost meant that my primary domain resided in the root folder.  Any add-on domains were in their own sub folders or sub directories inside the root or public_html.  The downside to this is it keeps all the files to my primary domain unorganized in the root folder.</p>
<p>In order to have it organized, I wanted to have my primary domain folder reside in its own sub folder or sub directory.  I am not as comfortable in the server environment as my knowledge of working with the .htaccess file is limited.</p>
<p>I searched Bluehost knowledgebase as well as other sources and finally came up with a solution that would work.  It required modifying the .htaccess file. You needed to redirect any traffic hitting your domain name to the sub folder directory.</p>
<p>The code is as follows:</p>
<pre># Bluehost.com
# .htaccess main domain to subdirectory redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
# Do not change this line.
RewriteEngine on
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/subdirectory/
# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /subdirectory/$1
# Change yourdomain.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$
RewriteRule ^(/)?$ subdirectory/index.php [L]</pre>
<p>Once that was accomplished, I was able to have my files in a sub folder directory organized like the other add-on domains.</p>
<p>As a side note, since my website is using WordPress, it took a bit more delicate effort to get it working structurally.  One of the problems I had after the redirection to my .htaccess file is that WordPress kept rewriting my .htaccess file rendering the redirection code above useless whenever I updated the Permalink structure.</p>
<p>After hours of testing and trying to figure it out, I found my problem.  The solution is to make sure that once you have done the redirect code to your root .htaccess file, the WordPress Address (URI) and Blog Address (URI) both need to match.</p>
<p>For example, even though, my domain is http://yourdomain.com but the WordPress installation is located at http://yourdomain.com/subfolder, both WordPress Address and Blog Address URI&#8217;s need to point to the path of http://yourdomain.com.  I made the mistake of pointing my WordPress Address to http://yourdomain.com/subfolder causing a loop or an Internal 500 Server error.</p>
<p>Here are some additional resources for you if you are on Bluehost and also about to do what I just did.  This can save you lots of time, like 4 hours worth.</p>
<ul>
<li><a title="How to host Primary Domain from a subfolder Bluehost" href="http://helpdesk.bluehost.com/index.php/kb/article/347" target="_blank">Bluehost Knowledgebase</a></li>
<li><a title="Discussion and Solution at WebProWorld" href="http://www.webproworld.com/web-programming-discussion-forum/82683-primary-domain-redirect-folder.html" target="_blank">Discussion and Solution at WebProWorld</a></li>
<li><a title="Another Bluehost Redirect Method" href="http://www.bluehostforum.com/showthread.php?t=17335" target="_blank">Another Bluehost Redirect Method</a></li>
</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://designrjc.com/how-to-set-primary-domain-into-a-subfolder-on-bluehost/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How To Move Your WordPress Installation to Another Location</title>
		<link>http://designrjc.com/moving-wordpress-installation-to-another-location/</link>
		<comments>http://designrjc.com/moving-wordpress-installation-to-another-location/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 04:45:51 +0000</pubDate>
		<dc:creator>Rudy Chou</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.designrjc.com/?p=761</guid>
		<description><![CDATA[WordPress is a popular blog.  I did not know how much I would fall in love with developing on this platform. For my installation, I have it hosted on Bluehost.  Since I installed it in 2007, I was not aware of its capabilities at the time.  I had it in directories nested two levels deep...&#160;&#160;<a href="http://designrjc.com/moving-wordpress-installation-to-another-location/">Continue Reading...</a>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>WordPress is a popular blog.  I did not know how much I would fall in love with developing on this platform.</p>
<p>For my installation, I have it hosted on Bluehost.  Since I installed it in 2007, I was not aware of its capabilities at the time.  I had it in directories nested two levels deep and also had it pointing to a different subdomain, http://blog.designrjc.com.  This is not ideal for SEO and it kept organization chaotic.</p>
<p>I had previously moved a WordPress installation to a different location on the server so I have had experience, but that one was a bit more straight forward.</p>
<p>There are several methods to move or migrate your WordPress to different locations on your server but I believe this to be the easiest implementation.</p>
<ol>
<li>Backup your WordPress installation by downloading the entire contents via FTP as well as backing up your database.  Just in case something goes wrong and you need to do a re-install.</li>
<li>Create a new folder at the location of the directory where you want it to be in.</li>
<li>Log into your WordPress website</li>
<li>Go to Adminstration -&gt; Settings -&gt; General panel.</li>
<li>Change the <strong>WordPress address (URI):</strong> to the new location path of where all your main core files will end up at.</li>
<li>Change the <strong>Blog address (URI):</strong> pointing to where the new location is at.  In most cases, this will match the previous box.</li>
<li>Move all your files to the new directory into the folder you just created.</li>
<li>Now test to see if you have successfully moved and migrated your WordPress to the new location.</li>
</ol>
<p>There are several things to note after you migrate.</p>
<ol>
<li>If you were using Permalinks you will need to log into your Dashboard and update the Permalink structure.</li>
<li>Images may be missing from posts because they are pointing to the old path.
<ul>
<li><strong>Old Path</strong> &#8211; http://yourdomain.com/wordpress/blog/wp-content/uploads/</li>
<li><strong>New Path</strong> &#8211; http://yourdomain.com/newwordpress/wp-content/uploads/</li>
</ul>
</li>
</ol>
<p>Good luck on moving your WordPress installation to a more ideal location that is easier for you to keep organized as well as <a title="Online Marketing" href="http://designrjc.com/services/online-marketing/">being SEO friendly</a>.</p>
<p>Here are some additional resources and guides to help you with this:</p>
<ul>
<li><a title="Moving WordPress - WP Codex" href="http://codex.wordpress.org/Moving_WordPress" target="_blank">Moving WordPress via WordPress Codex</a></li>
<li><a title="WP Codex - Changing the Site URL" href="http://codex.wordpress.org/Changing_The_Site_URL" target="_blank">WordPress Codex &#8211; Changing the Site URL</a></li>
</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://designrjc.com/moving-wordpress-installation-to-another-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Effortlessly Get Pagination For Your WordPress Theme</title>
		<link>http://designrjc.com/how-to-effortlessly-get-pagination-for-your-wordpress-theme/</link>
		<comments>http://designrjc.com/how-to-effortlessly-get-pagination-for-your-wordpress-theme/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 23:48:36 +0000</pubDate>
		<dc:creator>Rudy Chou</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[User Interface Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.designrjc.com/?p=747</guid>
		<description><![CDATA[WordPress is a great platform to work with because of the structure, however, there are limitations to a default WordPress theme. One of the limiting factors of WordPress by default is that the included pagination for navigation is too simple. The default WordPress pagination allows for &#8220;previous&#8221; and &#8220;next&#8221; hyperlinks only.  As you can imagine,...&#160;&#160;<a href="http://designrjc.com/how-to-effortlessly-get-pagination-for-your-wordpress-theme/">Continue Reading...</a>]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p>WordPress is a great platform to work with because of the structure, however, there are limitations to a default WordPress theme.</p>
<p>One of the limiting factors of WordPress by default is that the included pagination for navigation is too simple.</p>
<p><img onError="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);"  class="alignnone size-full wp-image-748" title="pagination-default" src="http://designrjc.com/top/blog/wp-content/uploads/2010/02/pagination-default.png" alt="" width="350" height="48" /></p>
<p>The default WordPress pagination allows for &#8220;<strong>previous</strong>&#8221; and &#8220;<strong>next</strong>&#8221; hyperlinks only.  As you can imagine, without using the search function, it may take you some time to jump several pages.  <strong>Bonus</strong>:  If your blog has many articles and posts, the number of pages displayed can show the visitor how much you&#8217;ve actually written on a certain subject.</p>
<p>As a web designer focused on user interface and experience, I am not satisfied with the default.  Instead, I want better pagination for the website.  Thanks to WordPress&#8217; the ability to support plugins, this task is made simpler than creating my own PHP functions.</p>
<p>WP-PageNavi plug created by Lester Chan is a plug-in used for easy implementation of page navigation.  Here is a look at the default WP-PageNavi WordPress plug-in for page navigation:</p>
<p><img onError="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);"  class="alignnone size-full wp-image-749" title="pagination-lester" src="http://designrjc.com/top/blog/wp-content/uploads/2010/02/pagination-lester.png" alt="" width="350" height="41" /></p>
<p>I won&#8217;t go into detail, but you can see that this method of page navigation is found across the internet on many websites.</p>
<h4>Download <a title="WP-PageNavi - page navigation plugin" href="http://www.lesterchan.net/wordpress/readme/wp-pagenavi.html" target="_blank">WP-PageNavi</a></h4>
<h3>Installation and Styling of WP-PageNavi</h3>
<ol>
<li>Download WP-PageNavi or search for it through the WordPress Dashboard Plugins section</li>
<li>Upload the downloaded folder, &#8220;pagenavi&#8221; into your wp-contents/plugins folder or you can also automatically install from the Dashboard</li>
<li>Now activate the plugin</li>
<li>In order to use it in a theme, you will need to add the following code:
<pre>&lt;?php if(function_exists('wp_pagenavi')) {wp_pagenavi(); ?&gt;</pre>
</li>
<li>You can toggle the different settings in WordPress Dashboard found under Admin -&gt; Options -&gt; PageNavi</li>
<li>Make sure to click &#8220;Update Options&#8221; once your done</li>
</ol>
<p>To style the page navigation to your liking, the file to edit is <strong>pagenavi-css.css</strong> found here:</p>
<pre>/wp-content/plugins/pagenavi/pagenavi-css.css</pre>
<p>Good luck on making your WordPress installaion custom!</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://designrjc.com/how-to-effortlessly-get-pagination-for-your-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

