<?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>Brad Potter</title>
	<atom:link href="http://bradpotter.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradpotter.com</link>
	<description>Just Another WordPress Developer</description>
	<lastBuildDate>Sun, 12 Aug 2012 18:57:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Include Content From One Page Within Another Page &#8211; Genesis Framework</title>
		<link>http://bradpotter.com/include-content-from-one-page-within-another-page/</link>
		<comments>http://bradpotter.com/include-content-from-one-page-within-another-page/#comments</comments>
		<pubDate>Fri, 27 Jul 2012 23:59:29 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis Code Snippets]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=551</guid>
		<description><![CDATA[Following is a WordPress page template I created with input from other Genesis Framework professionals. It allows you to include content from one page into another page. The included content is displayed below any original content. This is very useful when you have content that needs to be shared amongst numerous pages. Edit the shared [...]]]></description>
				<content:encoded><![CDATA[<p>Following is a WordPress page template I created with input from other Genesis Framework professionals. It allows you to include content from one page into another page. The included content is displayed below any original content. This is very useful when you have content that needs to be shared amongst numerous pages. Edit the shared content on one page and all pages including that content will be updated accordingly.</p>
<h5>Create the Page Template</h5>
<p>Create a file named &#8220;include-page.php&#8221; and paste in the code below.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
/*  Template Name: Include Page */ 

add_action('genesis_after_post_content', 'include_page');

function include_page() {
	
        $page_id = genesis_get_custom_field('includepage');
        $page_data = get_page( $page_id );
		$title = $page_data-&gt;post_title;
        $content = apply_filters('the_content', $page_data-&gt;post_content);
		echo '&lt;h1 class=&quot;entry-title&quot;&gt;'.$title.'&lt;/h1&gt;';
		echo '&lt;div class=&quot;entry-content&quot;&gt;'.$content.'&lt;/div&gt;';
        
}

genesis();</pre>
<p>Place this new page template file in the root of the child theme folder.</p>
<h5>Add New Pages</h5>
<p>Add a new page named &#8220;<a href="http://bradpotter.com/sandbox/shared-page/" title="Shared Page">Shared Page</a>&#8220;. Enter the shared content into this page. Make note of the &#8220;Page ID&#8221; WordPress assigns to this page.</p>
<p>Add a new page named &#8220;Combined Page&#8221;. On this page select the &#8220;Include Page&#8221; template in the pull down menu within the Page Attributes box. Create a custom field named &#8220;includepage&#8221; and enter the Page ID of the page you wish to include into the value field. Click the Update button.</p>
<p>The &#8220;<a href="http://bradpotter.com/combined-page/" title="Combined Page">Combined Page</a>&#8221; should now display any content you have entered plus include content from the &#8220;Shared Page&#8221; below it.</p>
<p>The page names I used are for demonstration purposes. You can use whatever page names you prefer. You may choose to assign a &lt;h2&gt; tag and a different class to the title in the page template above since it may not be the best practice to have two page titles with a &lt;h1&gt; tag in the same page.</p>
<h5>Include Page Content Without Title</h5>
<p>If you prefer not to display the title of the included page, the page template would look like this:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
/*  Template Name: Include Page */ 

add_action('genesis_after_post_content', 'include_page');

function include_page() {
	
        $page_id = genesis_get_custom_field('includepage');
        $page_data = get_page( $page_id );
        $content = apply_filters('the_content', $page_data-&gt;post_content);
		echo '&lt;div class=&quot;entry-content&quot;&gt;'.$content.'&lt;/div&gt;';
        
}

genesis();</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/include-content-from-one-page-within-another-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Buttons for Genesis</title>
		<link>http://bradpotter.com/css-buttons-for-genesis/</link>
		<comments>http://bradpotter.com/css-buttons-for-genesis/#comments</comments>
		<pubDate>Sat, 30 Jun 2012 00:44:32 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Genesis Code Snippets]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=508</guid>
		<description><![CDATA[Brian Gardner published a post on adding CSS buttons to a website created with the Genesis Theme Framework. According to his post, StudioPress will be implementing these additions in the new Genesis parent theme once Genesis 1.9 is released. I&#8217;ve added a few extra touches to his code which produces what you see below: Blue [...]]]></description>
				<content:encoded><![CDATA[<p>Brian Gardner <a href="http://www.briangardner.com/genesis-color-buttons/" title="Genesis Color Buttons" target="_blank">published a post</a> on adding CSS buttons to a website created with the Genesis Theme Framework. According to his post, StudioPress will be implementing these additions in the new Genesis parent theme once Genesis 1.9 is released.</p>
<p>I&#8217;ve added a few extra touches to his code which produces what you see below:</p>
<p><a class="button-blue" href="#">Blue Button Link</a></p>
<p><a class="button-gray" href="#">Gray Button Link</a></p>
<p><a class="button-green" href="#">Green Button Link</a></p>
<p><a class="button-purple" href="#">Purple Button Link</a></p>
<p><a class="button-red" href="#">Red Button Link</a></p>
<p><a class="button-yellow" href="#">Yellow Button Link</a></p>
<p>Following are the changes I made to <a href="http://www.briangardner.com/genesis-color-buttons/" title="Genesis Color Buttons" target="_blank">Brian&#8217;s existing style sheet code</a></p>
<pre class="brush: css; title: ; notranslate">
.button-blue,
.button-gray,
.button-green,
.button-purple,
.button-red,
.button-yellow {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    background: url(images/overlay.png) repeat-x;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    color: #fff;
    font-weight: 600;
    padding: 7px 10px;	
    text-shadow: 0px -1px 1px rgba(0, 0, 0, 0.1);
}
</pre>
<p>In the code above I used a transparent png with a gradient to give the buttons some dimension. You can grab the overlay.png file<a href="http://bradpotter.com/wp-content/themes/prototype/images/overlay.png"> here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/css-buttons-for-genesis/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Genesis Remove Breadcrumbs</title>
		<link>http://bradpotter.com/genesis-remove-breadcrumbs/</link>
		<comments>http://bradpotter.com/genesis-remove-breadcrumbs/#comments</comments>
		<pubDate>Fri, 29 Jun 2012 04:35:48 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis Code Snippets]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=487</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">/** Genesis - Remove breadcrumbs */
remove_action( 'genesis_after_header', 'genesis_do_breadcrumbs');</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/genesis-remove-breadcrumbs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Genesis Remove Footer</title>
		<link>http://bradpotter.com/genesis-remove-footer/</link>
		<comments>http://bradpotter.com/genesis-remove-footer/#comments</comments>
		<pubDate>Fri, 29 Jun 2012 04:23:29 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis Code Snippets]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=481</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">/** Genesis - Remove footer and footer markup */
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/genesis-remove-footer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Genesis Remove Edit Link</title>
		<link>http://bradpotter.com/genesis-remove-edit-link/</link>
		<comments>http://bradpotter.com/genesis-remove-edit-link/#comments</comments>
		<pubDate>Fri, 29 Jun 2012 02:19:23 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis Code Snippets]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=470</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">/** Genesis - Remove edit link */
add_filter( 'genesis_edit_post_link' , '__return_false' );</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/genesis-remove-edit-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Genesis Remove Navigation</title>
		<link>http://bradpotter.com/genesis-remove-navigation/</link>
		<comments>http://bradpotter.com/genesis-remove-navigation/#comments</comments>
		<pubDate>Thu, 28 Jun 2012 06:59:40 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis Code Snippets]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=463</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">/** Genesis - Remove primary navigation */
remove_action( 'genesis_after_header', 'genesis_do_nav' );</pre>
<pre class="brush: php; title: ; notranslate">/** Genesis - Remove secondary navigation */
remove_action( 'genesis_after_header', 'genesis_do_subnav' );</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/genesis-remove-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Genesis Remove Header</title>
		<link>http://bradpotter.com/code-snippet-test/</link>
		<comments>http://bradpotter.com/code-snippet-test/#comments</comments>
		<pubDate>Thu, 28 Jun 2012 06:11:19 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis Code Snippets]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=455</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">/** Genesis - Remove header and header markup */
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_do_header' );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );</pre>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/code-snippet-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Content Types Plugin &amp; Gravity Forms</title>
		<link>http://bradpotter.com/easy-content-types-plugin-and-gravity-forms/</link>
		<comments>http://bradpotter.com/easy-content-types-plugin-and-gravity-forms/#comments</comments>
		<pubDate>Tue, 01 May 2012 03:59:06 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=401</guid>
		<description><![CDATA[There are numerous high quality WordPress themes that provide website visitors the ability to query custom post types via multiple drop-down menus. Two that quickly come to mind are targeted towards those that require a real estate solution. The AgentPress theme developed by StudioPress and the deCorum theme developed by ThemeShift are excellent examples. Both themes allow [...]]]></description>
				<content:encoded><![CDATA[<p>There are numerous high quality WordPress themes that provide website visitors the ability to query custom post types via multiple drop-down menus. Two that quickly come to mind are targeted towards those that require a real estate solution. The <a title="AgentPress" href="http://www.studiopress.com/themes/agentpress">AgentPress</a> theme developed by StudioPress and the <a href="http://themeshift.com/decorum/">deCorum</a> theme developed by ThemeShift are excellent examples. Both themes allow visitors to select from multiple taxonomy terms in order to produce a desired result and both themes serve as a great starting point for creating high quality real estate websites.</p>
<p>What if you wanted to build a custom business directory, a classifieds site, a job listings site or one of the many other sites that could benefit from using custom post types? The themes mentioned above would require a fair amount of code wrangling. I know, because I did just that with AgentPress by hacking both the theme and its companion plugin. I actually ended up with pretty good results when I transformed AgentPress into a business directory however I found myself needing more flexibility.<span id="more-401"></span></p>
<p>Enter the <a href="http://pippinsplugins.com/easy-content-types/" title="Easy Content Types Plugin for WordPress">Easy Content Types Plugin</a> for WordPress developed by <a href="https://twitter.com/#!/pippinsplugins">Pippin&#8217;s Plugins</a>. I&#8217;ve used the plugin for less than two weeks but it has quickly become one of my favorite WordPress plugins. Easy Content Types provides a very intuitive interface for creating custom post types, taxonomies, custom fields and meta boxes. It also serves as a great learning tool because it has the ability to export the code created by the interface for use on sites without the plugin. This is one brilliant plugin!</p>
<p>Speaking of brilliant plugins, those that follow me on Twitter know that I absolutely <a href="https://twitter.com/#!/bradleypotter/status/196829345824768000">love</a> the <a href="http://www.gravityforms.com/" title="Gravity Forms">Gravity Forms</a> plugin by <a href="https://twitter.com/#!/rocketgenius" title="Rocket Genius">Rocket Genius</a>. I started using Gravity Forms back in 2009. Trust me, if you develop WordPress sites, you cannot afford to be without this plugin. Recently I was searching for a code snippet or plugin that would function much like the aforementioned AgentPress or deCore theme and allow me to query the custom post types created by the Easy Content Types plugin. After much searching it struck me that Gravity Forms just might be the answer.</p>
<p>I&#8217;ve just started experimenting with a solution and in the end there may be a better approach but I thought I would share where I&#8217;m at so far since a few people have asked. Let&#8217;s assume that you have installed the Easy Content Types Plugin, created a custom post type named &#8220;listings&#8221; and you have created the taxonomies of &#8220;city&#8221; and &#8220;industry&#8221;. Create a few listings and enter some terms into your new taxonomies. Now create a new form using the Gravity Forms plugin. I named my form &#8220;Search Form&#8221;. I created 4 &#8220;Standard Fields&#8221;; City, Industry, Order By and Sort Order. Make sure you click the Advanced tab on each field and type the appropriate lowercase version (example: city, industry, orderby &#038; order) into the Admin Label field. Also, the drop down field Choices (taxonomy terms for fields City &#038; Industry) have the ability to use a Label and a Value. Make sure you click the &#8220;enable values&#8221; checkbox. The Label is seen by the website visitor, the Value is what is actually passed by the form. In my example, the Industry drop-down field has Choice Labels of Web Design, Advertising &#038; SEO but the Choice Values are (web-design, advertising &#038; seo). The Order By drop-down has Labels of Title, Date &#038; Random but the Values are (title, date, rand). Making sense?</p>
<p>Next, go to the Form Settings and click the Confirmation tab.</p>
<p>Select the &#8220;Redirect&#8221; radio button. I entered: http://themecraft.com/demo/dev/? into the blank field.</p>
<p>Select the &#8220;Pass Field Data Via Query String&#8221; checkbox. I entered: city={city:1:value}&#038;industry={Industry:2:value}&#038;orderby={orderby:3:value}&#038;order={order:4:value}</p>
<p>Save your form and place the form shortcode into the page of your choice: This is my result thus far. It needs some styling but give it a try: <a href="http://themecraft.com/demo/dev/?page_id=1073">http://themecraft.com/demo/dev/?page_id=1073</a></p>
<p>This is a work in progress and may not be the best solution for you. Keep in mind that the form will store the field selections when a query is performed. I see that as a plus since it will allow me to study the search habits of my visitors and learn their location based on the IP logged in the database. I&#8217;ll continue experimenting with the idea and post additional findings. Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/easy-content-types-plugin-and-gravity-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IconSweets 2</title>
		<link>http://bradpotter.com/iconsweets-2/</link>
		<comments>http://bradpotter.com/iconsweets-2/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 18:55:45 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=356</guid>
		<description><![CDATA[IconSweets 2, a project by Yummy gum is a huge free icon collection that contains over 400 icons in photoshop vector shapes. The icons were created in 64&#215;64, 32&#215;32 and 16&#215;16 pixel sizes. The website states you may use these icons for both commercial and non-commercial projects and customize them any way you like. This [...]]]></description>
				<content:encoded><![CDATA[<p>IconSweets 2, a project by Yummy gum is a huge free icon collection that contains over 400 icons in photoshop vector shapes. The icons were created in 64&#215;64, 32&#215;32 and 16&#215;16 pixel sizes. The website states you may use these icons for both commercial and non-commercial projects and customize them any way you like. This has to be one of the best icon collections I have come across.</p>
<p><a href="http://www.iconsweets2.com/">IconSweets 2 Website »</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/iconsweets-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>StudioPress</title>
		<link>http://bradpotter.com/studiopress/</link>
		<comments>http://bradpotter.com/studiopress/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 23:50:27 +0000</pubDate>
		<dc:creator>Brad Potter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Theme Frameworks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://bradpotter.com/?p=350</guid>
		<description><![CDATA[StudioPress by Copyblogger Media LLC is the creator of the popular Genesis Theme Framework made for WordPress. Whether you&#8217;re a novice or advanced developer, Genesis provides you with virtually all the tools you need to quickly and easily build incredible websites with WordPress. The major features are state of the art code, smart design architecture, [...]]]></description>
				<content:encoded><![CDATA[<p>StudioPress by Copyblogger Media LLC is the creator of the popular Genesis Theme Framework made for WordPress. Whether you&#8217;re a novice or advanced developer, Genesis provides you with virtually all the tools you need to quickly and easily build incredible websites with WordPress. The major features are state of the art code, smart design architecture, comprehensive SEO settings, 6 default layout options, flexible theme options, cool custom widgets, custom design hooks, rock-solid security and a huge selection of child themes (&#8220;skins&#8221;) that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog. It&#8217;s also a great investment for those who are actively building websites for clients.</p>
<p><a href="http://www.shareasale.com/r.cfm?b=241369&#038;u=484457&#038;m=28169&#038;urllink=&#038;afftrack=">StudioPress Website »</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bradpotter.com/studiopress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
