<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Global Custom Fields</title>
	<atom:link href="http://digwp.com/2009/09/global-custom-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com/2009/09/global-custom-fields/</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Tue, 15 May 2012 08:36:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: MItche</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-2073</link>
		<dc:creator>MItche</dc:creator>
		<pubDate>Tue, 20 Oct 2009 17:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-2073</guid>
		<description>Would love to see this as a plugin. Where can I find it? Id be happy to review it</description>
		<content:encoded><![CDATA[<p>Would love to see this as a plugin. Where can I find it? Id be happy to review it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darfuria</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-1710</link>
		<dc:creator>Darfuria</dc:creator>
		<pubDate>Fri, 18 Sep 2009 00:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-1710</guid>
		<description>I think it looks like you&#039;ve made good progress, and now you should perhaps look at some sort of tag replacement method so that a user could use a shortcode (not necessarily one in square brackets, but something easier - maybe curly brackets like {FirstName}) to return their variable.

Then lots of people would use it ;)</description>
		<content:encoded><![CDATA[<p>I think it looks like you&#8217;ve made good progress, and now you should perhaps look at some sort of tag replacement method so that a user could use a shortcode (not necessarily one in square brackets, but something easier &#8211; maybe curly brackets like {FirstName}) to return their variable.</p>
<p>Then lots of people would use it ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liam Goodacre</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-1702</link>
		<dc:creator>Liam Goodacre</dc:creator>
		<pubDate>Thu, 17 Sep 2009 16:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-1702</guid>
		<description>Hey everybody, I wrote a plugin for wordpress global variables after reading this.

You can add variables, name them and give them a value.

You can then get an array of the values and use them anywhere in your code by using the name of the variable. For example:

As a global variable you add ‘FirstName’ with a value of ‘Liam’.

Within your theme you can grab the array by calling getGlobalVars():

$vars = getGlobalVars();

You can then access the variable via the name you specified:

echo “First Name: ” . $vars[&#039;FirstName&#039;];

:D would anybody be interested in using/reviewing it?

- Liam Goodacre</description>
		<content:encoded><![CDATA[<p>Hey everybody, I wrote a plugin for wordpress global variables after reading this.</p>
<p>You can add variables, name them and give them a value.</p>
<p>You can then get an array of the values and use them anywhere in your code by using the name of the variable. For example:</p>
<p>As a global variable you add ‘FirstName’ with a value of ‘Liam’.</p>
<p>Within your theme you can grab the array by calling getGlobalVars():</p>
<p>$vars = getGlobalVars();</p>
<p>You can then access the variable via the name you specified:</p>
<p>echo “First Name: ” . $vars['FirstName'];</p>
<p>:D would anybody be interested in using/reviewing it?</p>
<p>- Liam Goodacre</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darfuria</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-1695</link>
		<dc:creator>Darfuria</dc:creator>
		<pubDate>Thu, 17 Sep 2009 13:01:02 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-1695</guid>
		<description>Mmm, nice. Thanks!</description>
		<content:encoded><![CDATA[<p>Mmm, nice. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-1686</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 17 Sep 2009 03:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-1686</guid>
		<description>There already exists the plugin &lt;a href=&quot;http://pods.uproot.us/&quot; rel=&quot;nofollow&quot;&gt;Pods CMS&lt;/a&gt; for WordPress, which I use all the time. It&#039;s extremely customizable and easy to use. The Pods you create, or data objects can have multiple columns of data and can even be related to each other. And they are completely separate from specific pages/posts allowing them to be truly global.</description>
		<content:encoded><![CDATA[<p>There already exists the plugin <a href="http://pods.uproot.us/" rel="nofollow">Pods CMS</a> for WordPress, which I use all the time. It&#8217;s extremely customizable and easy to use. The Pods you create, or data objects can have multiple columns of data and can even be related to each other. And they are completely separate from specific pages/posts allowing them to be truly global.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Mac</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-1679</link>
		<dc:creator>Kyle Mac</dc:creator>
		<pubDate>Wed, 16 Sep 2009 17:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-1679</guid>
		<description>I would love to see this solution done. Been thinking about doing this for loop exclusions, so that I can add different Post Types (categories) but not have to change every loop instance. But I can see how this would be very useful for a number of different values.</description>
		<content:encoded><![CDATA[<p>I would love to see this solution done. Been thinking about doing this for loop exclusions, so that I can add different Post Types (categories) but not have to change every loop instance. But I can see how this would be very useful for a number of different values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coheed</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-1671</link>
		<dc:creator>Coheed</dc:creator>
		<pubDate>Wed, 16 Sep 2009 14:50:46 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-1671</guid>
		<description>Can&#039;t you add your own stuff to the options table and then pull it out with get_option()?

I&#039;ve never tried it but I think that&#039;s the proper way.</description>
		<content:encoded><![CDATA[<p>Can&#8217;t you add your own stuff to the options table and then pull it out with get_option()?</p>
<p>I&#8217;ve never tried it but I think that&#8217;s the proper way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hassan</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-1670</link>
		<dc:creator>Hassan</dc:creator>
		<pubDate>Wed, 16 Sep 2009 13:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-1670</guid>
		<description>The general idea is really good.
Why not use a config file and define constants there? At least we can do that for our very own purpose (it may be hard for clients to do that).
We could easily hook up to wordpress settings page and add our own key pairs there. It seems more semantic to me.
Thanks for sharing Chris!</description>
		<content:encoded><![CDATA[<p>The general idea is really good.<br />
Why not use a config file and define constants there? At least we can do that for our very own purpose (it may be hard for clients to do that).<br />
We could easily hook up to wordpress settings page and add our own key pairs there. It seems more semantic to me.<br />
Thanks for sharing Chris!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Coyier</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-1669</link>
		<dc:creator>Chris Coyier</dc:creator>
		<pubDate>Wed, 16 Sep 2009 13:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-1669</guid>
		<description>I totally agree. You should write that up, or better yet, make a plugin! I fully admit this is a somewhat hacky solution. That&#039;s what you get sometimes when a designer like me has to come up with development solutions fast. 

I&#039;d be happy to link to a better solution elsewhere, or I&#039;d be open to a guest post.</description>
		<content:encoded><![CDATA[<p>I totally agree. You should write that up, or better yet, make a plugin! I fully admit this is a somewhat hacky solution. That&#8217;s what you get sometimes when a designer like me has to come up with development solutions fast. </p>
<p>I&#8217;d be happy to link to a better solution elsewhere, or I&#8217;d be open to a guest post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lumpysimon</title>
		<link>http://digwp.com/2009/09/global-custom-fields/#comment-1668</link>
		<dc:creator>lumpysimon</dc:creator>
		<pubDate>Wed, 16 Sep 2009 13:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=659#comment-1668</guid>
		<description>Hi Chris

I can see what you&#039;re trying to achieve and it&#039;s could be useful when you quickly need something like this, but my nerdy programmer side is saying &quot;I don&#039;t like it at all!&quot; - Putting a global option within a page seems very unintuitive and semantically wrong. In order to change the value of the option, you would have to go to &#039;Edit Pages&#039;, find the correct page, edit the custom field, save the page, etc.

Personally I would create a new simple admin screen to go under the Settings menu, with an input field that stores the value in an option in the WordPress database.

It&#039;s probably about 10-15 more lines of code, but much more usable, changeable, future-proof and &#039;correct&#039; in terms of using the inbuilt structure that WordPress provides.</description>
		<content:encoded><![CDATA[<p>Hi Chris</p>
<p>I can see what you&#8217;re trying to achieve and it&#8217;s could be useful when you quickly need something like this, but my nerdy programmer side is saying &#8220;I don&#8217;t like it at all!&#8221; &#8211; Putting a global option within a page seems very unintuitive and semantically wrong. In order to change the value of the option, you would have to go to &#8216;Edit Pages&#8217;, find the correct page, edit the custom field, save the page, etc.</p>
<p>Personally I would create a new simple admin screen to go under the Settings menu, with an input field that stores the value in an option in the WordPress database.</p>
<p>It&#8217;s probably about 10-15 more lines of code, but much more usable, changeable, future-proof and &#8216;correct&#8217; in terms of using the inbuilt structure that WordPress provides.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

