<?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>Matt Thiessen &#187; Wordpress</title>
	<atom:link href="http://matt.thiessen.us/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://matt.thiessen.us</link>
	<description>Learning to make the hard things easy</description>
	<lastBuildDate>Sun, 05 Feb 2012 04:06:14 +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>Adding or Removing Profile Fields</title>
		<link>http://matt.thiessen.us/2011/11/adding-or-removing-profile-fields/</link>
		<comments>http://matt.thiessen.us/2011/11/adding-or-removing-profile-fields/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 16:04:13 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=517</guid>
		<description><![CDATA[function my_contactmethods( $contactmethods ) { // add $contactmethods['twitter'] = 'Twitter'; $contactmethods['facebook'] = 'Facebook'; $contactmethods['blog'] = 'Blog'; // remove unset($contactmethods['aim']); unset($contactmethods['jabber']); unset($contactmethods['yim']); return $contactmethods; } add_filter('user_contactmethods','my_contactmethods',10,1);]]></description>
			<content:encoded><![CDATA[<pre class="wp-code-highlight prettyprint">

function my_contactmethods( $contactmethods ) {

	// add
	$contactmethods['twitter'] = 'Twitter';
	$contactmethods['facebook'] = 'Facebook';
	$contactmethods['blog'] = 'Blog';

	// remove
	unset($contactmethods['aim']);
	unset($contactmethods['jabber']);
	unset($contactmethods['yim']);

	return $contactmethods;
}
add_filter('user_contactmethods','my_contactmethods',10,1);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2011/11/adding-or-removing-profile-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slideshow Gallery not displaying after recent update</title>
		<link>http://matt.thiessen.us/2011/11/slideshow-gallery-not-displaying-after-recent-update/</link>
		<comments>http://matt.thiessen.us/2011/11/slideshow-gallery-not-displaying-after-recent-update/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 03:14:56 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[slideshow gallery]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=511</guid>
		<description><![CDATA[/* // Inclusion: Einbindung von Slideshow Gallery Pro &#124;&#124; Fritz echo &#34;&#60;!-- Gallery existiert GPS Start --&#62;&#34;; echo do_shortcode('[gpslideshow custom=1 align=right thumbs=off caption=on auto=on]'); echo &#34;&#60;!-- Gallery existiert GPS Ende --&#62;&#34;; */ // Inclusion: Slideshow Gallery Standard &#124;&#124; Fritz &#124;&#124; 22/11/2011 echo &#34;&#60;!-- Gallery existiert Start --&#62;&#34;; echo do_shortcode('[slideshow custom=1]'); echo &#34;&#60;!-- Gallery existiert Ende [...]]]></description>
			<content:encoded><![CDATA[<pre class="wp-code-highlight prettyprint">
/*
// Inclusion: Einbindung von Slideshow Gallery  Pro || Fritz
echo &quot;&lt;!-- Gallery existiert GPS Start --&gt;&quot;;
echo do_shortcode('[gpslideshow custom=1 align=right thumbs=off caption=on auto=on]');
echo &quot;&lt;!-- Gallery existiert GPS Ende --&gt;&quot;;
*/

// Inclusion: Slideshow Gallery Standard || Fritz || 22/11/2011
echo &quot;&lt;!-- Gallery existiert Start --&gt;&quot;;
echo do_shortcode('[slideshow custom=1]');
echo &quot;&lt;!-- Gallery existiert Ende --&gt;&quot;;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2011/11/slideshow-gallery-not-displaying-after-recent-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a meta_box to all Post Types</title>
		<link>http://matt.thiessen.us/2011/11/adding-a-meta_box-to-all-post-types/</link>
		<comments>http://matt.thiessen.us/2011/11/adding-a-meta_box-to-all-post-types/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 01:03:00 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=508</guid>
		<description><![CDATA[$post_types = get_post_types( array( '_builtin' =&#62; false ), 'objects' ); // Gets all custom types array_push( $post_types, get_post_type_object( 'post' ), get_post_type_object( 'page') ); // Adds back the 'post' and 'page' types while ommitting attachments, revisions, menus, etc. foreach ( $post_types as $type ) { add_meta_box( . . . ); }]]></description>
			<content:encoded><![CDATA[<pre class="wp-code-highlight prettyprint">
$post_types = get_post_types( array( '_builtin' =&gt; false ), 'objects' );  // Gets all custom types
       array_push( $post_types, get_post_type_object( 'post' ), get_post_type_object( 'page')  ); // Adds back the 'post' and 'page' types while ommitting attachments, revisions, menus, etc.
       foreach ( $post_types as $type ) {
               add_meta_box( . . . );
       }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2011/11/adding-a-meta_box-to-all-post-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP-o-Matic breaks WordPress Related Links</title>
		<link>http://matt.thiessen.us/2011/11/wp-o-matic-breaks-wordpress-related-links/</link>
		<comments>http://matt.thiessen.us/2011/11/wp-o-matic-breaks-wordpress-related-links/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 15:27:09 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp-o-matic]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=491</guid>
		<description><![CDATA[function adminInit() { auth_redirect(); // force display of a certain section $this-&#62;section = ($this-&#62;setup) ? ((isset($_REQUEST['s']) &#38;&#38; $_REQUEST['s']) ? $_REQUEST['s'] : $this-&#62;sections[0]) : 'setup'; // if (isset($_SERVER['HTTP_USER_AGENT']) &#38;&#38; (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) // die('Please switch to Firefox / Safari'); wp_enqueue_script('prototype'); wp_enqueue_script('wpoadmin', $this-&#62;tplpath . '/admin.js', array('prototype'), $this-&#62;version); if ($this-&#62;section == 'list') wp_enqueue_script('listman'); //if ( WPOTools::isAjax() ) [...]]]></description>
			<content:encoded><![CDATA[<p><code>function adminInit() {<br />
		auth_redirect();</p>
<p>		// force display of a certain section<br />
		$this-&gt;section = ($this-&gt;setup) ? ((isset($_REQUEST['s']) &amp;&amp; $_REQUEST['s']) ? $_REQUEST['s'] : $this-&gt;sections[0]) : 'setup';</p>
<p>//    if (isset($_SERVER['HTTP_USER_AGENT']) &amp;&amp; (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))<br />
//      die('Please switch to Firefox / Safari');</p>
<p>		wp_enqueue_script('prototype');<br />
		wp_enqueue_script('wpoadmin', $this-&gt;tplpath . '/admin.js', array('prototype'), $this-&gt;version);</p>
<p>		if ($this-&gt;section == 'list')<br />
			wp_enqueue_script('listman');</p>
<p>		//if ( WPOTools::isAjax() ) {<br />
		if ( WPOTools::isAjax() &amp;&amp;  $this-&gt;section != 'home' ) { // Matt Thiessen 11/8/11<br />
			$this-&gt;admin();<br />
			exit;<br />
		}<br />
	}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2011/11/wp-o-matic-breaks-wordpress-related-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NextGen Gallery fails to create new gallery</title>
		<link>http://matt.thiessen.us/2011/10/nextgen-gallery-fails-to-create-new-gallery/</link>
		<comments>http://matt.thiessen.us/2011/10/nextgen-gallery-fails-to-create-new-gallery/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 15:23:26 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=488</guid>
		<description><![CDATA[For some reason the slug field was missing in the wp_6_ngg_gallery on one of my WordPress multisite blogs. The fix . . . ALTER TABLE `wp_6_ngg_gallery` ADD `slug` VARCHAR( 255 ) NULL AFTER `name`; ALTER TABLE `wp_6_ngg_pictures` ADD `image_slug` VARCHAR NOT NULL AFTER `pid`]]></description>
			<content:encoded><![CDATA[<p>For some reason the slug field was missing in the wp_6_ngg_gallery on one of my WordPress multisite blogs.</p>
<p>The fix . . .</p>
<p><code>ALTER TABLE `wp_6_ngg_gallery` ADD `slug` VARCHAR( 255 ) NULL AFTER `name`;</code><br />
<code>ALTER TABLE `wp_6_ngg_pictures` ADD `image_slug` VARCHAR NOT NULL AFTER `pid`</code></p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2011/10/nextgen-gallery-fails-to-create-new-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SlidePress Plugin Redirect Bug</title>
		<link>http://matt.thiessen.us/2010/11/slidepress-plugin-redirect-bug/</link>
		<comments>http://matt.thiessen.us/2010/11/slidepress-plugin-redirect-bug/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 14:24:46 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[capabilities]]></category>
		<category><![CDATA[meta_key]]></category>
		<category><![CDATA[meta_value]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[SlidePress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=411</guid>
		<description><![CDATA[When clicking on settings links for the SlidePress plugin in a multi-user WordPress site the plugin would redirect to /wp-admin/?c=1 for each domain except the parent site. [code lang="php"]function get_current_user_role() { global $current_user, $wp_roles; $role_names = $wp_roles -&#62; get_names(); /* UPDATED 11/2/2010 9:21 AM * by matt.thiessen@sourcemedia.net */ // modified [start] reset($current_user-&#62;roles); $first_key = key($current_user-&#62;roles); [...]]]></description>
			<content:encoded><![CDATA[<p>When clicking on settings links for the SlidePress plugin in a multi-user WordPress site the plugin would redirect to /wp-admin/?c=1 for each domain except the parent site.</p>
<p>[code lang="php"]function get_current_user_role() {<br />
global $current_user, $wp_roles;<br />
$role_names = $wp_roles -&gt; get_names();<br />
/* UPDATED 11/2/2010 9:21 AM<br />
* by matt.thiessen@sourcemedia.net<br />
*/<br />
// modified [start]<br />
reset($current_user-&gt;roles);<br />
$first_key = key($current_user-&gt;roles);<br />
return preg_replace( "/\|.*/", '', $role_names[$current_user-&gt;roles[$first_key]]);<br />
/*old*///return preg_replace( "/\|.*/", '', $role_names[$current_user-&gt;roles[0]]);<br />
// modified [end]<br />
}[\code]</p>
<p>Also, make sure if you are an admin user with super user privileges you are added at a admin user to the site you are using the SlidePress plugin.</p>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2010/11/add-a-new-user.png"><img class="alignleft size-full wp-image-416" title="add-a-new-user" src="http://matt.thiessen.us/wp-content/uploads/2010/11/add-a-new-user.png" alt="" width="394" height="240" /></a></p>
<p>This will add proper capabilities to the database in the wp_usermeta table.<br />
meta_key: wp_25_capabilities<br />
meta_value: a:1:{s:13:"administrator";s:1:"1";}</p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2010/11/slidepress-plugin-redirect-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>is_home() not working in my WordPress plugin</title>
		<link>http://matt.thiessen.us/2009/08/is_home-not-working-in-my-wordpress-plugin/</link>
		<comments>http://matt.thiessen.us/2009/08/is_home-not-working-in-my-wordpress-plugin/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 18:05:46 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=282</guid>
		<description><![CDATA[When using is_home(), is_category(), is_page() etc. in my WordPress plugin that displays category-based ads, they kept returning NULL. My problem was that I was calling this these function directly in my plugin. I resolved this by adding these call to my adHeaderSetup() function and setting the hook add_action(&#8216;wp_head&#8217;, &#8216;adHeaderSetup&#8217;);]]></description>
			<content:encoded><![CDATA[<p>When using is_home(), is_category(), is_page() etc. in my WordPress plugin that displays category-based ads, they kept returning NULL.</p>
<p>My problem was that I was calling this these function directly in my plugin.  I resolved this by adding these call to my adHeaderSetup() function and setting the hook add_action(&#8216;wp_head&#8217;, &#8216;adHeaderSetup&#8217;);</p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/08/is_home-not-working-in-my-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create new ad content</title>
		<link>http://matt.thiessen.us/2009/06/create-new-ad-content/</link>
		<comments>http://matt.thiessen.us/2009/06/create-new-ad-content/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 03:19:01 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=250</guid>
		<description><![CDATA[&#60;object width="640" height="505"&#62;&#60;param name="movie" value="http://www.youtube.com/v/kUw8CTacj-0&#38;hl=en&#38;fs=1&#38;"&#62;&#60;/param&#62;&#60;param name="allowFullScreen" value="true"&#62;&#60;/param&#62;&#60;param name="allowscriptaccess" value="always"&#62;&#60;/param&#62;&#60;embed src="http://www.youtube.com/v/kUw8CTacj-0&#38;hl=en&#38;fs=1&#38;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"&#62;&#60;/embed&#62;&#60;/object&#62;]]></description>
			<content:encoded><![CDATA[<p><code><br />
&lt;object width="640" height="505"&gt;&lt;param name="movie" value="http://www.youtube.com/v/kUw8CTacj-0&amp;hl=en&amp;fs=1&amp;"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/kUw8CTacj-0&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"&gt;&lt;/embed&gt;&lt;/object&gt;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/06/create-new-ad-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Committees and Board WordPress Plugin</title>
		<link>http://matt.thiessen.us/2009/05/committees-and-board-wordpress-plugin/</link>
		<comments>http://matt.thiessen.us/2009/05/committees-and-board-wordpress-plugin/#comments</comments>
		<pubDate>Thu, 14 May 2009 02:55:23 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=239</guid>
		<description><![CDATA[Displaying the Committees View Members Edit Member Update Member Press the &#8220;add new member button&#8221; Add New Member]]></description>
			<content:encoded><![CDATA[<h3>Displaying the Committees</h3>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/05/menu.gif"><img class="alignleft size-full wp-image-243" title="menu" src="http://matt.thiessen.us/wp-content/uploads/2009/05/menu.gif" alt="menu" width="260" height="359" /></a><br />
<br clear="all" /></p>
<h3>View Members</h3>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/05/view_members.gif"><img src="http://matt.thiessen.us/wp-content/uploads/2009/05/view_members.gif" alt="view members" title="view members" width="481" height="304" class="alignleft size-full wp-image-245" /></a><br />
<br clear="all" /></p>
<h3>Edit Member</h3>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/05/edit_member.gif"><img src="http://matt.thiessen.us/wp-content/uploads/2009/05/edit_member.gif" alt="edit member" title="edit member" width="562" height="313" class="alignleft size-full wp-image-244" /></a><br />
<br clear="all" /></p>
<h3>Update Member</h3>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/05/update_member.gif"><img src="http://matt.thiessen.us/wp-content/uploads/2009/05/update_member.gif" alt="update member" title="update member" width="474" height="277" class="alignleft size-full wp-image-242" /></a><br />
<br clear="all" /></p>
<h3>Press the &#8220;add new member button&#8221;</h3>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/05/add_new_member_button.gif"><img src="http://matt.thiessen.us/wp-content/uploads/2009/05/add_new_member_button.gif" alt="add new member button" title="add new member button" width="474" height="232" class="alignleft size-full wp-image-240" /></a><br />
<br clear="all" /></p>
<h3>Add New Member</h3>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/05/new_member.gif"><img src="http://matt.thiessen.us/wp-content/uploads/2009/05/new_member.gif" alt="new member" title="new member" width="494" height="426" class="alignleft size-full wp-image-241" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/05/committees-and-board-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Text to the Sidebar</title>
		<link>http://matt.thiessen.us/2009/05/adding-text-to-the-sidebar/</link>
		<comments>http://matt.thiessen.us/2009/05/adding-text-to-the-sidebar/#comments</comments>
		<pubDate>Mon, 11 May 2009 00:18:49 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=231</guid>
		<description><![CDATA[You can add any text,HTML or JavaScript to the sidebar of your WordPress site.  The first thing you need to do after logging into the wp-admin is to select Widgets. Select Widgets It&#8217;s possible that you have more than one sidebar, if you do select the desired sidebar you want to add text. Select Sidebar [...]]]></description>
			<content:encoded><![CDATA[<p>You can add any text,HTML or JavaScript to the sidebar of your WordPress site.  The first thing you need to do after logging into the wp-admin is to select Widgets.</p>
<h3>Select Widgets</h3>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/05/menu.png"><img class="alignleft size-full wp-image-232" title="Selecting Widgets" src="http://matt.thiessen.us/wp-content/uploads/2009/05/menu.png" alt="Selecting Widgets" width="163" height="572" /></a><br />
<br clear="all" /><br />
It&#8217;s possible that you have more than one sidebar, if you do select the desired sidebar you want to add text.</p>
<h3>Select Sidebar</h3>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/05/current_sidebar.png"><img class="alignleft size-full wp-image-233" title="current sidebar" src="http://matt.thiessen.us/wp-content/uploads/2009/05/current_sidebar.png" alt="current sidebar" width="767" height="227" /></a><br />
<br clear="all" /></p>
<h3>Add Text Widget</h3>
<p>Now you add the Text Widget to the sidebar.<br />
<a href="http://matt.thiessen.us/wp-content/uploads/2009/05/add_text.png"><img src="http://matt.thiessen.us/wp-content/uploads/2009/05/add_text.png" alt="add text Widget" title="add text Widget" width="538" height="497" class="alignleft size-full wp-image-234" /></a><br />
<br clear="all" /></p>
<h3>Editing the Text</h3>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/05/edit_text.png"><img src="http://matt.thiessen.us/wp-content/uploads/2009/05/edit_text.png" alt="edit text widget" title="edit text widget" width="304" height="330" class="alignleft size-full wp-image-235" /></a><br />
<br clear="all" /></p>
<h3>Saving the text</h3>
<p>Add the title for your text, add the text you want to display, press the done button and then press the save button.  And you&#8217;re done.  Visit your site to see the new text widget.<br />
<a href="http://matt.thiessen.us/wp-content/uploads/2009/05/enter_text.png"><img src="http://matt.thiessen.us/wp-content/uploads/2009/05/enter_text.png" alt="enter and save text" title="enter and save text" width="446" height="550" class="alignleft size-full wp-image-236" /></a><br />
<br clear="all" /></p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/05/adding-text-to-the-sidebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

