<?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>Wed, 07 Jul 2010 15:14:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<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: 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>
	<item>
		<title>By: Scott</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-447031</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 13 Oct 2009 16:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-447031</guid>
		<description>&lt;strong&gt;Andrew:&lt;/strong&gt; A quick glance suggests that the code you included should do what you originally requested: showing the custom field &quot;short-excerpt&quot; in place of a post&#039;s content/excerpt.  What are you experiencing?  If you are still seeing the post&#039;s body or other excerpt, then maybe you haven&#039;t changed the appropriate template file?  Pages generally use page.php, posts generally use index.php for the front page listing (or perhaps one of the others depending on what section you&#039;re in.  You could use my &lt;a href=&quot;http://coffee2code.com/wp-plugins/reveal-template&quot; rel=&quot;nofollow&quot;&gt;Reveal Template&lt;/a&gt; plugin to help figure out what template you should be editing.</description>
		<content:encoded><![CDATA[<p><strong>Andrew:</strong> A quick glance suggests that the code you included should do what you originally requested: showing the custom field &#8220;short-excerpt&#8221; in place of a post&#8217;s content/excerpt.  What are you experiencing?  If you are still seeing the post&#8217;s body or other excerpt, then maybe you haven&#8217;t changed the appropriate template file?  Pages generally use page.php, posts generally use index.php for the front page listing (or perhaps one of the others depending on what section you&#8217;re in.  You could use my <a href="http://coffee2code.com/wp-plugins/reveal-template" rel="nofollow">Reveal Template</a> plugin to help figure out what template you should be editing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-446970</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sun, 11 Oct 2009 23:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-446970</guid>
		<description>This seems a very useful plugin
Is there a way for it to count the number of same values in a custom field and then display the number next to the value.
e.g a list of towns are the value and the number in brackets would indicate the number of posts from an area.

mytown (20)
yourtown (13)
anothertown (3)</description>
		<content:encoded><![CDATA[<p>This seems a very useful plugin<br />
Is there a way for it to count the number of same values in a custom field and then display the number next to the value.<br />
e.g a list of towns are the value and the number in brackets would indicate the number of posts from an area.</p>
<p>mytown (20)<br />
yourtown (13)<br />
anothertown (3)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Koop</title>
		<link>http://coffee2code.com/archives/2009/07/09/get-custom-field-values-v30/comment-page-1/#comment-446830</link>
		<dc:creator>Andrew Koop</dc:creator>
		<pubDate>Tue, 06 Oct 2009 14:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-446830</guid>
		<description>Hi Scott, sorry for the initial lack of details. The name of my custom field is &quot;short-excerpt.&quot; I&#039;ve posted the relevant code from my page template below. Thanks again for your help! :)

&lt;code&gt;&lt;?php if ( have_posts() ) : ?&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;
		&lt;A NAME=&quot;&lt;?php the_ID(); ?&gt;&quot;&gt;&lt;/A&gt;
					&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
		&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;			
				&lt;div class=&quot;entry&quot;&gt;
				&lt;?php echo c2c_get_custom(&#039;short-excerpt&#039;); ?&gt;
				&lt;/div&gt;
			&lt;/div&gt;
		&lt;?php endwhile; ?&gt;
	&lt;?php else : ?&gt;
		&lt;h2 class=&quot;center&quot;&gt;Not Found&lt;/h2&gt;
		&lt;?php include (TEMPLATEPATH . &#039;/searchform.php&#039;); ?&gt;
	&lt;?php endif; ?&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Scott, sorry for the initial lack of details. The name of my custom field is &#8220;short-excerpt.&#8221; I&#8217;ve posted the relevant code from my page template below. Thanks again for your help! <img src='http://coffee2code.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><pre><code>&lt;?php if ( have_posts() ) : ?&gt;
&lt;?php while (have_posts()) : the_post(); ?&gt;
    &lt;A NAME=&quot;&lt;?php the_ID(); ?&gt;&quot;&gt;&lt;/A&gt;
          &lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
    &lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;      
        &lt;div class=&quot;entry&quot;&gt;
        &lt;?php echo c2c_get_custom(&#039;short-excerpt&#039;); ?&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;?php endwhile; ?&gt;
  &lt;?php else : ?&gt;
    &lt;h2 class=&quot;center&quot;&gt;Not Found&lt;/h2&gt;
    &lt;?php include (TEMPLATEPATH . &#039;/searchform.php&#039;); ?&gt;
  &lt;?php endif; ?&gt;</code></pre></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-446769</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sat, 03 Oct 2009 16:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://coffee2code.com/?p=333#comment-446769</guid>
		<description>&lt;strong&gt;Andrew Koop:&lt;/strong&gt; Glad you found an older version of the plugin that worked for you.  Showing the custom field in a loop instead of the body should just be a matter of modifying the appropriate template(s), replace either the_content() or the_excerpt() with a call to c2c_get_custom().  You&#039;ll have to provide more details about what you&#039;re trying to do if you need further assistance.</description>
		<content:encoded><![CDATA[<p><strong>Andrew Koop:</strong> Glad you found an older version of the plugin that worked for you.  Showing the custom field in a loop instead of the body should just be a matter of modifying the appropriate template(s), replace either the_content() or the_excerpt() with a call to c2c_get_custom().  You&#8217;ll have to provide more details about what you&#8217;re trying to do if you need further assistance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
