<?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>Pixel Currents &#187; Pixel Currents Blog</title>
	<atom:link href="http://pixelcurrents.com/category/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://pixelcurrents.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 Jun 2014 16:01:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Updated! Automatically Add Instagram Photos and Videos as Posts</title>
		<link>http://pixelcurrents.com/updated-automatically-add-instagram-photos-and-videos-as-posts/</link>
		<comments>http://pixelcurrents.com/updated-automatically-add-instagram-photos-and-videos-as-posts/#comments</comments>
		<pubDate>Fri, 02 Aug 2013 18:27:29 +0000</pubDate>
		<dc:creator><![CDATA[Annie Boccio]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Pixel Currents Blog]]></category>
		<category><![CDATA[hints]]></category>

		<guid isPermaLink="false">http://pixelcurrents.com/?p=3272</guid>
		<description><![CDATA[<p>Back in April I posted instructions on how to get Instagram images to auto-post to your WordPress site. Since then a few things have changed, most notably the addition of video functionality to Instagram. There are more plugins available, too, so it could be worth your while to search them out and try a few. [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://pixelcurrents.com/updated-automatically-add-instagram-photos-and-videos-as-posts/">Updated! Automatically Add Instagram Photos and Videos as Posts</a> appeared first on <a rel="nofollow" href="http://pixelcurrents.com">Pixel Currents</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Back in April I posted instructions on how to get Instagram images to auto-post to your WordPress site. Since then a few things have changed, most notably the addition of video functionality to Instagram. There are more plugins available, too, so it could be worth your while to search them out and try a few. For my specific needs, however, no one plugin did the trick. </p>
<p><strong>What I want:</strong></p>
<ul>
<li>All my Instagram posts (both images and videos) automatically posted to my <em>(self-hosted)</em> WordPress site as individual posts.</li>
<li>The caption of each image should serve as the post title.</li>
<li>The content of each post should include a link back to the image on Instagram.</li>
<li>The image (or video thumbnail image) should automatically be uploaded to my site and inserted as the featured image for the post.</li>
</ul>
<p>This requires three tools (aside from Instagram and WordPress&#8230; )</p>
<ol>
<li><a href="https://ifttt.com">IFTTT</a> to autopost the images to WordPress.</li>
<li>The <a href="http://wordpress.org/extend/plugins/auto-save-remote-images/">Auto Save Remote Image</a> plugin.</li>
<li>The <a href="http://wordpress.org/plugins/iframe/">Iframe</a> plugin.</li>
</ol>
<p>The first step is to set up two IFTTT recipes, one for photos and one for videos. You can just use these that I&#8217;ve already created, make sure to customize them to suit your needs.</p>
<p><strong>Use <a href="https://ifttt.com/recipes/109159">this IFTTT recipe</a> to automatically send your Instagram photos to WordPress.</strong> Add your own category and tag(s). Install the <a href="http://wordpress.org/extend/plugins/auto-save-remote-images/">Auto Save Remote Image</a> plugin to grab the photo and set it as your featured image.</p>
<p><strong>Use <a href="https://ifttt.com/recipes/109160">this IFTTT recipe</a> for videos.</strong> This one is a little more complicated, so let me explain:<br />
<img src="http://pixelcurrents.com/wp/wp-content/uploads/2013/08/IFTTT___Instagram_video_to_WordPress_blog_by_banannie-300x161.png" alt="IFTTT___Instagram_video_to_WordPress_blog_by_banannie" width="300" height="161" class="aligncenter size-medium wp-image-3280" /><br />
Like the recipe for photos, it uses the Instagram caption as the title. Unlike the photo recipe, we&#8217;re using the Instagram embed feature. The code in this recipe replicates the code that&#8217;s available on the Instagram site, just substituting the appropriate URL. Because IFTTT won&#8217;t let you use the iframe HTML, we&#8217;re using a shortcode. In order for the iframe shortcode to display properly, install and activate the <a href="http://wordpress.org/plugins/iframe/">Iframe</a> plugin.</p>
<p>We also want to use the video thumbnail as our featured image, so additional code imports that image, but using display parameters of height:&#8221;0&#8243; and width:&#8221;0&#8243; keeps the thumbnail from displaying, while still making it available for the Save Remote Image plugin to do its thing. (I&#8217;m sure there&#8217;s a more elegant way of doing this!)<br />
<em>(Credit- the video to WordPress recipe was inspired by <a href="https://ifttt.com/recipes/101560">this one</a>!)</em></p>
<p><strong>Bonus</strong><br />
If you want to keep your Instagram photos and videos out of your site&#8217;s RSS feed, make sure they are all sent to a category set up just for them. Then, to exclude that category from your RSS feed, open your theme&#8217;s functions.php file and insert the following:</p>
<p><code>// exclude instagram category from feed<br />
function catFeedExcluder($query) {<br />
if(is_feed()) {<br />
$query-&gt;set( 'category__not_in', '<span style="color: #ff0000;">-4</span>' );<br />
return $query;<br />
}<br />
}<br />
add_filter('pre_get_posts', 'catFeedExcluder');</code></p>
<p>Replace &#8216;<span style="color: #ff0000;">-4</span>&#8216; with the correct category ID number (Go to Posts &gt; Categories and click on the category name. The address bar will show the category ID number like this: &#8220;&#8230;wp/wp-admin/edit-tags.php?action=edit&amp;taxonomy=category&amp;tag_ID=<span style="color: #ff0000;">4</span>&amp;post_type=post&#8221;</p>
<p>Adjust/play with the various settings to suit your own needs. </p>
<p>The post <a rel="nofollow" href="http://pixelcurrents.com/updated-automatically-add-instagram-photos-and-videos-as-posts/">Updated! Automatically Add Instagram Photos and Videos as Posts</a> appeared first on <a rel="nofollow" href="http://pixelcurrents.com">Pixel Currents</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pixelcurrents.com/updated-automatically-add-instagram-photos-and-videos-as-posts/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Automatically Add Instagram Photos as WordPress Posts</title>
		<link>http://pixelcurrents.com/automatically-add-instagram-photos-as-wordpress-posts/</link>
		<comments>http://pixelcurrents.com/automatically-add-instagram-photos-as-wordpress-posts/#comments</comments>
		<pubDate>Sat, 27 Apr 2013 16:14:22 +0000</pubDate>
		<dc:creator><![CDATA[Annie Boccio]]></dc:creator>
				<category><![CDATA[Pixel Currents Blog]]></category>

		<guid isPermaLink="false">http://pixelcurrents.com/?p=3246</guid>
		<description><![CDATA[<p>UPDATE! I&#8217;ve written a new post that now includes how to add Instagram videos as as well as photos. Go read that instead of this! I&#8217;ve been having my Instagram photos autopost as blog posts for awhile, but I was never thrilled with the results. Unfortunately there&#8217;s not one single plugin (that I can find) [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://pixelcurrents.com/automatically-add-instagram-photos-as-wordpress-posts/">Automatically Add Instagram Photos as WordPress Posts</a> appeared first on <a rel="nofollow" href="http://pixelcurrents.com">Pixel Currents</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><strong>UPDATE! I&#8217;ve written a <a href="http://pixelcurrents.com/updated-automatically-add-instagram-photos-and-videos-as-posts/">new post</a> that now includes how to add Instagram videos as as well as photos. Go <a href="http://pixelcurrents.com/updated-automatically-add-instagram-photos-and-videos-as-posts/">read that</a> instead of this!</strong></p>
<p>I&#8217;ve been having my Instagram photos autopost as blog posts for awhile, but I was never thrilled with the results. Unfortunately there&#8217;s not one single plugin (that I can find) that works just as I want it to. But I&#8217;ve found a solution for my <a href="http://annieboccio.com">personal site</a> (yay!)</p>
<p><strong>What I want:</strong></p>
<ul>
<li>All my Instagram posts automatically posted to my <em>(self-hosted)</em> WordPress site as individual posts.</li>
<li>The caption of each image should serve as the post title.</li>
<li>The content of each post should include a link back to the image on Instagram.</li>
<li>The image should automatically be uploaded to my site and inserted as the featured image for the post.</li>
</ul>
<p>This requires three tools (aside from Instagram and WordPress&#8230; )</p>
<ol>
<li><a href="https://ifttt.com">IFTTT</a> to autopost the images to WordPress.</li>
<li>The <a href="http://wordpress.org/extend/plugins/auto-save-remote-images/">Auto Save Remote Image</a> plugin.</li>
<li>The <a href="http://wordpress.org/extend/plugins/auto-hyperlink-urls/">Auto-Hyperlink URLs</a> plugin.</li>
</ol>
<p><strong>Step One:</strong> Use <a href="https://ifttt.com/recipes/91253">this IFTTT recipe</a> to automatically send your Instagram posts to WordPress. Add your own category and tag(s).<br />
<strong>Step Two:</strong> The Auto Save Remote Image plugin will automatically grab, upload, and set the photo as the featured image for the post. No setting required after activation.<br />
<strong>Step Three:</strong> In the setting for Auto-Hyperlink URL I set the Hyperlink Mode/Truncation to 1, which displays only the domain for the autoposted link (resulting in &#8220;via <a href="http://instagram.com/p/YkZ4p9Mx8w/">instagram.com&#8230;</a>&#8220;.) The IFTTT recipe posts the link to Instagram as plain text, this converts it to an active link.</p>
<p><strong>Bonus</strong></p>
<p>If you want to keep your Instagram photos out of your site&#8217;s RSS feed, make sure they are all sent to a category set up just for those photos. Then, to exclude that category from your RSS feed, open your theme&#8217;s functions.php file and insert the following:</p>
<p><code>// exclude instagram category from feed<br />
function catFeedExcluder($query) {<br />
if(is_feed()) {<br />
$query-&gt;set( 'category__not_in', '<span style="color: #ff0000;">-4</span>' );<br />
return $query;<br />
}<br />
}<br />
add_filter('pre_get_posts', 'catFeedExcluder');</code></p>
<p>Replace &#8216;<span style="color: #ff0000;">-4</span>&#8216; with the correct category ID number (Go to Posts &gt; Categories and click on the category name. The address bar will show the category ID number like this: &#8220;&#8230;wp/wp-admin/edit-tags.php?action=edit&amp;taxonomy=category&amp;tag_ID=<span style="color: #ff0000;">4</span>&amp;post_type=post&#8221;</p>
<p>Adjust/play with the various settings to suit your own needs. </p>
<p>The post <a rel="nofollow" href="http://pixelcurrents.com/automatically-add-instagram-photos-as-wordpress-posts/">Automatically Add Instagram Photos as WordPress Posts</a> appeared first on <a rel="nofollow" href="http://pixelcurrents.com">Pixel Currents</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pixelcurrents.com/automatically-add-instagram-photos-as-wordpress-posts/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
