<?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 &#187; php</title>
	<atom:link href="http://www.haycroftmedia.com/archives/category/php/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>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>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>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>
		<item>
		<title>WordPress: Paginating Custom Queries</title>
		<link>http://www.haycroftmedia.com/archives/327/wordpress-paginating-custom-queries</link>
		<comments>http://www.haycroftmedia.com/archives/327/wordpress-paginating-custom-queries#comments</comments>
		<pubDate>Tue, 23 Aug 2011 19:16:07 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=327</guid>
		<description><![CDATA[We built a custom search page by writing our own post query, but we needed to apply pagination. Here&#8217;s how we did it&#8230; 1. The Search: Our search form listed a drop-down containing all the post tags, a drop-down containing the months of the year, and an input field where the user could enter a [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/327/wordpress-paginating-custom-queries/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress the_title() character limit</title>
		<link>http://www.haycroftmedia.com/archives/324/wordpress-the_title-character-limit</link>
		<comments>http://www.haycroftmedia.com/archives/324/wordpress-the_title-character-limit#comments</comments>
		<pubDate>Tue, 23 Aug 2011 12:34:39 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=324</guid>
		<description><![CDATA[There are plenty of functions floating about for limiting the length of a WordPress post title, but what if your title contains single quotes? Consider this example &#60;?php function limit_title( $title, $n ){ if ( strlen ( $title ) &#62; $n ){ return substr( $title, 0, $n ) . &#039;...&#039;; } else { return $title; [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/324/wordpress-the_title-character-limit/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP eCommerce &#8211; upload and update</title>
		<link>http://www.haycroftmedia.com/archives/311/wp-ecommerce-upload-and-update</link>
		<comments>http://www.haycroftmedia.com/archives/311/wp-ecommerce-upload-and-update#comments</comments>
		<pubDate>Wed, 11 May 2011 13:25:12 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Content Management System (CMS)]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=311</guid>
		<description><![CDATA[We&#8217;ve covered bulk uploading in WP eCommerce previously, but what if you want to bulk update? The import functionality in WPEC assumes that you are adding products and doesn&#8217;t allow for bulk updating of products. With the following additions to the code, you can simultaneously update current products using the SKU field as a reference. [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/311/wp-ecommerce-upload-and-update/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>wp-e-commerce upload adding multiple categories to CSV upload &#8211; updated for 3.8</title>
		<link>http://www.haycroftmedia.com/archives/307/wp-e-commerce-upload-adding-multiple-categories-to-csv-upload-updated-for-3-8</link>
		<comments>http://www.haycroftmedia.com/archives/307/wp-e-commerce-upload-adding-multiple-categories-to-csv-upload-updated-for-3-8#comments</comments>
		<pubDate>Mon, 25 Apr 2011 10:34:31 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Content Management System (CMS)]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.haycroftmedia.com/?p=307</guid>
		<description><![CDATA[The latest version of wpec handles csv uploads differently &#8211; time for an update! N.B. This is an update of the previous post on wp-e-commerce upload adding multiple categories to CSV upload Using our previous example of wanting to add a category and a brand (e.g. Category: Jeans, Brand: Levis), we need to do the [...]]]></description>
		<wfw:commentRss>http://www.haycroftmedia.com/archives/307/wp-e-commerce-upload-adding-multiple-categories-to-csv-upload-updated-for-3-8/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

