<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: Custom Fields - problems displaying individual keys</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: Custom Fields - problems displaying individual keys</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 10:36:21 +0000</pubDate>

<item>
<title>MichaelH on "Custom Fields - problems displaying individual keys"</title>
<link>http://wordpress.org/support/topic/235543#post-960176</link>
<pubDate>Mon, 19 Jan 2009 16:03:28 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">960176@http://wordpress.org/support/</guid>
<description>&#60;p&#62;This works for me:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php $client = get_post_meta($post-&#38;gt;ID, &#38;#39;client&#38;#39;, true); ?&#38;gt;
&#38;lt;?php echo $client; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>maxcap on "Custom Fields - problems displaying individual keys"</title>
<link>http://wordpress.org/support/topic/235543#post-960006</link>
<pubDate>Mon, 19 Jan 2009 11:47:59 +0000</pubDate>
<dc:creator>maxcap</dc:creator>
<guid isPermaLink="false">960006@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I want to be able to display individual values of keys within a post, but am having problems doing so. I've tried all the variations available on this forum.&#60;/p&#62;
&#60;p&#62;Key: client&#60;br /&#62;
Value: Joe Blogg&#60;/p&#62;
&#60;p&#62;The code I am using is:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php $client = get_post_meta($post-&#38;gt;ID, &#38;#39;client&#38;#39;, true); ?&#38;gt;
&#38;lt;?php echo($client) ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However, nothing is displayed in the post.&#60;/p&#62;
&#60;p&#62;When I use to test:&#60;br /&#62;
&#60;code&#62;&#38;lt;?php the_meta(); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It works fine, displaying &#34;client: Joe Bloggs&#34;, but this isn't what I need (I only need the value). The code is absolutely positively within the loop.&#60;/p&#62;
&#60;p&#62;Can anybody help? I've exhausted my limited knowledge of PHP!&#60;br /&#62;
Thanks, Max
&#60;/p&#62;</description>
</item>

</channel>
</rss>
