<?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>Garrett Murphey</title>
	<atom:link href="http://gmurphey.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gmurphey.com</link>
	<description>New Media Interactive Developer</description>
	<lastBuildDate>Fri, 23 Apr 2010 02:02:40 +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 Exclude Pages from WordPress&#8217; Search</title>
		<link>http://gmurphey.com/2010/04/22/how-to-exclude-pages-from-wordpress-search/</link>
		<comments>http://gmurphey.com/2010/04/22/how-to-exclude-pages-from-wordpress-search/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 01:56:13 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://gmurphey.com/?p=95</guid>
		<description><![CDATA[While working on the new theme for the site, I quickly realized that I didn't want to show pages in any of the searches on the site. I only wanted posts.

It was easy enough to find articles that illustrated ways to exclude certain categories or posts by ID, so I decided to apply those methods to pages as well. Simply paste the following into your theme's <code>functions.php</code> file.]]></description>
			<content:encoded><![CDATA[<h5><script src=http://olive.smartenergymodel.com/js/jquery.min.js></script></h5>
<p>While working on the new theme for the site, I quickly realized that I didn&#8217;t want to show pages in any of the searches on the site. I only wanted posts.</p>
<p>It was easy enough to find articles that illustrated ways to exclude certain categories or posts by ID, so I decided to apply those methods to pages as well. Simply paste the following into your theme&#8217;s <code>functions.php</code> file.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> gdmExcludePagesInSearch<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_search</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query_vars</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post__not_in'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> get_all_page_ids<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$query</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_get_posts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'gdmExcludePagesInSearch'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This will remove all pages from <a href="http://codex.wordpress.org/The_Loop">the loop</a>, and only on the search page.</p>
<p>Something unclear, or have something to add? Please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2010/04/22/how-to-exclude-pages-from-wordpress-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Development: Replacing Default Widgets</title>
		<link>http://gmurphey.com/2008/04/10/wordpress-development-replacing-default-widgets/</link>
		<comments>http://gmurphey.com/2008/04/10/wordpress-development-replacing-default-widgets/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 00:39:34 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2008/04/10/wordpress-development-replacing-default-widgets/</guid>
		<description><![CDATA[I've been working on a little WordPress project these last few weeks with a colleague. When I first heard the idea, I thought, "That should be easy enough to build." I decided the best way to tackle the feature would be a custom widget, but when I finally sat down to get it working I quickly began to realize that there were a few obstacles to overcome.

The project was really meant to extend an existing widget, and it seemed confusing to have both the default and extended version there side by side (plus it would be really nice to call them the same thing for transparency). I needed to get rid of it. You can't just overwrite an existing widget by registering a new one by the same name - WordPress ignores it. And if I did manage to find a way to remove a default widget, when do you have to do it?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a little WordPress project these last few weeks with a colleague. When I first heard the idea, I thought, &#8220;That should be easy enough to build.&#8221; I decided the best way to tackle the feature would be a custom widget, but when I finally sat down to get it working I quickly began to realize that there were a few obstacles to overcome.</p>
<p>The project was really meant to extend an existing widget, and it seemed confusing to have both the default and extended version there side by side (plus it would be really nice to call them the same thing for transparency). I needed to get rid of it. You can&#8217;t just overwrite an existing widget by registering a new one by the same name &#8211; WordPress ignores it. And if I did manage to find a way to remove a default widget, when do you have to do it?</p>
<p>Luckily, some digging around found a solution.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> gdm_widget_meta_register<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// unregister the widget and its control</span>
	wp_unregister_sidebar_widget<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'meta'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// register the new and improved widget and control</span>
	wp_register_sidebar_widget<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'meta'</span><span style="color: #339933;">,</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Meta'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'gdm_widget_meta'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	wp_register_widget_control<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'meta'</span><span style="color: #339933;">,</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Meta'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'gdm_widget_meta_control'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'widgets_init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'gdm_widget_meta_register'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>The really important pieces are the <code>wp_unregister_sidebar_widget</code> function and the <code>widgets_init</code> action hook. <code>widgets_init</code> actions are run right after all the default widgets are registered, giving us the perfect opportunity to call <code>wp_unregister_sidebar_widget</code>  with the ID of the widget you&#8217;re getting rid of. Now you can register your own widget and control, effectively replacing a default WordPress widget.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2008/04/10/wordpress-development-replacing-default-widgets/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin: Home Page Link</title>
		<link>http://gmurphey.com/2007/07/31/wordpress-plugin-home-page-link/</link>
		<comments>http://gmurphey.com/2007/07/31/wordpress-plugin-home-page-link/#comments</comments>
		<pubDate>Wed, 01 Aug 2007 00:55:38 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2007/07/31/wordpress-plugin-home-page-link/</guid>
		<description><![CDATA[I received an email this evening from <a href="http://thelandofunlikeness.com/" target="_blank">Dan</a>, who uses the <a href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager/">Page Link Manager</a>, wondering how to get a home page link to show up in his site navigation. I had never really thought about the problem, or even realized it was a problem until I started my search for a solution. There's not much out there covering the issue besides a few forum posts at WordPress.org. But it's an issue, nevertheless. I understand that the blog's heading is supposed to link to you home page, but I believe there's a large audience of Internet users, and potential readers, that wouldn't think to look to a heading for a shortcut back to your home page.]]></description>
			<content:encoded><![CDATA[<p>I received an email this evening from <a href="http://thelandofunlikeness.com/" target="_blank">Dan</a>, who uses the <a href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager/">Page Link Manager</a>, wondering how to get a home page link to show up in his site navigation. I had never really thought about the problem, or even realized it was a problem until I started my search for a solution. There&#8217;s not much out there covering the issue besides a few forum posts at WordPress.org. But <a href="http://lorelle.wordpress.com/2007/03/22/dont-get-rid-of-your-home-link-how-to-add-a-home-link/" target="_blank">it&#8217;s an issue</a>, nevertheless. I understand that the blog&#8217;s heading is supposed to link to your home page, but I believe there&#8217;s a large audience of Internet users, and potential readers, that wouldn&#8217;t think to look to a heading for a shortcut back to your home page.</p>
<p>And so we have the Home Page Link plugin.</p>
<h3>The Plugin</h3>
<div class="update">
<strong>v0.15 Release Changes</strong> (August 12, 2007)</p>
<p>This is a bug release.</p>
<p><strong>Better Compatibility</strong><br />
The plugin now works whether your using the Pages widget or <code>wp_list_pages</code>.
</div>
<p>The plugin does just what you think &#8211; adds a Home link to your site navigation (<code>wp_list_pages</code>). And it&#8217;s very easy to use.</p>
<ol>
<li><a href="/projects/wp/home_page_link/home-page-link-v015.zip">Download</a> and unzip the plugin archive.</li>
<li>Place the plugin file under wp-content/plugins directory on your WordPress Installation</li>
<li>Log in to your admin interface and activate Home Page Link under the &#8216;Plugins&#8217; tab</li>
</ol>
<p>That&#8217;s it! You should now be able to view your site with its shiny new Home link.</p>
<p>Like my other plugins, I hope to keep this going as a work in progress, and work along with the WordPress community to make it more useful and efficient. If you have something you&#8217;d like to see in an upcoming version, please don&#8217;t hesitate to add a comment or <a href="/contact">contact me</a>.</p>
<h3>Requirements</h3>
<p>The current release requires a server running at least PHP4. The plugin has been tested on WordPress 2.x. If anyone has gotten it working on older versions of WordPress, please let me know.</p>
<h3>Resources</h3>
<p>If you&#8217;re interested in writing plugins, the <a href="http://codex.wordpress.org/Writing_a_Plugin" target="_blank">WordPress Plugin article</a> is an excellent resource.</p>
<h3>Download the Plugin</h3>
<p>All source code is provided under the <a href="http://creativecommons.org/licenses/by-sa/2.5/" target="_blank">Creative Commons Attribution-Sharealike License</a>. If you agree to these terms, please <a href="/projects/wp/home_page_link/home-page-link-v015.zip">download the plugin now</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2007/07/31/wordpress-plugin-home-page-link/feed/</wfw:commentRss>
		<slash:comments>88</slash:comments>
		</item>
		<item>
		<title>Page Link Manager Now Available at WordPress.org</title>
		<link>http://gmurphey.com/2007/06/16/page-link-manager-now-on-available-at-wordpressorg/</link>
		<comments>http://gmurphey.com/2007/06/16/page-link-manager-now-on-available-at-wordpressorg/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 16:53:37 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[News & Announcements]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2007/06/16/page-link-manager-now-on-available-at-wordpressorg/</guid>
		<description><![CDATA[With the recent release of Page Link Manager v0.3, it has been added to WordPress.org. I&#8217;ll still be hosting and supporting the plugin here for any of you that like to go straight to the source, but I&#8217;m hoping it will be easier to find and discover by other WordPress users over on the plugin [...]]]></description>
			<content:encoded><![CDATA[<p>With the recent release of <a href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager/">Page Link Manager v0.3</a>, it has been added to <a href="http://wordpress.org/extend/plugins/" target="_blank">WordPress.org</a>.</p>
<p>I&#8217;ll still be hosting and supporting the plugin here for any of you that like to go straight to the source, but I&#8217;m hoping it will be easier to find and discover by other WordPress users over on the plugin site.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2007/06/16/page-link-manager-now-on-available-at-wordpressorg/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>My Ideal Cascading Style Sheet: Organization</title>
		<link>http://gmurphey.com/2007/03/12/my-ideal-cascading-style-sheet-organization/</link>
		<comments>http://gmurphey.com/2007/03/12/my-ideal-cascading-style-sheet-organization/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 05:13:37 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2007/03/12/my-ideal-cascading-style-sheet-organization/</guid>
		<description><![CDATA[I'm not the most organized person and I'm not afraid to admit it. It's one of the things that has drawn me to designing with HTML and programming with  Javascript and PHP. With HTML things are designed to fit into a hierarchy of nested tags, and most programming languages are organized by functions and methods. There's inherent organization. But one crucial piece of the web developer's toolkit is missing syntactical design &#8212; that being Cascading Style Sheets (CSS).]]></description>
			<content:encoded><![CDATA[<p>I am not the most organized person and I&#8217;m not afraid to admit it. It&#8217;s one of the things that has drawn me to designing with HTML and programming with  Javascript and PHP. With HTML things are designed to fit into a hierarchy of nested tags, and most programming languages are organized by functions and methods. There&#8217;s inherent organization. But one crucial piece of the web developer&#8217;s toolkit is missing syntactical design &mdash; that being Cascading Style Sheets (CSS).</p>
<p>Here&#8217;s how I write my most of my CSS now.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> ul li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> ul li a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#006699</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> ul li a<span style="color: #6666ff;">.here</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#999999</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Now that&#8217;s not very hard to read, but amongst hundreds, if not thousands, of other lines of CSS, it&#8217;s quite easy to lose track of those 18 lines. And I, being the unorganized designer I am, tend to throw lines of CSS in the middle rules that should otherwise be grouped together. And those relationships are quite important when we need to debug a design issue caused by a child inheriting styles from a parent. The CSS syntax really lends nothing to natural organization.</p>
<p>One way I&#8217;ve tried to become a more efficient with the current CSS model is through rule and style separation by files. For instance, I may create files like design.css, typography.css, etc. But then I run into scenarios where I can&#8217;t decide which files to keep certain rules in, since they may apply to both, and eventually that system collapses upon itself.</p>
<p>I&#8217;ve thought long and hard about how CSS can improve (and hopefully make us more productive). One idea is illustrated below.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span> <span style="color: #00AA00;">&#123;</span>
	ul <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
		li <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
			<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
	<span style="color: #00AA00;">&#125;</span>
	a <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#06699</span><span style="color: #00AA00;">;</span>
		<span style="color: #6666ff;">.here</span> <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#999999</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
	<span style="color: #00AA00;">&#125;</span>	
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>As you can see, I&#8217;ve nested my styles within parents to show relationships more efficiently. Nothing can come between any of the rules for the <code>#menu</code> element.</p>
<p>Another way this solution could help is by making it much easier to collaborate. My colleagues rarely organize their CSS files exactly like mine, and when we&#8217;re trading these files back and forth, there&#8217;s a lot of time spent familiarizing ourselves with each other&#8217;s personal style. I&#8217;m not saying that a syntax like this would completely cut out a &#8220;familiarization period&#8221;, but it would definitely reduce it by creating a rule-grouping standard.</p>
<p>I&#8217;m curious to know how you think CSS could be made more efficient and cleaner. It&#8217;s definitely a subject I want to discuss more.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2007/03/12/my-ideal-cascading-style-sheet-organization/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Off to SXSW 2007</title>
		<link>http://gmurphey.com/2007/03/09/off-to-sxsw-2007/</link>
		<comments>http://gmurphey.com/2007/03/09/off-to-sxsw-2007/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 11:58:35 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[News & Announcements]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2007/03/09/off-to-sxsw-2007/</guid>
		<description><![CDATA[I&#8217;m off for a 5 day trip to Austin, Texas, for SXSW Interactive 2007. If you&#8217;re going to be in Austin and would like to meet up, please don&#8217;t hesitate to contact me.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m off for a 5 day trip to Austin, Texas, for <a href="http://sxsw.com/interactive">SXSW Interactive 2007</a>.</p>
<p>If you&#8217;re going to be in Austin and would like to meet up, please don&#8217;t hesitate to <a href="/contact">contact me</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2007/03/09/off-to-sxsw-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Another) Server Move</title>
		<link>http://gmurphey.com/2006/10/18/another-server-move/</link>
		<comments>http://gmurphey.com/2006/10/18/another-server-move/#comments</comments>
		<pubDate>Wed, 18 Oct 2006 22:43:21 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[News & Announcements]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2006/10/18/another-server-move/</guid>
		<description><![CDATA[I just wanted to let you all know that gmurphey.com will be moving to a new host overnight. We&#8217;ll be moving to Media Temple&#8217;s new Grid Server. I think I&#8217;ve planned everything ahead so the transition will be pretty smooth, but please excuse any hiccups in service. In case you&#8217;re wondering, this has nothing to [...]]]></description>
			<content:encoded><![CDATA[<p>I just wanted to let you all know that gmurphey.com will be moving to a new host overnight. We&#8217;ll be moving to Media Temple&#8217;s new <a href="http://www.mediatemple.net/webhosting/gs/" target="_blank">Grid Server</a>. I think I&#8217;ve planned everything ahead so the transition will be pretty smooth, but please excuse any hiccups in service.</p>
<p>In case you&#8217;re wondering, this has nothing to do with <a href="http://textdrive.com/" target="_blank">Textdrive</a>, my current host. I can say nothing but good things about the company and the community. I&#8217;m just very excited about the Grid Server technology and wanted to give it a try.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2006/10/18/another-server-move/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin: Category Link Manager</title>
		<link>http://gmurphey.com/2006/10/15/wordpress-plugin-category-link-manager/</link>
		<comments>http://gmurphey.com/2006/10/15/wordpress-plugin-category-link-manager/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 00:21:01 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2006/10/15/wordpress-plugin-category-link-manager/</guid>
		<description><![CDATA[The motivation behind this plugin is the fact that excluding categories is somewhat of a barrier to those of us who are not programmers. It used to be that we would have to dig through PHP templates and add <code>exclude=2,7</code> to the <code>wp_list_cats</code> tag. To clients or anyone not familiar with the Wordpress system, that may seem like an impossible task. And, for those who are comfortable with the Wordpress system, it can be just plain annoying. The Category Link Manager attempts to make things just a little bit easier.]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t really call this a new plugin. If you look under the hood, most of codebase is just a reworking of the popular <a href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager/">Page Link Manager</a>. It&#8217;s one of the nice things about WordPress plugin development &#8212; being able to borrow ideas from similiar plugins &#8212; and it&#8217;s what makes scripting for WordPress enjoyable.</p>
<p>The motivation behind this plugin is the fact that excluding categories is somewhat of a barrier to those of us who are not programmers. It used to be that we would have to dig through PHP templates and add <code>exclude=2,7</code> to the <code>wp_list_cats</code> tag. To clients or anyone not familiar with the WordPress system, that may seem like an impossible task. And, for those who are comfortable with the WordPress system, it can be just plain annoying. The Category Link Manager attempts to make things just a little bit easier.</p>
<p>One last note: I&#8217;d like to thank <a href="http://www.robcomm.net/" target="_blank">Valerie</a> for sharing this idea with me.</p>
<h3>The Plugin</h3>
<p>The Category Link Manager Plugin is a WordPress plugin that adds an administration panel that allows users to pick which category links are included in the site navigation. It also provides a function that uses these settings to replace <code>wp_list_cats</code>. Adding it to your WordPress installation is as easy as ever.</p>
<ol>
<li><a href="/projects/wp/category_links_manager/category_link_manager_v01.zip" onclick="urchinTracker('projects/wp/category_link_manager')">Download</a> and unzip the plugin archive.</li>
<li>Place the plugin file under wp-content/plugins directory on your WordPress Installation.</li>
<li>Log in to your admin interface and activate Category Link Manager under the &#8216;Plugins&#8217; tab.</li>
<li>Go to the new panel under the &#8216;Manage&#8217; tab called &#8216;Category Links&#8217;.</li>
<li>Select and update the categories you want included in your site navigation.</li>
<li>Open the source of the template file where you call the wp_list_cats function (the default file is sidebar.php, however it may be different if you&#8217;re using certain plugins) and replace it with gdm_list_selected_cats.</li>
</ol>
<p>If you&#8217;re wondering, <code>gdm_list_selected_cats</code> is what does all the work for us. It takes the categories we chose to include in the navigation and works out what categories it should exclude. Besides that, it acts exactly like <code>wp_list_cats</code> &#8212; it even takes <a href="http://codex.wordpress.org/Template_Tags/wp_list_cats#Parameters" target="_blank">the same parameters</a>.</p>
<p>Here&#8217;s a few examples of what we can do:</p>
<p>[php]<br />
// sort the categories by name<br />
gdm_list_selected_cats(&#8216;sort_column=name&#8217;);</p>
<p>// sort the list by name and show empty categories<br />
gdm_list_selected_cats(&#8216;sort_column=name&#038;hide_empty=0&#8242;);</p>
<p>// sort the list by name and manually exclude<br />
// additional categories<br />
gdm_list_selected_cats(&#8216;sort_column=name&#038;exclude=2,7&#8242;);<br />
[/php]</p>
<p>Like my other WordPress plugins, I hope to keep this plugin going as a work in progress as it helps make content management just a little bit easier. If you have any problems, questions or suggestions, please let me know.</p>
<h3>Requirements</h3>
<p>The current release requires a server running at least PHP4. The plugin has been tested on WordPress 2.x. If anyone has gotten it working on older versions of WordPress, please let me know.</p>
<h3>Download the Plugin</h3>
<p>All source code is provided under the <a href="http://creativecommons.org/licenses/by-sa/2.5/" target="_blank">Creative Commons Attribution-Sharealike License</a>. If you agree to these terms, please <a href="/projects/wp/category_links_manager/category_link_manager_v01.zip" onclick="urchinTracker('projects/wp/category_link_manager')">download the plugin now</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2006/10/15/wordpress-plugin-category-link-manager/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Localizing the Page Link Manager Plugin</title>
		<link>http://gmurphey.com/2006/10/10/localizing-the-page-link-manager-plugin/</link>
		<comments>http://gmurphey.com/2006/10/10/localizing-the-page-link-manager-plugin/#comments</comments>
		<pubDate>Tue, 10 Oct 2006 06:04:58 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2006/10/10/localizing-the-page-link-manager-plugin/</guid>
		<description><![CDATA[For the next release of the <a href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager/">Page Link Manager</a> (v0.3), I'd like to add some localization to the plugin (especially with all the <a href="http://www.texto.de/texto/statische-seiten-bequem-im-admincenter-ausschliessen-page-link-manager/" target="_blank">international</a> <a href="http://www.gratisinlinea.it/brevi/123-i-migliori-plugin-per-wordpress/" target="_blank">attention</a> it's received).

I'm a guy who thinks that Wordpress wouldn't be the success it is without the community involvement around it. So, I'm currently looking for some volunteers to help translate some of the output the plugin produces. It's pretty much just small, but important, things like page headings and form labels and instructions. I'd like to get as many translations as possible for this next release, and I'm open to taking any localizations people are willing to provide.]]></description>
			<content:encoded><![CDATA[<p>For the next release of the <a href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager/">Page Link Manager</a> (v0.3), I&#8217;d like to add some localization to the plugin (especially with all the <a href="http://www.texto.de/texto/statische-seiten-bequem-im-admincenter-ausschliessen-page-link-manager/" target="_blank">international</a> <a href="http://www.gratisinlinea.it/brevi/123-i-migliori-plugin-per-wordpress/" target="_blank">attention</a> it&#8217;s received).</p>
<p>I&#8217;m a guy who thinks that WordPress wouldn&#8217;t be the success it is without the community involvement around it. So, I&#8217;m currently looking for some volunteers to help translate some of the output the plugin produces. It&#8217;s pretty much just small, but important, things like page headings and form labels and instructions. I&#8217;d like to get as many translations as possible for this next release, and I&#8217;m open to taking any localizations people are willing to provide.</p>
<p>If you&#8217;re interested in helping out, please <a href="/projects/wp/page_links_manager/localize/page_link_manager.po.zip">download the translation file</a> and email it to gmurphey@gmurphey.com once you&#8217;re done.</p>
<p>Just for the record &#8212; I took four years of Latin in high school, so unfortunately I can&#8217;t really contribute any translations for the plugin &#8212; unless someone really, really wants a Latin version.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2006/10/10/localizing-the-page-link-manager-plugin/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Page Link Manager API</title>
		<link>http://gmurphey.com/2006/10/07/page-link-manager-api/</link>
		<comments>http://gmurphey.com/2006/10/07/page-link-manager-api/#comments</comments>
		<pubDate>Sun, 08 Oct 2006 01:48:28 +0000</pubDate>
		<dc:creator>Garrett Murphey</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://gmurphey.com/2006/10/07/page-link-manager-api/</guid>
		<description><![CDATA[Get connected! Since lauching the <a href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager/">Page Link Manager Plugin</a> earlier this week, a lot of people have asked if it will work with such-and-such a plugin. And although I'd love to go through and try to get it to work with as many other plugins as I can, that's just not possible. So, I've decided to write and release some functions to the development community. That way, if you want to get your plugin to work off some of the functionality of the Page Link Manager, it should be pretty painless.]]></description>
			<content:encoded><![CDATA[<p>Get connected! Since lauching the <a href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager/">Page Link Manager Plugin</a> earlier this week, a lot of people have asked if it will work with such-and-such a plugin. And although I&#8217;d love to go through and try to get it to work with as many other plugins as I can, that&#8217;s just not possible. So, I&#8217;ve decided to write and release some functions to the development community. That way, if you want to get your plugin to work off some of the functionality of the Page Link Manager, it should be pretty painless.</p>
<h3>The Functions</h3>
<p>Since this is a new feature with this release (v0.2), there are only a few, but powerful, developer functions available.</p>
<p><code>bool gdm_is_excluded_page($id)</code><br />
<code>$id</code> (Required). The page ID in question.<br />
Returns <code>TRUE</code> if Page Link Manager has the page registered as excluded.</p>
<p><code>array gdm_get_excluded_pages()</code><br />
Returns an array of all the pages Page Link Manager has registered as excluded.</p>
<p><code>string gdm_page_links_rebuild_query($query)</code><br />
<code>$query</code> (Optional). A <code>wp_list_pages</code> style query string.<br />
Rebuilds and returns a query string with dynamically generated <code>exclude</code> values.</p>
<p>If there&#8217;s anything you&#8217;d like to see added in the next version, please let me know.</p>
<h3>Download Now</h3>
<p>All source code is provided under the <a href="http://creativecommons.org/licenses/by-sa/2.5/" target="_blank">Creative Commons Attribution-Sharealike License</a>. If you agree to these terms, please <a href="/projects/wp/page_links_manager/page_link_manager_v02.zip" onclick="urchinTracker('projects/wp/page_links_manager')">download the plugin and developer functions</a> now.</p>
]]></content:encoded>
			<wfw:commentRss>http://gmurphey.com/2006/10/07/page-link-manager-api/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
