<?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>Josh Jenkins</title>
	<atom:link href="http://josh-jenkins.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://josh-jenkins.com</link>
	<description>Web Developer in Nashville, TN</description>
	<lastBuildDate>Tue, 08 Sep 2015 19:29:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.3.1</generator>
	<item>
		<title>Getting Data from Your Posts Page in WordPress</title>
		<link>http://josh-jenkins.com/getting-data-from-your-posts-page-in-wordpress/</link>
		<comments>http://josh-jenkins.com/getting-data-from-your-posts-page-in-wordpress/#comments</comments>
		<pubDate>Tue, 08 Sep 2015 19:28:45 +0000</pubDate>
		<dc:creator><![CDATA[jsjenkins]]></dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://josh-jenkins.com/?p=154</guid>
		<description><![CDATA[<p>The Problem With most of the WordPress sites I develop, I don&#8217;t want the homepage to be the default blog page with a loop of posts. Luckily, there&#8217;s an easy remedy by setting the front page (under Settings -&#62; Reading) to a page called Home and the posts page to a page called Blog. That... <a class="view-article" href="http://josh-jenkins.com/getting-data-from-your-posts-page-in-wordpress/">View Article</a></p>
<p>The post <a rel="nofollow" href="http://josh-jenkins.com/getting-data-from-your-posts-page-in-wordpress/">Getting Data from Your Posts Page in WordPress</a> appeared first on <a rel="nofollow" href="http://josh-jenkins.com">Josh Jenkins</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h3>The Problem</h3>
<p>With most of the <a href="http://wordpress.org/">WordPress</a> sites I develop, I don&#8217;t want the homepage to be the default blog page with a loop of posts. Luckily, there&#8217;s an easy remedy by setting the front page (under Settings -&gt; Reading) to a page called <em>Home</em> and the posts page to a page called <em>Blog</em>.</p>
<p>That works great&#8230; at least until you&#8217;re trying to pull a featured image or custom field from the <em>Blog</em> page. Because of how it overrides the page template to be index.php, if you call the function <em>the_post_thumbnail()</em>, you&#8217;ll get the thumbnail of the most recent blog post instead of the page. Same goes for any other post functions like <em>the_content()</em> or <em>the_permalink(). </em>Here&#8217;s how I suggest getting data from your posts page.<span id="more-154"></span></p>
<h3>The Solution: get_option( &#8216;page_for_posts&#8217;)</h3>
<p>For a long time, I wasn&#8217;t quite sure how to get around this issue, but then I found this&#8230;</p><pre class="crayon-plain-tag">get_option( 'page_for_posts' );</pre><p>All it does is return the page id for whatever you have set as your posts page. From there, you can use that ID to do almost anything else you need to like&#8230;</p>
<h5>Get the featured image of the <em>Blog</em> page:</h5>
<p></p><pre class="crayon-plain-tag">$blogpageid = get_option( 'page_for_posts' );
if( has_post_thumbnail($blogpageid) ) {
     the_post_thumbnail($blogpageid);
}</pre><p></p>
<h5>Get an ACF field from the <em>Blog</em> page:</h5>
<p></p><pre class="crayon-plain-tag">$blogpageid = get_option( 'page_for_posts' );
$customfield = get_field('text_custom_field', $blogpageid);</pre><p></p>
<h5>Set up the post data for the <em>Blog</em> page:</h5>
<p></p><pre class="crayon-plain-tag">$blogpageid = get_option( 'page_for_posts' );
$post = get_post($blogpageid);
setup_postdata($post);
the_title();
the_post_thumbnail();
the_content();
wp_reset_postdata();</pre><p></p>
<h3>Conclusion</h3>
<p>Even though this is such a simple solution, it was one of the more difficult things for me to find because a search for it returned so many irrelevant results. Hopefully it will help you out. I would love to hear in the comments if you have another way of accomplishing the same thing.</p>
<span class="et_bloom_bottom_trigger"></span><p>The post <a rel="nofollow" href="http://josh-jenkins.com/getting-data-from-your-posts-page-in-wordpress/">Getting Data from Your Posts Page in WordPress</a> appeared first on <a rel="nofollow" href="http://josh-jenkins.com">Josh Jenkins</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://josh-jenkins.com/getting-data-from-your-posts-page-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Work Music 8/21/15</title>
		<link>http://josh-jenkins.com/work-music-82115/</link>
		<comments>http://josh-jenkins.com/work-music-82115/#comments</comments>
		<pubDate>Fri, 21 Aug 2015 20:01:33 +0000</pubDate>
		<dc:creator><![CDATA[jsjenkins]]></dc:creator>
				<category><![CDATA[Work Music]]></category>

		<guid isPermaLink="false">http://josh-jenkins.com/?p=131</guid>
		<description><![CDATA[<p>This is the music I played this week while I worked. Generally, I listen to full albums rather than just songs so I just include one song from each. I genuinely do not care if you think what I listen to is lame.  My work music this week was odd. I put on a few things... <a class="view-article" href="http://josh-jenkins.com/work-music-82115/">View Article</a></p>
<p>The post <a rel="nofollow" href="http://josh-jenkins.com/work-music-82115/">Work Music 8/21/15</a> appeared first on <a rel="nofollow" href="http://josh-jenkins.com">Josh Jenkins</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><em>This is the music I played this week while I worked. Generally, I listen to full albums rather than just songs so I just include one song from each. I genuinely do not care if you think what I listen to is lame. </em></p>
<p>My work music this week was odd. I put on a few things that I haven&#8217;t listened to in a while (Mastodon, Interpol, Frightened Rabbit), some metal (Silent Planet), and a couple of old favorites (Manchester Orchestra, Typhoon). I also included the new Mutemath song. Jury&#8217;s still out for me on it.<span id="more-131"></span></p>
<p><iframe width="100%" height="80" src="https://embed.spotify.com/?uri=spotify%3Atrack%3A6Nyje8hnMHKNJI5t7Gsl32" frameborder="0" allowtransparency="true"></iframe><br />
<iframe width="100%" height="80" src="https://embed.spotify.com/?uri=spotify%3Atrack%3A4Ynr1SPCeUI0W0YPeSFSIK" frameborder="0" allowtransparency="true"></iframe><br />
<iframe width="100%" height="80" src="https://embed.spotify.com/?uri=spotify%3Atrack%3A5Zt5q2j5OEdcR3HtwxivZQ" frameborder="0" allowtransparency="true"></iframe><br />
<iframe width="100%" height="80" src="https://embed.spotify.com/?uri=spotify%3Atrack%3A4NHkvuG1kJBb3KnskL7DPc" frameborder="0" allowtransparency="true"></iframe><br />
<iframe width="100%" height="80" src="https://embed.spotify.com/?uri=spotify%3Atrack%3A0yqMzP4oc8umclo66SwfWD" frameborder="0" allowtransparency="true"></iframe><br />
<iframe width="100%" height="80" src="https://embed.spotify.com/?uri=spotify%3Atrack%3A1B3xfK5jOHtS3jhvntYaKW" frameborder="0" allowtransparency="true"></iframe><br />
<iframe width="100%" height="80" src="https://embed.spotify.com/?uri=spotify%3Atrack%3A7j8tvk7RDYe6wUqr4hxDgM" frameborder="0" allowtransparency="true"></iframe></p>
<span class="et_bloom_bottom_trigger"></span><p>The post <a rel="nofollow" href="http://josh-jenkins.com/work-music-82115/">Work Music 8/21/15</a> appeared first on <a rel="nofollow" href="http://josh-jenkins.com">Josh Jenkins</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://josh-jenkins.com/work-music-82115/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugins I Can&#8217;t live Without</title>
		<link>http://josh-jenkins.com/wordpress-plugins-i-cant-live-without/</link>
		<comments>http://josh-jenkins.com/wordpress-plugins-i-cant-live-without/#comments</comments>
		<pubDate>Wed, 19 Aug 2015 22:54:04 +0000</pubDate>
		<dc:creator><![CDATA[jsjenkins]]></dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://josh-jenkins.com/?p=108</guid>
		<description><![CDATA[<p>I try to use as WordPress plugins as little as possible, but there are a few that are simply too good to pass up. For most of you, these are old news, but for anyone else, they&#8217;ll change the way you do things. In fact, I can&#8217;t remember the last time I launched a WordPress site with #1... <a class="view-article" href="http://josh-jenkins.com/wordpress-plugins-i-cant-live-without/">View Article</a></p>
<p>The post <a rel="nofollow" href="http://josh-jenkins.com/wordpress-plugins-i-cant-live-without/">WordPress Plugins I Can&#8217;t live Without</a> appeared first on <a rel="nofollow" href="http://josh-jenkins.com">Josh Jenkins</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>I try to use as WordPress plugins as little as possible, but there are a few that are simply too good to pass up. For most of you, these are old news, but for anyone else, they&#8217;ll change the way you do things. In fact, I can&#8217;t remember the last time I launched a WordPress site with #1 &amp; #2, and #3 is a must if you need any form of e-commerce.<span id="more-108"></span></p>
<h3><a href="http://www.advancedcustomfields.com/pro/">1. Advanced Custom Fields Pro</a></h3>
<p><a href="http://josh-jenkins.com/wp-content/uploads/2015/08/acf-pro1.jpg"><img class="alignnone size-full wp-image-122" src="http://josh-jenkins.com/wp-content/uploads/2015/08/acf-pro1.jpg" alt="acf-pro" /></a></p>
<p><a href="http://www.advancedcustomfields.com/pro/">Advanced Custom Fields (ACF)</a> allows WordPress to become much more than a blogging platform. In fact, before I began using ACF, I wasn&#8217;t a big fan of WordPress as a whole. I just didn&#8217;t feel like it was flexible enough to do what I needed.</p>
<p>With ACF, you can make WordPress as flexible as any CMS. It allows you to add custom fields to just about anything including posts, pages, custom post types, and widget, and there are 20 field types included out of the box. Here are a few of my favorite:</p>
<ul>
<li><strong><a href="http://www.advancedcustomfields.com/resources/relationship/">Relationship</a></strong> &#8211; The Relationship field is used for advance linking to another object. A use case for a relationship field might be attaching a custom post type, like a resource, as the call to action on a page.</li>
<li><strong><a href="http://www.advancedcustomfields.com/resources/repeater/">Repeater</a> </strong>&#8211; The Repeater field allows you to create a field or group of fields and repeat that as many times as needed. A use case for this might be on an FAQ page where you have an arbitrary number of questions and answers.</li>
<li><strong><a href="http://www.advancedcustomfields.com/resources/flexible-content/">Flexible Content</a></strong> &#8211; You can do some crazy stuff with Flexible Content fields. It&#8217;s a lot like repeater except you can create different groups of fields. For example, you might create a group of fields for a full width image, a pull-quote, and a block of copy and then you can use them as many times and in any order you want.</li>
</ul>
<h3><a href="https://yoast.com/wordpress/plugins/seo/">2. Yoast SEO</a></h3>
<p><a href="http://josh-jenkins.com/wp-content/uploads/2015/08/yoast-seo.jpg"><img class="alignnone size-full wp-image-121" src="http://josh-jenkins.com/wp-content/uploads/2015/08/yoast-seo.jpg" alt="yoast-seo" /></a></p>
<p>There are a lot of SEO WordPress plugins available and many of them work very well, but I&#8217;ve not seen one that helps foster good SEO habits as well as Yoast SEO. Of course you can do all the normal SEO tasks like XML sitemaps, cleaning up permalink, and meta data, but where it really shines is with its content analysis.</p>
<p>Once you enter a keyword for a page or post in the meta data, the plugin tells you exactly what you need to do to improve the chances that it will rank highly. It considers things as simple as the page title to as obscure as the Flesch Readability score and tells you exactly what you can do to make it better. It also assigns a color to your post as whole (red, orange, yellow, green) so you can see you you&#8217;re doing at a glance.</p>
<h3><a href="http://www.woothemes.com/woocommerce/">3. WooCommerce</a></h3>
<p><a href="http://josh-jenkins.com/wp-content/uploads/2015/08/woocommerce.png"><img class="alignnone size-medium wp-image-119" src="http://josh-jenkins.com/wp-content/uploads/2015/08/woocommerce-600x150.png" alt="woocommerce" /></a></p>
<p>WooCommerce has become my go-to e-commerce solution in WordPress. While not every site I work on has an e-commerce component, more and more do, and I always choose WooCommerce. It handles all the standard sales needs well including shipping, taxes, digital items, and payment/order processing processing and has a relatively easy to use theme/hook development system (though I think it could be a bit simpler).</p>
<p>Where WooCommerce sets itself apart is with the number of extensions it supports. Here are some examples I&#8217;ve used:</p>
<ul>
<li><a href="http://www.woothemes.com/products/ups-shipping-method/">UPS Shipping Extension</a> &#8211; This extension grabs shipping costs based on weight and size from the UPS API and charges customers based on what it finds so you always have an accurate representation of what shipping will cost.</li>
<li><a href="http://www.woothemes.com/products/groups-woocommerce/">WooCommerce Groups</a> &#8211; With this extension, you can sell a subscription to online content. When paired with the groups plugin, you can make entire sections of the site members-only and charge for access.</li>
<li><a href="http://www.woothemes.com/products/mijireh/">Mijireh</a> &#8211; Mijireh because is a payment gateway that will automatically detect the look of your site and match it nearly perfectly plus it keeps me from having to buy an SSL certificate or worrying about PCI compliance so I love it.</li>
</ul>
<span class="et_bloom_bottom_trigger"></span><p>The post <a rel="nofollow" href="http://josh-jenkins.com/wordpress-plugins-i-cant-live-without/">WordPress Plugins I Can&#8217;t live Without</a> appeared first on <a rel="nofollow" href="http://josh-jenkins.com">Josh Jenkins</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://josh-jenkins.com/wordpress-plugins-i-cant-live-without/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
