<?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>Wed, 01 Feb 2012 13:12:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>
		<item>
		<title>Awesome function to control youtube players in iframes</title>
		<link>http://www.haycroftmedia.com/archives/388/awesome-function-to-control-youtube-players-in-iframes</link>
		<comments>http://www.haycroftmedia.com/archives/388/awesome-function-to-control-youtube-players-in-iframes#comments</comments>
		<pubDate>Wed, 01 Feb 2012 07:34:40 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=388</guid>
		<description><![CDATA[I&#8217;ve decided to convert the youtube slider I built for a client into a WP plugin. This function was a life-saver. The plugin consists of an iframe that displays the selected youtube video and a slider of thumbnails showing other videos in the user&#8217;s youtube channel. Everything was working perfectly until I noticed that when [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/388/awesome-function-to-control-youtube-players-in-iframes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a login form to WordPress theme</title>
		<link>http://www.haycroftmedia.com/archives/386/add-a-login-form-to-wordpress-theme</link>
		<comments>http://www.haycroftmedia.com/archives/386/add-a-login-form-to-wordpress-theme#comments</comments>
		<pubDate>Mon, 30 Jan 2012 08:06:40 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=386</guid>
		<description><![CDATA[function sidebar_loginform(){ if (!(current_user_can(&#039;level_0&#039;))){ $content = &#039; &#60;form action=&#34;&#039; . get_option( &#039;home&#039; ) . &#039;/wp-login.php&#34; method=&#34;post&#34;&#62; &#60;input type=&#34;text&#34; name=&#34;log&#34; id=&#34;log&#34; value=&#34;&#039; . wp_specialchars( stripslashes($user_login), 1 ) . &#039;&#34; size=&#34;20&#34; /&#62; &#60;input type=&#34;password&#34; name=&#34;pwd&#34; id=&#34;pwd&#34; size=&#34;20&#34; /&#62; &#60;input type=&#34;submit&#34; name=&#34;submit&#34; value=&#34;login&#34; class=&#34;button&#34; /&#62; &#60;p&#62; &#60;label for=&#34;rememberme&#34;&#62;&#60;input name=&#34;rememberme&#34; id=&#34;rememberme&#34; type=&#34;checkbox&#34; checked=&#34;checked&#34; value=&#34;forever&#34; /&#62; Remember me&#60;/label&#62; &#60;input type=&#34;hidden&#34; [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/386/add-a-login-form-to-wordpress-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery nl2br equivalent</title>
		<link>http://www.haycroftmedia.com/archives/384/jquery-nl2br-equivalent</link>
		<comments>http://www.haycroftmedia.com/archives/384/jquery-nl2br-equivalent#comments</comments>
		<pubDate>Fri, 27 Jan 2012 10:21:42 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=384</guid>
		<description><![CDATA[function nl2br( str, is_xhtml ) { var breakTag = ( is_xhtml &#124;&#124; typeof is_xhtml === &#34;undefined&#34; ) ? &#34;&#60;br /&#62;&#34; : &#34;&#60;br&#62;&#34;; return ( str + &#34;&#34; ).replace( /([^&#62;\r\n]?)(\r\n&#124;\n\r&#124;\r&#124;\n)/g, &#34;$1&#34;+ breakTag +&#34;$2&#34; ); }]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/384/jquery-nl2br-equivalent/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make youtube iframes obey z-index rules</title>
		<link>http://www.haycroftmedia.com/archives/382/make-youtube-iframes-obey-z-index-rules</link>
		<comments>http://www.haycroftmedia.com/archives/382/make-youtube-iframes-obey-z-index-rules#comments</comments>
		<pubDate>Wed, 25 Jan 2012 11:11:21 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=382</guid>
		<description><![CDATA[A client I am building a WordPress site for wants a fixed menu, but has youtube videos in the content that overlap the menu, despite my z-index settings. Here&#8217;s how I resolved the issue. You can apply z-index until you are blue in the face, but nothing will happen. The reason for this is that [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/382/make-youtube-iframes-obey-z-index-rules/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Youtube channel shortcode</title>
		<link>http://www.haycroftmedia.com/archives/370/youtube-channel-shortcode</link>
		<comments>http://www.haycroftmedia.com/archives/370/youtube-channel-shortcode#comments</comments>
		<pubDate>Tue, 24 Jan 2012 14:55:42 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=370</guid>
		<description><![CDATA[I try and avoid plugins unless it means re-inventing the wheel, so when I needed to create a slider of content from a users youtube channel, this shortcode function came in very handy function youtube_feed_shortcode( $atts ) { // Defaults: extract( shortcode_atts( array( &#039;user&#039; =&#62; &#039;YOURYOUTUBEUSERID&#039;, // youtube user id replace with your own ID [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/370/youtube-channel-shortcode/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript For/Next Loop for associative arrays</title>
		<link>http://www.haycroftmedia.com/archives/360/javascript-fornext-loop-for-associative-arrays</link>
		<comments>http://www.haycroftmedia.com/archives/360/javascript-fornext-loop-for-associative-arrays#comments</comments>
		<pubDate>Mon, 23 Jan 2012 09:21:33 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=360</guid>
		<description><![CDATA[var items = { &#34;foo&#34; : 123456, &#34;bar&#34; : 789012, &#34;baz&#34; : 345678, &#34;bat&#34; : 901234 }; for(var index in items) { document.write( index + &#34; : &#34; + items[index] + &#34;&#60;br /&#62;&#34;); } /* returns: foo : 123456 bar : 789012 baz : 345678 bat : 901234 */]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/360/javascript-fornext-loop-for-associative-arrays/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exclude Sticky Posts from WP loop</title>
		<link>http://www.haycroftmedia.com/archives/364/exclude-sticky-posts-from-wp-loop</link>
		<comments>http://www.haycroftmedia.com/archives/364/exclude-sticky-posts-from-wp-loop#comments</comments>
		<pubDate>Sun, 22 Jan 2012 14:41:39 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=364</guid>
		<description><![CDATA[&#60;?php /* take away the Sticky Ability of the Post */ query_posts( &#039;caller_get_posts=1&#039; ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ... /*Completely exclude Sticky posts from the Loop*/ query_posts( array( &#34;post__not_in&#34; =&#62; get_option( &#34;sticky_posts&#34; ) ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ... ?&#62;]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/364/exclude-sticky-posts-from-wp-loop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Query Post with Multiple Meta Values</title>
		<link>http://www.haycroftmedia.com/archives/376/wordpress-query-post-with-multiple-meta-values</link>
		<comments>http://www.haycroftmedia.com/archives/376/wordpress-query-post-with-multiple-meta-values#comments</comments>
		<pubDate>Tue, 17 Jan 2012 15:02:10 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[mySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=376</guid>
		<description><![CDATA[Querying posts where meta_key is &#8216;my-custom-key&#8217; and meta_value is &#8216;x&#8217; is simple enough, but what if you need to query by multiple pairs of meta data? Read on to find out how. Consider the following: $querystr = &#34; SELECT wposts.* FROM $wpdb-&#62;posts wposts, $wpdb-&#62;postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = &#039;qt_order&#039; AND wpostmeta.meta_value [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/376/wordpress-query-post-with-multiple-meta-values/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Searchform to WP Menu</title>
		<link>http://www.haycroftmedia.com/archives/368/add-searchform-to-wp-menu</link>
		<comments>http://www.haycroftmedia.com/archives/368/add-searchform-to-wp-menu#comments</comments>
		<pubDate>Tue, 17 Jan 2012 14:44:39 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=368</guid>
		<description><![CDATA[add_filter( &#039;wp_nav_menu_items&#039;, &#039;add_search_box&#039;, 10, 2 ); function add_search_box( $items, $args ) { ob_start(); get_search_form(); $searchform = ob_get_contents(); ob_end_clean(); $items .= &#039;&#60;li&#62;&#039; . $searchform . &#039;&#60;/li&#62;&#039;; return $items; }]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/368/add-searchform-to-wp-menu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

