<?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>Haycroft Media</title>
	<atom:link href="http://www.haycroftmedia.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.haycroftmedia.com</link>
	<description>Quality Web Programming</description>
	<lastBuildDate>Fri, 04 May 2012 06:03:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Strip Titles from WordPress images</title>
		<link>http://www.haycroftmedia.com/archives/421/strip-titles-from-wordpress-images</link>
		<comments>http://www.haycroftmedia.com/archives/421/strip-titles-from-wordpress-images#comments</comments>
		<pubDate>Fri, 04 May 2012 06:03:10 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=421</guid>
		<description><![CDATA[add_filter( &#039;wp_get_attachment_image_attributes&#039;, &#039;my_no_image_title&#039; ); function my_no_image_title ( $attr ) { unset( $attr[&#039;title&#039;] ); return $attr; }]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/421/strip-titles-from-wordpress-images/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Equal-height columns in jQuery</title>
		<link>http://www.haycroftmedia.com/archives/418/equal-height-columns-in-jquery</link>
		<comments>http://www.haycroftmedia.com/archives/418/equal-height-columns-in-jquery#comments</comments>
		<pubDate>Fri, 27 Apr 2012 08:59:58 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=418</guid>
		<description><![CDATA[/*if your columns have unique IDs*/ var highestCol = Math.max ( $(&#039;#element1&#039;).height(), $(&#039;#element2&#039;).height() ); $(&#039;.elements&#039;).height(highestCol); /*alternative if your columns don&#039;t have unique IDs, which was the case when I implemented the above*/ var n = 1; $(&#039;.textwidget&#039;).each(function(){ var id = &#039;element&#039; + n; $(this).attr(&#039;id&#039;,id); n++; }); /*extend this if you have more than two columns, [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/418/equal-height-columns-in-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade a user from subscriber to editor</title>
		<link>http://www.haycroftmedia.com/archives/416/upgrade-a-user-from-subscriber-to-editor</link>
		<comments>http://www.haycroftmedia.com/archives/416/upgrade-a-user-from-subscriber-to-editor#comments</comments>
		<pubDate>Tue, 24 Apr 2012 06:59:42 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=416</guid>
		<description><![CDATA[$u = new WP_User( $userID ); // Remove role $u-&#62;remove_role( &#039;subscriber&#039; ); // Add role $u-&#62;add_role( &#039;editor&#039; );]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/416/upgrade-a-user-from-subscriber-to-editor/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Exclude the_post_thumbnail from gallery shortcode</title>
		<link>http://www.haycroftmedia.com/archives/413/wordpress-exclude-the_post_thumbnail-from-gallery-shortcode</link>
		<comments>http://www.haycroftmedia.com/archives/413/wordpress-exclude-the_post_thumbnail-from-gallery-shortcode#comments</comments>
		<pubDate>Tue, 10 Apr 2012 10:12:24 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=413</guid>
		<description><![CDATA[function exclude_thumbnail_from_gallery($null, $attr) { if (!$thumbnail_ID = get_post_thumbnail_id()) return $null; // no point carrying on if no thumbnail ID // temporarily remove the filter, otherwise endless loop! remove_filter(&#039;post_gallery&#039;, &#039;exclude_thumbnail_from_gallery&#039;); // pop in our excluded thumbnail if (!isset($attr[&#039;exclude&#039;]) &#124;&#124; empty($attr[&#039;exclude&#039;])) $attr[&#039;exclude&#039;] = array($thumbnail_ID); elseif (is_array($attr[&#039;exclude&#039;])) $attr[&#039;exclude&#039;][] = $thumbnail_ID; // now manually invoke the shortcode handler $gallery [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/413/wordpress-exclude-the_post_thumbnail-from-gallery-shortcode/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide HTML until Javascript &amp; CSS are completely loaded</title>
		<link>http://www.haycroftmedia.com/archives/411/hide-html-until-javascript-css-are-completely-loaded</link>
		<comments>http://www.haycroftmedia.com/archives/411/hide-html-until-javascript-css-are-completely-loaded#comments</comments>
		<pubDate>Fri, 30 Mar 2012 14:53:35 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=411</guid>
		<description><![CDATA[/*set body visibility to hidden in your css*/ body { visibility: hidden; } /*add this to your javascript*/ jQuery(document).ready(function(){ /* Show the HTML page only after the js and css are completely loaded */ delayShow(); }); function delayShow() { var secs = 1000; setTimeout(&#039;jQuery(&#34;body&#34;).css(&#34;visibility&#34;,&#34;visible&#34;);&#039;, secs); }]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/411/hide-html-until-javascript-css-are-completely-loaded/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Personal Options from User Profile</title>
		<link>http://www.haycroftmedia.com/archives/408/remove-personal-options-from-user-profile</link>
		<comments>http://www.haycroftmedia.com/archives/408/remove-personal-options-from-user-profile#comments</comments>
		<pubDate>Sun, 11 Mar 2012 23:08:20 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=408</guid>
		<description><![CDATA[&#60;?php //add this to functions.php of your theme function remove_opt_start($adddiv) { $gettitle = array(&#039;#&#60;h3&#62;Personal Options&#60;/h3&#62;#&#039;); $adddiv = preg_replace($gettitle, &#039;&#60;div class=&#34;hidden&#34;&#62;&#039;, $adddiv,1); return $adddiv; } function start_remove_opt_start() { ob_start(&#34;remove_opt_start&#34;); } function end_remove_opt_start() { ob_end_flush(); } function remove_opt_end($addend) { $getname = array(&#039;#&#60;h3&#62;Name&#60;/h3&#62;#&#039;); $addend = preg_replace($getname, &#039;&#60;/div&#62;&#60;h3&#62;Name&#60;/h3&#62;&#039;,$addend,1); return $addend; } function start_remove_opt_end() { ob_start(&#34;remove_opt_end&#34;); } function end_remove_opt_end() { [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/408/remove-personal-options-from-user-profile/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test if Category exists in WordPress</title>
		<link>http://www.haycroftmedia.com/archives/403/test-if-category-exists-in-wordpress</link>
		<comments>http://www.haycroftmedia.com/archives/403/test-if-category-exists-in-wordpress#comments</comments>
		<pubDate>Wed, 22 Feb 2012 08:29:20 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=403</guid>
		<description><![CDATA[&#60;?php /** * only in admin area * * @param string $cat_name */ if ( is_admin() &#38;&#38; category_exists(&#039;uncategorized&#039;) ) // cat_slug, cat_name return true; /** * outside admin area * * is_term($term, $taxonomy = &#039;&#039;) * @param int&#124;string $term The term to check * @param string $taxonomy The taxonomy name to use */ if ( [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/403/test-if-category-exists-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress redirect functions</title>
		<link>http://www.haycroftmedia.com/archives/400/wordpress-redirect-functions</link>
		<comments>http://www.haycroftmedia.com/archives/400/wordpress-redirect-functions#comments</comments>
		<pubDate>Mon, 20 Feb 2012 17:33:12 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=400</guid>
		<description><![CDATA[/*redirect any user*/ &#60;?php wp_redirect(&#039;http://example.com/&#039;); exit; ?&#62; /*checks whether or not the current user is logged in, and redirects them to the Login Page if not. By default, the user will be redirected back to the page from whence they came (e.g., the downloads page)*/ &#60;?php auth_redirect(); ?&#62; /*logout*/ /*Logout &#38; redirect to the home [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/400/wordpress-redirect-functions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect users to any page on login</title>
		<link>http://www.haycroftmedia.com/archives/396/redirect-users-to-any-page-on-login</link>
		<comments>http://www.haycroftmedia.com/archives/396/redirect-users-to-any-page-on-login#comments</comments>
		<pubDate>Mon, 20 Feb 2012 17:27:48 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=396</guid>
		<description><![CDATA[/* redirect to current page */ &#60;a href=&#34;&#60;?php echo wp_login_url(get_permalink()); ?&#62;&#34; title=&#34;Login&#34;&#62;Login to view&#60;/a&#62; /* redirect to home page */ &#60;a href=&#34;&#60;?php echo wp_login_url(get_bloginfo(&#039;wpurl&#039;)); ?&#62;&#34; title=&#34;Login&#34;&#62;Login to view&#60;/a&#62; /* redirect to some other URL */ &#60;a href=&#34;&#60;?php echo wp_login_url(&#039;http://www.google.com&#039;); ?&#62;&#34; title=&#34;Login&#34;&#62;Login to view&#60;/a&#62;]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/396/redirect-users-to-any-page-on-login/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable PHP timeout</title>
		<link>http://www.haycroftmedia.com/archives/394/disable-php-timeout</link>
		<comments>http://www.haycroftmedia.com/archives/394/disable-php-timeout#comments</comments>
		<pubDate>Wed, 01 Feb 2012 13:12:48 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=394</guid>
		<description><![CDATA[&#60;?php // Disable PHP Timeout example // http://php.snippetdb.com //set php script timeout, 0 to disable set_time_limit(0); // your time consuming code //don&#039;t forget to reset to 30 seconds. set_time_limit(30); ?&#62;]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/394/disable-php-timeout/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

