<?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>Hatnohat</title>
	<atom:link href="http://www.hatnohat.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hatnohat.com</link>
	<description>Marketer &#38; Developers&#039;</description>
	<lastBuildDate>Fri, 03 May 2013 20:13:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Get Hulu RSS Feeds for Shows</title>
		<link>http://www.hatnohat.com/tutorials/get-hulu-rss-feeds-for-shows/</link>
		<comments>http://www.hatnohat.com/tutorials/get-hulu-rss-feeds-for-shows/#comments</comments>
		<pubDate>Mon, 08 Apr 2013 19:41:11 +0000</pubDate>
		<dc:creator>Hudson</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[hulu]]></category>
		<category><![CDATA[hulu rss]]></category>
		<category><![CDATA[hulu rss api]]></category>
		<category><![CDATA[hulu to rss]]></category>
		<category><![CDATA[rss feeds]]></category>
		<category><![CDATA[rss for hulu]]></category>
		<category><![CDATA[vikings]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/?p=64846</guid>
		<description><![CDATA[Recently I looked to find an RSS feed for a new show I am following on Hulu (Vikings) so I can input it into my favorite RSS Reader and keep]]></description>
				<content:encoded><![CDATA[<p>Recently I looked to find an RSS feed for a new show I am following on Hulu (Vikings) so I can input it into my favorite RSS Reader and keep informed when new episodes air. I noticed that Hulu doesn't offer RSS buttons anymore... so this proved to be difficult.</p>

&nbsp;

<p>With a little resaearch I learned that we can manually build RSS feed links if we have the show id like this:</p>

&nbsp;

<code>http://www.hulu.com/feed/show/{show_id_here}/episodes</code>

&nbsp;

We have to dig into the show's HTML code to find the show id.

<code>
view-source:http://www.hulu.com/grid/vikings</code>

<img  src="http://content.screencast.com/users/adbox/folders/Jing/media/38a6e279-17fd-40f9-a58c-e1ac93007bd0/2013-04-08_1443.png" alt="HTML Source of Vikings Channel on Hulu" / >


<p>And the final RSS feed!</p>

<code>http://www.hulu.com/feed/show/13482/episodes</code>

<img  src="http://content.screencast.com/users/adbox/folders/Jing/media/d5f242aa-d31b-4f95-baf9-2976b4c7f87e/2013-04-08_1445.png" alt="null" / >]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/tutorials/get-hulu-rss-feeds-for-shows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[fix][php] Migrated wordpress to new domain and /wp-admin/ points to my old domain</title>
		<link>http://www.hatnohat.com/tutorials/fixphp-migrated-wordpress-to-new-domain-and-wp-admin-points-to-a-new-domain/</link>
		<comments>http://www.hatnohat.com/tutorials/fixphp-migrated-wordpress-to-new-domain-and-wp-admin-points-to-a-new-domain/#comments</comments>
		<pubDate>Tue, 12 Mar 2013 00:54:09 +0000</pubDate>
		<dc:creator>Hudson</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/?p=58274</guid>
		<description><![CDATA[Hello! Tough problem! Happened to me before too! And my friend! A quick solution is to create a file fix.php in your base wordpress directory and place this in the]]></description>
				<content:encoded><![CDATA[Hello!

Tough problem! Happened to me before too! And my friend!

A quick solution is to create a file fix.php in your base wordpress directory and place this in the contents:

<pre name="code" class="php">
<?php

include_once('wp-config.php');


$query = "UPDATE wp_options
SET option_value = REPLACE(option_value, 'http://www.oldwebsite.com', 'http://www.newwebsite.com')
WHERE option_value LIKE '%http://www.oldwebsite.com%'";
$result = mysql_query($query);
if (!$result){ echo mysql_error(); echo $query; }

echo 'done!';


//$query = "SELECT * FROM wp_options WHERE option_value LIKE '%http://www.oldwebsite.com%' ";
//$result = mysql_query($query);
//if (!$result){ echo mysql_error(); echo $query; }

//while ($array = mysql_fetch_array($result))
//{
	//print_r($array);
	//echo "<hr />";
//}
?></pre>

Make sure to replace the http://www.oldwebsite.com and http://www.newwebsite.com  with your respective domains. Becareful with trailing slashes! Most times they are not needed! Run the file in the browser and you should gain back access! No PHPMyAdmin or anything! (In our case the client's website had trouble with PHPMyAdmin)]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/tutorials/fixphp-migrated-wordpress-to-new-domain-and-wp-admin-points-to-a-new-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set cutom post type as homepage solution &#8211; (solves redirect to permalink problem)</title>
		<link>http://www.hatnohat.com/tutorials/set-cutom-post-type-as-homepage-solution-solves-redirect-to-permalink-problem/</link>
		<comments>http://www.hatnohat.com/tutorials/set-cutom-post-type-as-homepage-solution-solves-redirect-to-permalink-problem/#comments</comments>
		<pubDate>Tue, 20 Nov 2012 22:22:37 +0000</pubDate>
		<dc:creator>Hudson</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/?p=7327</guid>
		<description><![CDATA[Hello! I spent a lot of time trying to figure out how to set a custom post type page as my wordpress homepage. I wanted the CPT pages to show]]></description>
				<content:encoded><![CDATA[Hello!<br /><br />

<p>I spent a lot of time trying to figure out how to set a custom post type page as my wordpress homepage. I wanted the CPT pages to show in my dropdown menu and the CPT page to keep the homepage URL rather than automatically redirecting to the full URL.</p><br />

<p>I used these resources below to help learn about the issue and form a first draft in which I was able to select the CPT page and it would load, but I could not get it to load with the homepage as the URL in the address bar. Somewhere a redirect was happening.</p><br />

<p>The solution was to add a filter to <strong>pre_get_posts </strong> that would detect if the first call originated from the homepage and tamper the query to look only for our set homepage id. We used this to programatically determine what the set homepage id was:</p><br />

<pre code='php' name="code" class="php">
$frontpage_id = get_option('page_on_front');</pre><br />

Then we added an action to <strong>template_redirect</strong> to change the template to what it should be.

Below's a complete copy of the plugin. This is a draft even for me but I hope to come back later and update it!

&nbsp;

&nbsp;
<pre code='php' name="code" class="php">//landing page plugin extension - http://www.store.inboundnow.com/

//add custom post type posts to static page options
add_filter( 'get_pages',  'lp_select_homepage_filter' );
function lp_select_homepage_filter( $pages )
{
	if(is_admin()){
		 $my_pages = new WP_Query( array( 'post_type' =&gt; 'landing-page' ) );

		 if ( $my_pages-&gt;post_count &gt; 0 )
		 {
			 $pages = array_merge( $pages, $my_pages-&gt;posts );
		 }
	}
    return $pages;
}

//tamper with homepage query to call custom post type post if set
add_action( 'pre_get_posts', 'lp_enable_front_page' );
function lp_enable_front_page( $query ){
	$current_url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]."";
	$wordpress_url = get_bloginfo('wpurl' );

	$frontpage_id = get_option('page_on_front');
	if (($current_url==$wordpress_url)&amp;&amp; $frontpage_id!=0)
	{
		$query-&gt;query_vars['post_type'] = array( 'page','landing-page' );
		$query-&gt;query_vars['ID'] = $frontpage_id;
	}

}

//make sure the correct template is called
add_action("template_redirect", 'lp_template_redirect_frontpage');
function lp_template_redirect_frontpage() {
	global $post;

	$frontpage_id = get_option('page_on_front');
	$this_id =  $post-&gt;ID;

	if ($this_id == $frontpage_id &amp;&amp; is_singular('landing-page') &amp;&amp; $frontpage_id!=0)
	{
		$template = get_post_meta($post-&gt;ID, 'lp-selected-template', true);
		$template = str_replace('_','-',$template);

		if ($post-&gt;post_type == "landing-page")
		{
			if ($template!='default')
			{
				include(LANDINGPAGES_PATH.'templates/'.$template.'/index.php');
				die();
			}
		}
	}
}</pre>
<h3>Resources Studied</h3>
<ul>
	<li>http://wordpress.stackexchange.com/questions/48704/custom-post-type-as-home-page-problem</li>
	<li>http://wpquestions.com/question/show/id/4112</li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/tutorials/set-cutom-post-type-as-homepage-solution-solves-redirect-to-permalink-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>meta_query alternative to support OR &amp; AND conditionsals a little better</title>
		<link>http://www.hatnohat.com/tutorials/wordpress-tutorials-2/meta_query-alternative-to-support-or-and-conditionsals-a-little-better/</link>
		<comments>http://www.hatnohat.com/tutorials/wordpress-tutorials-2/meta_query-alternative-to-support-or-and-conditionsals-a-little-better/#comments</comments>
		<pubDate>Wed, 07 Nov 2012 00:56:32 +0000</pubDate>
		<dc:creator>Hudson</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/?p=6482</guid>
		<description><![CDATA[Tons of work today on creating a custom query that checks both the wp_posts and the wp_postmeta tables for conditional truths to pull up the correct custom post_type ID. As]]></description>
				<content:encoded><![CDATA[Tons of work today on creating a custom query that checks both the wp_posts and the wp_postmeta tables for conditional truths to pull up the correct custom post_type ID. 

As of WordPress 3.4.2 we can use a toolset provided by WordPress to do this, and it looks something like this:

<pre code='php' name="code" class="php">
	$args = array(
			'post_type'=>'advertisement', 
			'meta_query'=> array(
					array(
						'key'=>'inline-placement-include-ids',
						'value'=>",{$pid},",
						'compare'=>'LIKE'
					),
					array(
						'key'=>'inline-placement-exclude-ids',
						'value'=>",{$pid},",
						'compare'=>'NOT LIKE'
					),
					array(
						'key'=>'inline-placement-categories',
						'value'=>array(",{$cat_id},",",{$parent_cat_id},"),
						'compare'=>'IN'
					)
				)
			
			);
			
	query_posts($args);
       // Loop
       while($query->have_posts()):
        $query->next_post();
        $id = $query->post->ID;
        echo '<li>';
        echo get_the_title($id);
        echo '</li>';
       endwhile;

</pre>

The weakness is that we cannot include complex conditionals in our queries such as AND (This="Definition" or This="") and so to get around this we have to create a custom query. I managed to get my example to work like this:

<pre clode='php' name="code" class="php">

global $table_prefix;
$query = "
	SELECT {$table_prefix}posts.post_title, {$table_prefix}posts.ID
	FROM {$table_prefix}posts, {$table_prefix}postmeta, {$table_prefix}postmeta AS pm1, {$table_prefix}postmeta AS pm2
	WHERE {$table_prefix}posts.ID = {$table_prefix}postmeta.post_id 					
		AND {$table_prefix}posts.post_type = 'advertisement'
		
		AND {$table_prefix}postmeta.meta_key = 'inline-placement-include-ids' 
		AND ({$table_prefix}postmeta.meta_value LIKE '%,{$pid},%' OR {$table_prefix}postmeta.meta_value = '' )
		
		AND pm1.meta_key = 'inline-placement-exclude-ids' 
		AND ( pm1.meta_value NOT LIKE '%,{$pid},%' OR pm1.meta_value = '' )
		
		AND pm2.meta_key = 'inline-placement-categories' 
		AND ( pm2.meta_value LIKE '%,{$cat_id},%' OR  pm2.meta_value LIKE '%,{$parent_cat_id},%' )
		
		";

$result = mysql_query($query);
if (!$result){echo $query;echo mysql_error(); exit;}				
				
// The Loop
while ($array = mysql_fetch_array($result))
{
 $post_id = $array['ID'];
 //etc....

</pre>]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/tutorials/wordpress-tutorials-2/meta_query-alternative-to-support-or-and-conditionsals-a-little-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[WPTT] Redirect tag archive traffic to related posts.</title>
		<link>http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-redirect-tag-archive-traffic-to-related-posts/</link>
		<comments>http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-redirect-tag-archive-traffic-to-related-posts/#comments</comments>
		<pubDate>Fri, 26 Oct 2012 01:41:02 +0000</pubDate>
		<dc:creator>adbox</dc:creator>
				<category><![CDATA[WP Traffic Tools]]></category>
		<category><![CDATA[archive pages]]></category>
		<category><![CDATA[external source]]></category>
		<category><![CDATA[new feature]]></category>
		<category><![CDATA[targeted traffic]]></category>
		<category><![CDATA[traffic tools]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-redirect-tag-archive-traffic-to-related-posts/</guid>
		<description><![CDATA[Today&#160;I've added in a new feature to WP Traffic Tools that, if enabled, will redirect traffic landing on tag archive pages to a post similar to the tag archive&#160;requested instead]]></description>
				<content:encoded><![CDATA[<p>Today&#160;I've added in a new feature to WP Traffic Tools that, if enabled, will redirect traffic landing on tag archive pages to a post similar to the tag archive&#160;requested instead of showing the archive of tagged posts.</p><p><strong>You may ask why I would want to do this.</strong></p><p>For some reason Google is creating tag archives on sites that have no posts for those tags. These tag archives pull in keyword targeted traffic but does not serve the traffic any related posts!</p><p>In order to solve this issue the same technology used to power our Smart 404 module is used to redirect visitors landing on tag archives (if the option is enable. It comes disabled by default).</p><p>It WILL NOT redirect visitors that click on tag archive links. It will only redirect traffic arriving from an external source.</p><p>It will not redirect spiders.</p><p>So if this is something you're interested in the feature can be found in the ‘Smart 404′ module of WP Traffic Tools.</p><p>Cheers!</p><small><span class="c5"><img   src='http://www.hatnohat.com/images/wptt-redirect-tag-archive-traffic-to-related-posts_twrts_0.jpg'   class='c4' / ></span></small>]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-redirect-tag-archive-traffic-to-related-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[WPTT] Link Cloaking Plugin for WordPress</title>
		<link>http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-link-cloaking-plugin-for-wordpress/</link>
		<comments>http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-link-cloaking-plugin-for-wordpress/#comments</comments>
		<pubDate>Sun, 21 Oct 2012 01:41:02 +0000</pubDate>
		<dc:creator>adbox</dc:creator>
				<category><![CDATA[WP Traffic Tools]]></category>
		<category><![CDATA[affiliate sales]]></category>
		<category><![CDATA[marketing ideas]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[traffic management]]></category>
		<category><![CDATA[variable traffic]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-link-cloaking-plugin-for-wordpress/</guid>
		<description><![CDATA[So you are looking for a link cloaking plugin? Or maybe you are wondering why people cloak links?Did you know that some people say they are looking for a cloaking]]></description>
				<content:encoded><![CDATA[<p>So you are looking for a link cloaking plugin? Or maybe you are wondering why people cloak links?</p><p>Did you know that some people say they are looking for a cloaking plugin when they really are simply wanting a <a title="Link masking plugin" href='http://www.wptraffictools.com' >link masking plugin </a>.</p><p>What's the difference between <a href='http://www.wptraffictools.com/what-is-link-masking/' >masking </a> and <a title="Cloaking Traffic" href='http://www.wptraffictools.com/ip-delivery-service-ipgrabber/' >cloaking </a>? It's simple! Masking changes the URL structure and leverages redirect technologies to send the user elsewhere. Like a shortened link! Goog.gl and Bit.ly and T.co for twitter all employ link masking techniques.</p><p>So did you think this was considered cloaking? Well the internet is a place where there are many talking heads and many voices that mimic each other. It's a bird sanctuary! To many people Cloaking and Masking are the same thing and they educate people to believe the same, but for others cloaking involves a little more than simply masking the URL structure. Cloaking becomes a practice where the true redirect location is dynamic, and spiders or certain humans are shown one location while other visitors are shown another.</p><p>You may be wondering why in the world people would do that, and believe that there is nothing good that could come from such a technique, I thought this too until I was approached by people who wanted to protect their destination from both search engines and from people they are selling for. The world is an imperfect place where justice and good hearted nature are often circumvented by injustice and selfish sentiment. Developers with good&#160;intention&#160; have been burned by their employer stealing their marketing ideas and dropping them and sometimes not even paying them. And other times developers have to worry about the heartless&#160;algorithms&#160;of search engines not being favorable to their site if their site is an affiliate-sales effort.</p><p>There are more reasons. Often times a reason for cloaking is very unique to circumstance. That's why <a title="WP Traffic Tools, an awesomely powerful variable traffic management plugin." href='http://www.wptraffictools.com' >WP Traffic Tools </a>, an awesomely powerful and variable traffic management plugin, provides a link cloaking module within their link masking module!</p><small><span class="c5"><img   src='http://www.hatnohat.com/images/wptt-link-cloaking-plugin-for-wordpress_srlku_0.jpg'   class='c4' / ></span></small>]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-link-cloaking-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[WPTT] Conditional Redirects – Redect all traffic arriving from url without certain keyword in referrer</title>
		<link>http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-conditional-redirects-redect-all-traffic-arriving-from-url-without-certain-keyword-in-referrer/</link>
		<comments>http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-conditional-redirects-redect-all-traffic-arriving-from-url-without-certain-keyword-in-referrer/#comments</comments>
		<pubDate>Tue, 16 Oct 2012 01:41:02 +0000</pubDate>
		<dc:creator>adbox</dc:creator>
				<category><![CDATA[WP Traffic Tools]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[traffic]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-conditional-redirects-redect-all-traffic-arriving-from-url-without-certain-keyword-in-referrer/</guid>
		<description><![CDATA[In this latest update we can use 1 negative keyword to redirect all traffic that arrives from urls not containing a certain keyword.For example, if we wanted to redirect all]]></description>
				<content:encoded><![CDATA[<p>In this latest update we can use 1 negative keyword to redirect all traffic that arrives from urls not containing a certain keyword.</p><p>For example, if we wanted to redirect all traffic that arrives outside of google and keep google traffic arriving at the original destination we would use ‘!google' as our keyword:</p><p><img   src='http://www.hatnohat.com/images/wptt-conditional-redirects-redect-all-traffic-arriving-from-url-without-certain-keyword-in-referrer_oliet_0.jpg'   / ></p><small><span class="c5"><img   src='http://www.hatnohat.com/images/wptt-conditional-redirects-redect-all-traffic-arriving-from-url-without-certain-keyword-in-referrer_oliet_1.jpg'   class='c4' / ></span></small>]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/update-log/wp-traffic-tools/wptt-conditional-redirects-redect-all-traffic-arriving-from-url-without-certain-keyword-in-referrer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[BS] Importing RSS into WordPress</title>
		<link>http://www.hatnohat.com/update-log/blogsenswp/bs-importing-rss-into-wordpress/</link>
		<comments>http://www.hatnohat.com/update-log/blogsenswp/bs-importing-rss-into-wordpress/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 00:46:28 +0000</pubDate>
		<dc:creator>adbox</dc:creator>
				<category><![CDATA[BlogSense-WP]]></category>
		<category><![CDATA[automation utilities]]></category>
		<category><![CDATA[complementary software]]></category>
		<category><![CDATA[comprehensive solution]]></category>
		<category><![CDATA[developer community]]></category>
		<category><![CDATA[discount opportunities]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/update-log/blogsenswp/bs-importing-rss-into-wordpress/</guid>
		<description><![CDATA[Lets begin with a video! Importing content from an RSS XML feedThere are many tools that assist in importing RSS content into WordPress but BlogSenseWP is designed to provide the]]></description>
				<content:encoded><![CDATA[<p>Lets begin with a video!</p><div class="c2"><object width="640" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><embed width="640" height="360" type="application/x-shockwave-flash" src="http://www.youtube.com/v/feLc9tDis-g?version=3&#038;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
<br /><br />

<h2>Importing content from an RSS XML feed</h2><p>There are many tools that assist in importing RSS content into WordPress but <a href='http://www.blogsense-wp.com/news/go/blogsensewp' >BlogSenseWP </a> is designed to provide the most comprehensive solution solution online that incorporates the multifaceted requirements of importing RSS content. Here's what our WordPress software suite can do:</p><ul><li>Retain the original post date.</li><li>Retain the original author, or use the domain name as the author of imported posts.</li><li>Schedule posts into the future.</li><li>Backdate / Schedule posts into the past.</li><li>Autocategorization of content based on keywords detected in RSS titles and descriptions.</li><li>Autotagging of content using Yahoo Tag Extraction API</li><li>Autotagging of content using a custom list of tags.</li><li>Use search and replace features to remove certain elements found in the RSS feed.</li><li>Auto save images locally.</li><li>Remote publish imported items to blogs that accept XML/RPC and email based publishing protocols.</li><li>Preview and edit content before publishing it.</li></ul>
<br /><br />

<h2>More about BlogSenseWP</h2><p><a href='http://www.blogsense-wp.com/news/go/blogsensewp' >BlogSenseWp </a> is a RSS to WordPress software solution for self-hosted WordPress blogs. We also provide automation utilities for Importing <a title="CSV to WordPress" href='http://www.blogsense-wp.com/news/autoblog-autoblogging-import-csv-files-into-wordpress-as-posts-blogsensewp/' >CSV files into WordPress </a> and <a title="Youtube to WordPress" href='http://www.blogsense-wp.com/news/how-to-import-youtube-into-wordpress/' >importing Youtube videos into wordpress a </a> nd importing Amazon items into wordpress.</p><p>We aim to provide automation excellence to those looking for automation and autoblogging solutions.</p><p>To read more about <a href='http://www.blogsense-wp.com/news/go/blogsensewp' >BlogSense </a> WP see: <a href='http://www.blogsense-wp.com/news/go/blogsensewp' >http://www.blogsense-wp.com </a></p>
<br /><br />

<h2>Discount opportunities</h2><p>BlogSenseWP is can be purchased along with a handful of other softwares we provide at a discount cost package deal price. We offer BlogSenseWP as a complementary software over at <a href='http://www.hatnohat.com' >Hatnohat.com </a> , where our members get access to our entire product line as well as case studies and access to our private marketer and developer community.</p><p>You can buy BlogSenseWP individually through this website, or it can be picked up along with our other products over at <a href='http://www.hatnohat.com/' >Hatnohat.com </a> &#160;by joining as a member.</p><br />]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/update-log/blogsenswp/bs-importing-rss-into-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[BS] How to import Youtube into WordPress</title>
		<link>http://www.hatnohat.com/update-log/blogsenswp/bs-how-to-import-youtube-into-wordpress/</link>
		<comments>http://www.hatnohat.com/update-log/blogsenswp/bs-how-to-import-youtube-into-wordpress/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 00:46:28 +0000</pubDate>
		<dc:creator>adbox</dc:creator>
				<category><![CDATA[BlogSense-WP]]></category>
		<category><![CDATA[automation utilities]]></category>
		<category><![CDATA[complementary software]]></category>
		<category><![CDATA[developer community]]></category>
		<category><![CDATA[discount opportunities]]></category>
		<category><![CDATA[video demonstration]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/update-log/blogsenswp/bs-how-to-import-youtube-into-wordpress/</guid>
		<description><![CDATA[In this article a brief demonstration on how to import Youtube video content into a self-hosted WordPress installation using BlogSenseWP . The main features of Youtube Importing Module Select whether]]></description>
				<content:encoded><![CDATA[In this article a brief demonstration on how to import Youtube video content into a self-hosted WordPress installation using <a title="BlogSenseWP Homepage" href='http://www.blogsense-wp.com/news/go/blogsensewp' >BlogSenseWP </a>.<br /><br />
<h2>The main features of Youtube Importing Module</h2>
<ul>
	<li>Select whether to search by keywords or by channel name.</li>
	<li>Sort results by: relevance, date published, view count, rating.</li>
	<li>Use the video publish date or advanced scheduling settings while importing and publishing videos into wordpress.</li>
	<li>Control the post template and how &amp; what content is imported and displayed.</li>
	<li>Import Youtube video comments as comments.</li>
	<li>Use custom object embed codes such as <a title="JWL Player for WordPress plugin" href='http://www.longtailvideo.com/addons/modules/148/JW-Player-Plugin-for-WordPress' >JWL Player </a> . (rather than the default Youtube object embed or iframe code)</li>
</ul>
<br /><br />

<h2>Quick video demonstration by the developer:</h2>
<div class="c2"><object width="480" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/uQvu8SolHgw?version=3&amp;hl=en_US" /><param name="allowscriptaccess" value="always" /><param name="allowfullscreen" value="true" /><embed width="480" height="360" type="application/x-shockwave-flash" src="http://www.youtube.com/v/uQvu8SolHgw?version=3&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true" /></object>
<br /><br />

<h2>More information about BlogSenseWP</h2>
<a href='http://www.blogsense-wp.com/news/go/blogsensewp' >BlogSenseWp </a> is a Youtube to WordPress software solution for self-hosted WordPress blogs. We also provide automation utilities for Importing <a title="CSV to WordPress" href='http://www.blogsense-wp.com/news/csv-to-wordpres/' >CSV files into WordPress </a> and importing <a title="RSS to WordPress" href='http://www.blogsense-wp.com/news/importing-rss-into-wordpress/' >RSS into wordpress </a> and importing Amazon items into wordpress.<br /><br />

We aim to provide automation excellence to those looking for automation and autoblogging solutions.<br /><br />

To read more about <a href='http://www.blogsense-wp.com/news/go/blogsensewp' >BlogSense </a> WP see: <a href='http://www.blogsense-wp.com/news/go/blogsensewp' >http://www.blogsense-wp.com </a>
<br /><br />

<h2>Discount opportunities</h2>
BlogSenseWP is can be purchased along with a handful of other softwares we provide at a discount cost package deal price. We offer BlogSenseWP as a complementary software over at <a href='http://www.hatnohat.com' >Hatnohat.com </a> , where our members get access to our entire product line as well as case studies and access to our private marketer and developer community.<br /><br />

You can buy BlogSenseWP individually through this website, or it can be picked up along with our other products over at <a href='http://www.hatnohat.com/' >Hatnohat.com </a>  by joining as a member.<br /><br />

&nbsp;

</div>]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/update-log/blogsenswp/bs-how-to-import-youtube-into-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>save_post &amp; edit_post actions are running twice &#8211; updated solution</title>
		<link>http://www.hatnohat.com/tutorials/save_post-edit_post-actions-are-running-twice-updated-solution/</link>
		<comments>http://www.hatnohat.com/tutorials/save_post-edit_post-actions-are-running-twice-updated-solution/#comments</comments>
		<pubDate>Wed, 10 Oct 2012 18:36:27 +0000</pubDate>
		<dc:creator>Hudson</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[edit_post]]></category>
		<category><![CDATA[revisions]]></category>
		<category><![CDATA[save_post]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hatnohat.com/?p=5475</guid>
		<description><![CDATA[I've recently run into a situation where my normal protections that ignored revisions when running save_post and edit_post have begun to fail and double action is taken. I was working]]></description>
				<content:encoded><![CDATA[I've recently run into a situation where my normal protections that ignored revisions when running save_post and edit_post have begun to fail and double action is taken.
I was working on a customer's wp installation and It may have been through a plugin or theme conflict but I couldn't tell and didn't want to dig too far into it. 
All I knew is that was normally worked was failing me. 

Usually we can use this bit of code to prevent doing work on revisions:


<pre name="code" class="php">
		if ((defined('DOING_AUTOSAVE') &#038;& DOING_AUTOSAVE )||$_POST['post_type']=='revision')
		{
			return;
		}
</pre>

But since this code alone and all the documentation on the internet were failing me I had to try something new.
I decided to target the post_type so even if the filter was running twice we could prevent actions on revisions.
$_POST['post_type'] was not working for the revision but it was populating for the main post, so I could not use that.
I had to find the post_type via id using this but of code; and this is the final code used too:

<pre name="code" class="php">
 $post_type = get_post_type( $postID );
		if ($post_type=='revision')
		{
			return;
		}
		if ((defined('DOING_AUTOSAVE') &#038;& DOING_AUTOSAVE )||$_POST['post_type']=='revision')
		{
			return;
		}
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.hatnohat.com/tutorials/save_post-edit_post-actions-are-running-twice-updated-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
