<?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: Controlling the visibility of content with custom fields</title>
	<atom:link href="http://wpguru.co.za/page/controlling-the-visibility-of-content-with-custom-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpguru.co.za/templates/page/controlling-the-visibility-of-content-with-custom-fields/</link>
	<description>Tips &#38; Pointers on Making a Killer CMS with WordPress</description>
	<lastBuildDate>Sun, 25 Jul 2010 23:11:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: krahamath</title>
		<link>http://wpguru.co.za/templates/page/controlling-the-visibility-of-content-with-custom-fields/comment-page-1/#comment-252</link>
		<dc:creator>krahamath</dc:creator>
		<pubDate>Sat, 25 Apr 2009 11:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=78#comment-252</guid>
		<description>great thanks.. its very usefull for me and my site also</description>
		<content:encoded><![CDATA[<p>great thanks.. its very usefull for me and my site also</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cherry</title>
		<link>http://wpguru.co.za/templates/page/controlling-the-visibility-of-content-with-custom-fields/comment-page-1/#comment-250</link>
		<dc:creator>Cherry</dc:creator>
		<pubDate>Wed, 22 Apr 2009 11:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=78#comment-250</guid>
		<description>People should read this.</description>
		<content:encoded><![CDATA[<p>People should read this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Herman</title>
		<link>http://wpguru.co.za/templates/page/controlling-the-visibility-of-content-with-custom-fields/comment-page-1/#comment-246</link>
		<dc:creator>Derek Herman</dc:creator>
		<pubDate>Wed, 15 Apr 2009 08:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=78#comment-246</guid>
		<description>I&#039;m sorry, but I have to say this makes no sense to me. I make pretty custom WordPress themes and am not seeing the advantages of doing something like this. Where are you adding the custom query too? Is this a separate loop other than the regular loop? Just seems you could add custom content by making a function or plugin that could be reused on all pages and posts and not use a page that has a slug to show snippets.  Because Google will index your snippet and link to it and you will have no control over the fact that people can see that page anyhow.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry, but I have to say this makes no sense to me. I make pretty custom WordPress themes and am not seeing the advantages of doing something like this. Where are you adding the custom query too? Is this a separate loop other than the regular loop? Just seems you could add custom content by making a function or plugin that could be reused on all pages and posts and not use a page that has a slug to show snippets.  Because Google will index your snippet and link to it and you will have no control over the fact that people can see that page anyhow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarkB</title>
		<link>http://wpguru.co.za/templates/page/controlling-the-visibility-of-content-with-custom-fields/comment-page-1/#comment-173</link>
		<dc:creator>MarkB</dc:creator>
		<pubDate>Tue, 23 Sep 2008 12:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=78#comment-173</guid>
		<description>@Chris - not really sure what I can show you.. It&#039;s more something that is turned on/off in the admin. 

On that client example, the contact details at the bottom of the left column is where it&#039;s being used. 

On that page in his admin, he can change the custom field value to turn that page&#039;s visibility on/off.</description>
		<content:encoded><![CDATA[<p>@Chris &#8211; not really sure what I can show you.. It&#8217;s more something that is turned on/off in the admin. </p>
<p>On that client example, the contact details at the bottom of the left column is where it&#8217;s being used. </p>
<p>On that page in his admin, he can change the custom field value to turn that page&#8217;s visibility on/off.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://wpguru.co.za/templates/page/controlling-the-visibility-of-content-with-custom-fields/comment-page-1/#comment-171</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 22 Sep 2008 14:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=78#comment-171</guid>
		<description>Sorry for the name thing, I saw Michael in the previous comment. Now I know it&#039;s Mark.

Cheers,

Chris
cardgazer.com</description>
		<content:encoded><![CDATA[<p>Sorry for the name thing, I saw Michael in the previous comment. Now I know it&#8217;s Mark.</p>
<p>Cheers,</p>
<p>Chris<br />
cardgazer.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://wpguru.co.za/templates/page/controlling-the-visibility-of-content-with-custom-fields/comment-page-1/#comment-170</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 22 Sep 2008 14:37:10 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=78#comment-170</guid>
		<description>Hi Michael,

Can you show a working example of this? I tried on the client site you provided but not sure where to look.

Thanks,

Chris
cardgazer.com</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>Can you show a working example of this? I tried on the client site you provided but not sure where to look.</p>
<p>Thanks,</p>
<p>Chris<br />
cardgazer.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarkB</title>
		<link>http://wpguru.co.za/templates/page/controlling-the-visibility-of-content-with-custom-fields/comment-page-1/#comment-168</link>
		<dc:creator>MarkB</dc:creator>
		<pubDate>Mon, 08 Sep 2008 11:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=78#comment-168</guid>
		<description>Heya Michael

Yeah, that&#039;s quite doable. 

You&#039;d replace this:
if (get_post_meta(73, &#039;active&#039;, true) == &quot;yes&quot;) {

with this:
if (get_post_meta(73, &#039;active&#039;, true)) {

You could also switch it around a bit, and say &quot;if its not empty, then continue&quot;... Like so:

if (get_post_meta(73, &#039;active&#039;, true) != &quot;&quot;) {


Make sense? :)</description>
		<content:encoded><![CDATA[<p>Heya Michael</p>
<p>Yeah, that&#8217;s quite doable. </p>
<p>You&#8217;d replace this:<br />
if (get_post_meta(73, &#8216;active&#8217;, true) == &#8220;yes&#8221;) {</p>
<p>with this:<br />
if (get_post_meta(73, &#8216;active&#8217;, true)) {</p>
<p>You could also switch it around a bit, and say &#8220;if its not empty, then continue&#8221;&#8230; Like so:</p>
<p>if (get_post_meta(73, &#8216;active&#8217;, true) != &#8220;&#8221;) {</p>
<p>Make sense? <img src='http://wpguru.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpguru.co.za/templates/page/controlling-the-visibility-of-content-with-custom-fields/comment-page-1/#comment-167</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 06 Sep 2008 03:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=78#comment-167</guid>
		<description>Great tip Mark!

What if I wanted to switch what you have coded there...

Instead of &quot;yes&quot; to show the content... how could you just &quot;show&quot; content if it has something for that custom field...otherwise show nothing if the key is empty??

I&#039;m thinking it is something along the lines of == &quot;&quot; then show nothing... else...show content of the key -- I&#039;m not sure how to change your code to get what I am saying...hopefully it&#039;ll make sense. =)

Thanks in advance,
Mike</description>
		<content:encoded><![CDATA[<p>Great tip Mark!</p>
<p>What if I wanted to switch what you have coded there&#8230;</p>
<p>Instead of &#8220;yes&#8221; to show the content&#8230; how could you just &#8220;show&#8221; content if it has something for that custom field&#8230;otherwise show nothing if the key is empty??</p>
<p>I&#8217;m thinking it is something along the lines of == &#8220;&#8221; then show nothing&#8230; else&#8230;show content of the key &#8212; I&#8217;m not sure how to change your code to get what I am saying&#8230;hopefully it&#8217;ll make sense. =)</p>
<p>Thanks in advance,<br />
Mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>
