<?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>Shawn Hooghkirk&#187; The Personal Blog of Shawn Hooghkirk</title>
	<atom:link href="http://shawnhooghkirk.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://shawnhooghkirk.com</link>
	<description>The website of Shawn Hooghkirk.</description>
	<lastBuildDate>Sat, 03 Apr 2010 17:39:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Custom Fields in Wordpress</title>
		<link>http://shawnhooghkirk.com/custom-fields-in-wordpress/</link>
		<comments>http://shawnhooghkirk.com/custom-fields-in-wordpress/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 18:32:10 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://shawnhooghkirk.com/?p=47</guid>
		<description><![CDATA[Yesterday I came across a method to update your webpage or blog posts through the Wordpress interface, rather than going into the code. For example, you have a jQuery slider on your homepage, but in order to update it you have to go into the template (or page / post) and edit it there. After [...]

<ol><li><a href='http://shawnhooghkirk.com/new-blog/' rel='bookmark' title='Permanent Link: New Blog'>New Blog</a></li>
<li><a href='http://shawnhooghkirk.com/designing-visually-appealing-artwork/' rel='bookmark' title='Permanent Link: Designing Visually Appealing Artwork'>Designing Visually Appealing Artwork</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_69" class="wp-caption aligncenter" style="width: 460px"><img class="size-large wp-image-69" title="Stevenson, Washington and the Columbia River" src="http://shawnhooghkirk.com/wp-content/uploads/2010/01/stevenson-wa-1024x768.jpg" alt="" width="450" height="337" /><p class="wp-caption-text">Stevenson, Washington and the Columbia River</p></div>
<p>Yesterday I came across a method to update your webpage or blog posts through the Wordpress interface, rather than going into the code. For example, you have a jQuery slider on your homepage, but in order to update it you have to go into the template (or page / post) and edit it there. After staying on that road for sometime, I knew there had to be an easier way to do this through the Wordpress interface, rather than diving into the code (and defeating the purpose of using Wordpress altogether).</p>
<p>So I stumbled onto Custom Fields. Custom Fields are those little boxes below the area where you update your post, that I&#8217;m assuming most people glance over once and never look back. After searching for a method to update the slider for a project, I found a method for doing this via Custom Fields.<span id="more-47"></span></p>
<p>Open up your Wordpress panel and make sure you know what I am talking about in the first place. Click on the picture below for confirmation.</p>
<p><a href="http://shawnhooghkirk.com/wp-content/uploads/2010/01/location-01.png" rel="lightbox[47]"><img class="aligncenter size-medium wp-image-61" title="Location of Custom Fields" src="http://shawnhooghkirk.com/wp-content/uploads/2010/01/location-01-264x300.png" alt="" width="264" height="300" /></a></p>
<p>Now that you know where<strong> Custom Fields </strong>are located, enter in a name and a value. If you&#8217;re familiar with programming, the &#8220;<strong>name</strong>&#8221; will be your variable name, and &#8220;<strong>value</strong>&#8221; will be the value of that variable. If you&#8217;re NOT familiar with programming, a variable is used as a container that holds a value (<em>remember Algebra anyone?</em>). You can later specify the name of the variable and the value will be displayed.</p>
<p>For instance, for the &#8220;name&#8221; you entered <strong>example</strong> and for the value you entered &#8220;<em>This is the value for the field &#8220;example.</em>&#8221; Now remember when you call <strong>example</strong> the value that you entered will be displayed, including any pictures that you decide to enter.</p>
<p>So now, you have to enter a php script for this value to be displayed in your post. Also, this post is meant for people that have a general understand of Php and Wordpress, but if you don&#8217;t, head on over to the <a title="Wordpress Codex" href="http://codex.wordpress.org/Main_Page" target="_blank">Wordpress Codex</a> and start reading up.</p>
<p>So find the spot where you would like your &#8220;value&#8221; of your Custom Field to be displayed and enter it, as in the picture below.</p>
<p><a href="http://shawnhooghkirk.com/wp-content/uploads/2010/01/phpcode.png" rel="lightbox[47]"><img class="aligncenter size-full wp-image-64" title="Displaying Custom Fields" src="http://shawnhooghkirk.com/wp-content/uploads/2010/01/phpcode.png" alt="" width="696" height="61" /></a></p>
<p>The only part you will need to change in the code is where it says <strong>$example </strong>and &#8216;<strong>example</strong>&#8216;<strong> </strong>(it is listed in three places) as this is the &#8220;name&#8221; of your custom field. If you remember, we used this as our example above. So change that to the name of your custom field.</p>
<p>And now you&#8217;re set to go. Feel free to enter in as many custom fields as you would like, and enter them in the same template or page and start making life a little easier on yourself.</p>
<p>&#8212;</p>
<p>I&#8217;m also very interested in hearing your opinions of this method. If you have a better option, I&#8217;m all ears.</p>


<ol><li><a href='http://shawnhooghkirk.com/new-blog/' rel='bookmark' title='Permanent Link: New Blog'>New Blog</a></li>
<li><a href='http://shawnhooghkirk.com/designing-visually-appealing-artwork/' rel='bookmark' title='Permanent Link: Designing Visually Appealing Artwork'>Designing Visually Appealing Artwork</a></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://shawnhooghkirk.com/custom-fields-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

