<?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>nhaskins.com &#187; congruence-inc.com</title>
	<atom:link href="http://nhaskins.com/tag/congruence-inc-com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nhaskins.com</link>
	<description>web development note book</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Override sidebar menus in WordPress</title>
		<link>http://nhaskins.com/post/override-sidebar-menus-in-wordpress/</link>
		<comments>http://nhaskins.com/post/override-sidebar-menus-in-wordpress/#comments</comments>
		<pubDate>Tue, 04 May 2010 20:21:48 +0000</pubDate>
		<dc:creator>Nathan Haskins</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[congruence-inc.com]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://nhaskins.com/post/override-sidebar-menus-in-wordpress/</guid>
		<description><![CDATA[Not so bad, working on congruence-inc.com with this template that had non-options side menus attached to the pages/posts. I didn&#8217;t want to dig though this guys layout generation code so i went in and added a simple if/then/else statement to manage when my cool links would show up. Only wanted them on a few pages [...]]]></description>
			<content:encoded><![CDATA[<p>Not so bad, working on congruence-inc.com with this template that had non-options side menus attached to the pages/posts.  I didn&#8217;t want to dig though this guys layout generation code so i went in and added a simple if/then/else statement to manage when my cool links would show up.  Only wanted them on a few pages associated to the content&#8230; whenever it hits page ID = x, it will call a function and print the desired menus, also getting rid of the extra widgets that would normally be there.</p>
<pre><code>/// in the sidebar file

	//check and see if a side menu needs to be added to the following pages.
	//57 -&gt; Building Career Equity
	//58 -&gt; Building A Pipeline Of Leaders
	//59 -&gt; Congruent Selections
	//keep this above the loop below or else the $post value get changed up.

	if( ($post-&gt;ID == '57') || ($post-&gt;ID == '58') || ($post-&gt;ID == '59')){sideMenus();} else {...widgets...}

///in the functions.php file

function sideMenus(){

	$output = '
		&lt;div class="buildingEquityMenus"&gt;
		<a href="http://nhaskins.com/building-career-equity/">Building Career Equity&amp;trade;</a>&lt;br /&gt;
		<a href="http://nhaskins.com/building-a-pipeline-of-leaders/">Building a Pipeline of Leaders</a>&lt;br /&gt;
		<a href="http://nhaskins.com/congruent-selections/">Congruent Selections</a>&lt;br /&gt;
		&lt;/div&gt;
		';

	echo $output;
}</code></pre>
<p>Meh some how i broke the code pre block.. the a tags are converted into links for the sideMenus function..</p>]]></content:encoded>
			<wfw:commentRss>http://nhaskins.com/post/override-sidebar-menus-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

