<?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: Advanced Content Management with WordPress Custom Field Templates</title>
	<atom:link href="http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/</link>
	<description>Ramblings on web design, front-end development and user interaction</description>
	<lastBuildDate>Fri, 05 Mar 2010 22:14:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: kevinlearynet</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-634</link>
		<dc:creator>kevinlearynet</dc:creator>
		<pubDate>Fri, 05 Mar 2010 13:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-634</guid>
		<description>You may need to use an isset(): 
 
&quot;if(isset($block)){ &quot; </description>
		<content:encoded><![CDATA[<p>You may need to use an isset(): </p>
<p>&quot;if(isset($block)){ &quot;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevinlearynet</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-633</link>
		<dc:creator>kevinlearynet</dc:creator>
		<pubDate>Fri, 05 Mar 2010 13:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-633</guid>
		<description>My mistake, I think you may need an &quot;isset()&quot; statement: 
 
&lt;?php 
$block = get_post_meta($post-&gt;ID, &#039;Block #1&#039;); 
if(isset($block)){ 
foreach(($block) as $blocks) { 
echo $blocks; 
} 
} 
?&gt;  </description>
		<content:encoded><![CDATA[<p>My mistake, I think you may need an &quot;isset()&quot; statement: </p>
<p>&lt;?php<br />
$block = get_post_meta($post-&gt;ID, &#039;Block #1&#039;);<br />
if(isset($block)){<br />
foreach(($block) as $blocks) {<br />
echo $blocks;<br />
}<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevinlearynet</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-631</link>
		<dc:creator>kevinlearynet</dc:creator>
		<pubDate>Fri, 05 Mar 2010 13:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-631</guid>
		<description>No problem Devin, a dynamic sidebar on a page by page basis is one of the most common uses for this in my experience. </description>
		<content:encoded><![CDATA[<p>No problem Devin, a dynamic sidebar on a page by page basis is one of the most common uses for this in my experience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevinlearynet</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-630</link>
		<dc:creator>kevinlearynet</dc:creator>
		<pubDate>Fri, 05 Mar 2010 13:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-630</guid>
		<description>Thanks Carlos! I&#039;m not sure how &quot;local&quot; made it in there, but it&#039;s fixed now. </description>
		<content:encoded><![CDATA[<p>Thanks Carlos! I&#039;m not sure how &quot;local&quot; made it in there, but it&#039;s fixed now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnTC</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-629</link>
		<dc:creator>JohnTC</dc:creator>
		<pubDate>Thu, 04 Mar 2010 22:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-629</guid>
		<description>Its not working for me... I must use this workaround:  
&lt;a href=&quot;http://www.scotproof.com/inserting-a-nextgen-gallery-or-slideshow-in-a-custom-field/comment-page-1/&quot; target=&quot;_blank&quot;&gt;http://www.scotproof.com/inserting-a-nextgen-gall...&lt;/a&gt;  </description>
		<content:encoded><![CDATA[<p>Its not working for me&#8230; I must use this workaround:<br />
<a href="http://www.scotproof.com/inserting-a-nextgen-gallery-or-slideshow-in-a-custom-field/comment-page-1/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.scotproof.com/inserting-a-nextgen-gallery-or-slideshow-in-a-custom-field/comment-page-1/?referer=');"></a><a href="http://www.scotproof.com/inserting-a-nextgen-gall.." rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.scotproof.com/inserting-a-nextgen-gall..?referer=');">http://www.scotproof.com/inserting-a-nextgen-gall..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-625</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Sat, 27 Feb 2010 19:26:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-625</guid>
		<description>Should there be an &#039;else&#039;? It&#039;s not working for me.  </description>
		<content:encoded><![CDATA[<p>Should there be an &#039;else&#039;? It&#039;s not working for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satılık Daire</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-624</link>
		<dc:creator>Satılık Daire</dc:creator>
		<pubDate>Sat, 27 Feb 2010 12:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-624</guid>
		<description>I found it very useful. Thanks!  </description>
		<content:encoded><![CDATA[<p>I found it very useful. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-620</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Sat, 20 Feb 2010 08:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-620</guid>
		<description>In the disposable styles CSS for your example, the reference to the #local DIV is wrong.  It should be #block-2.  In other words, the CSS should read: 
 
#block-2 
{ 
margin:0 0 0 20px; 
display:inline; /* For IE6 */ 
} 
 
Peace, 
Carlos </description>
		<content:encoded><![CDATA[<p>In the disposable styles CSS for your example, the reference to the #local DIV is wrong.  It should be #block-2.  In other words, the CSS should read: </p>
<p>#block-2<br />
{<br />
margin:0 0 0 20px;<br />
display:inline; /* For IE6 */<br />
} </p>
<p>Peace,<br />
Carlos</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @nbierma</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-619</link>
		<dc:creator>@nbierma</dc:creator>
		<pubDate>Fri, 19 Feb 2010 16:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-619</guid>
		<description>ok, i looked at your reply to tin_soldier  and think I have to do an if-exists for each field in functions.php. :  
 
&lt;code&gt; 
$block = get_post_meta($post-&gt;ID, &#039;Block #1&#039;); 
if($block){ 
foreach(($block) as $blocks) {  
 
$block = get_post_meta($post-&gt;ID, &#039;Block #2&#039;); 
if($block){ 
foreach(($block) as $blocks) {  
 
$block = get_post_meta($post-&gt;ID, &#039;Block #3&#039;); 
if($block){ 
foreach(($block) as $blocks) {  
&lt;/code&gt; 
 </description>
		<content:encoded><![CDATA[<p>ok, i looked at your reply to tin_soldier  and think I have to do an if-exists for each field in functions.php. :  </p>
<p>&lt;code&gt;<br />
$block = get_post_meta($post-&gt;ID, &#039;Block #1&#039;);<br />
if($block){<br />
foreach(($block) as $blocks) {  </p>
<p>$block = get_post_meta($post-&gt;ID, &#039;Block #2&#039;);<br />
if($block){<br />
foreach(($block) as $blocks) {  </p>
<p>$block = get_post_meta($post-&gt;ID, &#039;Block #3&#039;);<br />
if($block){<br />
foreach(($block) as $blocks) {<br />
&lt;/code&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: @nbierma</title>
		<link>http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/comment-page-1/#comment-618</link>
		<dc:creator>@nbierma</dc:creator>
		<pubDate>Fri, 19 Feb 2010 16:10:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.kevinleary.net/?p=450#comment-618</guid>
		<description>can you help me out with the syntax for a PHP &quot;if it exists&quot; function, so that the custom field only shows up if it has something in it? i.e. if I don&#039;t want to show block 2 on a post that has no content for block 2. 
 
I know this is the PHP for WP&#039;s built-in custom fields: 
&lt;code&gt; 
            &lt;?php $customField = get_post_custom_values(&quot;photo&quot;); 
                        if (isset($customField[0])) { 
                        echo &quot;&lt;p&gt;&lt;img class=photo src=&quot;.$customField[0].&quot;&gt;&quot;; 
            }?&gt; 
&lt;/code&gt; 
 
What&#039;s the equivalent for this plugin? 
 
Thanks!! 
 
&lt;/img&gt;&lt;/p&gt; </description>
		<content:encoded><![CDATA[<p>can you help me out with the syntax for a PHP &quot;if it exists&quot; function, so that the custom field only shows up if it has something in it? i.e. if I don&#039;t want to show block 2 on a post that has no content for block 2. </p>
<p>I know this is the PHP for WP&#039;s built-in custom fields:<br />
&lt;code&gt;<br />
            &lt;?php $customField = get_post_custom_values(&quot;photo&quot;);<br />
                        if (isset($customField[0])) {<br />
                        echo &quot;
<p>&lt;img class=photo src=&quot;.$customField[0].&quot;&gt;&quot;;<br />
            }?&gt;<br />
&lt;/code&gt; </p>
<p>What&#039;s the equivalent for this plugin? </p>
<p>Thanks!! </p>
]]></content:encoded>
	</item>
</channel>
</rss>
