<?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: Get Custom Field Values v3.0</title>
	<atom:link href="http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/feed/" rel="self" type="application/rss+xml" />
	<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/</link>
	<description>pro-gram-mer: n. a person who converts coffee into code</description>
	<lastBuildDate>Tue, 07 Feb 2012 05:56:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Scott</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-456605</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sat, 11 Sep 2010 15:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-456605</guid>
		<description>&lt;strong&gt;Alex:&lt;/strong&gt; So you have a custom field by the name of &#039;botox&#039; and you want its associated value?  You&#039;d do this:

&lt;code&gt;$hej = &quot;botox&quot;;
echo c2c_get_custom($hej);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><strong>Alex:</strong> So you have a custom field by the name of &#8216;botox&#8217; and you want its associated value?  You&#8217;d do this:</p>
<p><pre><code>$hej = &quot;botox&quot;;
echo c2c_get_custom($hej);
</code></pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-456568</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 09 Sep 2010 19:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-456568</guid>
		<description>$hej = &quot;botox&quot;; 

echo c2c_get_custom(&quot;&#039;&quot; echo $hej; &quot;&#039;&quot;,&#039;&#039;)</description>
		<content:encoded><![CDATA[<p>$hej = &#8220;botox&#8221;; </p>
<p>echo c2c_get_custom(&#8220;&#8216;&#8221; echo $hej; &#8220;&#8216;&#8221;,&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-456566</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 09 Sep 2010 19:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-456566</guid>
		<description>Hi! I have a question regarding this setup:




This gives me an error - can you help me out?</description>
		<content:encoded><![CDATA[<p>Hi! I have a question regarding this setup:</p>
<p>This gives me an error &#8211; can you help me out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: morrisjfwong</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-449392</link>
		<dc:creator>morrisjfwong</dc:creator>
		<pubDate>Wed, 13 Jan 2010 12:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-449392</guid>
		<description>I just install version 3.0.1 in my blog/site, and it words well, great!</description>
		<content:encoded><![CDATA[<p>I just install version 3.0.1 in my blog/site, and it words well, great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baga</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-447638</link>
		<dc:creator>Baga</dc:creator>
		<pubDate>Sun, 08 Nov 2009 18:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-447638</guid>
		<description>Hi Scott, great plugin. I was wondering if there&#039;s a way to show custom field values from multiple pages in a single page. Thanks for the support</description>
		<content:encoded><![CDATA[<p>Hi Scott, great plugin. I was wondering if there&#8217;s a way to show custom field values from multiple pages in a single page. Thanks for the support</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-447237</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 20 Oct 2009 15:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-447237</guid>
		<description>&lt;strong&gt;Javier:&lt;/strong&gt; Yes, but it would take some customization via code, so how easy it can be done depends on how much coding you can do.  A rudimentary example of it is (which can go in your theme&#039;s functions.php file (after you&#039;ve customized it to suit your situation, of course)):

&lt;code&gt;
add_filter(&#039;the_content&#039;, &#039;add_cfields_to_rss&#039;);
function add_cfields_to_rss( $content ) {
	if ( is_feed() ) :
		$content .= c2c_get_custom(&#039;event_name&#039;, &quot;&lt;p&gt;Event name: &quot;, &quot;&lt;/p&gt;\n&quot;);
		$content .= c2c_get_custom(&#039;event_location&#039;, &quot;&lt;p&gt;Event location: &quot;, &quot;&lt;/p&gt;\n&quot;);
	endif;
	return $content;
}

&lt;/code&gt;

There are other checks you may want to do in the above code to ensure it only inserts custom fields for certain posts (i.e. posts with empty content, or in certain categories) (the above assumes all posts in the feed).  You may also want to add more text, multiple custom fields, or other data, which are also all possible.

Hope that helps.</description>
		<content:encoded><![CDATA[<p><strong>Javier:</strong> Yes, but it would take some customization via code, so how easy it can be done depends on how much coding you can do.  A rudimentary example of it is (which can go in your theme&#8217;s functions.php file (after you&#8217;ve customized it to suit your situation, of course)):</p>
<p><pre><code>
add_filter(&#039;the_content&#039;, &#039;add_cfields_to_rss&#039;);
function add_cfields_to_rss( $content ) {
  if ( is_feed() ) :
    $content .= c2c_get_custom(&#039;event_name&#039;, &quot;&lt;p&gt;Event name: &quot;, &quot;&lt;/p&gt;\n&quot;);
    $content .= c2c_get_custom(&#039;event_location&#039;, &quot;&lt;p&gt;Event location: &quot;, &quot;&lt;/p&gt;\n&quot;);
  endif;
  return $content;
}

</code></pre></p>
<p>There are other checks you may want to do in the above code to ensure it only inserts custom fields for certain posts (i.e. posts with empty content, or in certain categories) (the above assumes all posts in the feed).  You may also want to add more text, multiple custom fields, or other data, which are also all possible.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-447235</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 20 Oct 2009 15:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-447235</guid>
		<description>&lt;strong&gt;Raphael:&lt;/strong&gt; There isn&#039;t a limit on the number of shortcodes that can be inserted into a post.  The example you cite should work the same as the others you&#039;ve mentioned that do work.  Is the custom field key name you are using, &quot;Ville&quot;, using accented characters in one place (as the actual key name for the custom field) or the other (in the shortcode)?  I tried your example and it worked for me.  Is there anything else unusual/different about the &quot;Ville&quot; custom field?</description>
		<content:encoded><![CDATA[<p><strong>Raphael:</strong> There isn&#8217;t a limit on the number of shortcodes that can be inserted into a post.  The example you cite should work the same as the others you&#8217;ve mentioned that do work.  Is the custom field key name you are using, &#8220;Ville&#8221;, using accented characters in one place (as the actual key name for the custom field) or the other (in the shortcode)?  I tried your example and it worked for me.  Is there anything else unusual/different about the &#8220;Ville&#8221; custom field?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-447068</link>
		<dc:creator>Javier</dc:creator>
		<pubDate>Wed, 14 Oct 2009 15:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-447068</guid>
		<description>Great plugin! Is there any way I could get my RSS feed to display the meta data generated by the custom fields input? My posts are exclusively meta-data (custom fields data) and hence the RSS feed comes up empty.

Thanks!</description>
		<content:encoded><![CDATA[<p>Great plugin! Is there any way I could get my RSS feed to display the meta data generated by the custom fields input? My posts are exclusively meta-data (custom fields data) and hence the RSS feed comes up empty.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raphael</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-447064</link>
		<dc:creator>Raphael</dc:creator>
		<pubDate>Wed, 14 Oct 2009 14:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-447064</guid>
		<description>Hi

I made a test with a post that I let as a draft on my site. I dont&#039; want to publish it so that you can&#039;t see it on my site.

In that post, I used many times your shortcode and it worked for all the custom fields except 1. I don&#039;t know why. Is there a maximum of shortcodes to insert in a post ?
That is to say that in the test post, I have in the content : [custom_field field=&quot;Ville&quot; this_post=&quot;1&quot; between=&quot;&quot; /]

In the post, I do have a custom field key Ville and also a custom field value. Do you have any idea why the value is not printed on the screen ?

The other shortcodes in that post have the same structure and they all work: 
[custom_field field=&quot;Key&quot; this_post=&quot;1&quot; between=&quot;&quot; /]

Thank you for your support

Raphael</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I made a test with a post that I let as a draft on my site. I dont&#8217; want to publish it so that you can&#8217;t see it on my site.</p>
<p>In that post, I used many times your shortcode and it worked for all the custom fields except 1. I don&#8217;t know why. Is there a maximum of shortcodes to insert in a post ?<br />
That is to say that in the test post, I have in the content : [custom_field field="Ville" this_post="1" between="" /]</p>
<p>In the post, I do have a custom field key Ville and also a custom field value. Do you have any idea why the value is not printed on the screen ?</p>
<p>The other shortcodes in that post have the same structure and they all work:<br />
[custom_field field="Key" this_post="1" between="" /]</p>
<p>Thank you for your support</p>
<p>Raphael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-447032</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 13 Oct 2009 16:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-447032</guid>
		<description>&lt;strong&gt;mike:&lt;/strong&gt; Currently the plugin does not provide such functionality.  I&#039;ve made note of it for possible inclusion in a future release.  Offhand I&#039;m not aware of a plugin that may help you out here (though one may well exist).  Otherwise, it&#039;d take a bit of custom code to make the appropriate database queries to generate the listing you want.</description>
		<content:encoded><![CDATA[<p><strong>mike:</strong> Currently the plugin does not provide such functionality.  I&#8217;ve made note of it for possible inclusion in a future release.  Offhand I&#8217;m not aware of a plugin that may help you out here (though one may well exist).  Otherwise, it&#8217;d take a bit of custom code to make the appropriate database queries to generate the listing you want.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

