<?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: Useful custom functions for WordPress</title>
	<atom:link href="http://www.mattvarone.com/wordpress/useful-functions-for-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattvarone.com/wordpress/useful-functions-for-wordpress/</link>
	<description>Creative Developer</description>
	<lastBuildDate>Tue, 20 Jul 2010 05:52:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Webne</title>
		<link>http://www.mattvarone.com/wordpress/useful-functions-for-wordpress/#comment-2580</link>
		<dc:creator>Webne</dc:creator>
		<pubDate>Fri, 16 Jul 2010 20:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattvarone.com/?p=547#comment-2580</guid>
		<description>Matt,
I am a novice at wordpress, would i put both snippets of code in the functions.php or do i but them in different places.
What i want to do is pull a custom category name and display it instead of the category title. 

Here are the snippets I am talking about:

function get_custom_field_value($szKey, $bPrint = false) {
    global $post;
    $szValue = get_post_meta($post-&gt;ID, $szKey, true);
    if ( $bPrint == false ) return $szValue; else echo $szValue;
}



Thanks</description>
		<content:encoded><![CDATA[<p>Matt,<br />
I am a novice at wordpress, would i put both snippets of code in the functions.php or do i but them in different places.<br />
What i want to do is pull a custom category name and display it instead of the category title. </p>
<p>Here are the snippets I am talking about:</p>
<p>function get_custom_field_value($szKey, $bPrint = false) {<br />
    global $post;<br />
    $szValue = get_post_meta($post-&gt;ID, $szKey, true);<br />
    if ( $bPrint == false ) return $szValue; else echo $szValue;<br />
}</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Orgu modelleri</title>
		<link>http://www.mattvarone.com/wordpress/useful-functions-for-wordpress/#comment-2579</link>
		<dc:creator>Orgu modelleri</dc:creator>
		<pubDate>Wed, 14 Jul 2010 09:39:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattvarone.com/?p=547#comment-2579</guid>
		<description>thanks for this post and functions.
I learn a lot from it</description>
		<content:encoded><![CDATA[<p>thanks for this post and functions.<br />
I learn a lot from it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josua</title>
		<link>http://www.mattvarone.com/wordpress/useful-functions-for-wordpress/#comment-2558</link>
		<dc:creator>Josua</dc:creator>
		<pubDate>Sat, 12 Jun 2010 10:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattvarone.com/?p=547#comment-2558</guid>
		<description>great post, thank you for sharing..</description>
		<content:encoded><![CDATA[<p>great post, thank you for sharing..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabiën Tesselaar</title>
		<link>http://www.mattvarone.com/wordpress/useful-functions-for-wordpress/#comment-2527</link>
		<dc:creator>Fabiën Tesselaar</dc:creator>
		<pubDate>Fri, 21 May 2010 10:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattvarone.com/?p=547#comment-2527</guid>
		<description>Thanks, awesome functions! Using the clean_bad_content one to adjust some generated  tags from my other shortcodes.</description>
		<content:encoded><![CDATA[<p>Thanks, awesome functions! Using the clean_bad_content one to adjust some generated  tags from my other shortcodes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Hester</title>
		<link>http://www.mattvarone.com/wordpress/useful-functions-for-wordpress/#comment-2512</link>
		<dc:creator>Jeff Hester</dc:creator>
		<pubDate>Wed, 05 May 2010 19:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattvarone.com/?p=547#comment-2512</guid>
		<description>Matt, I installed your code and it works great, except I noticed when i change a page status to a child page instead of a parent/main page... the image in the custom field no longer shows up. Can you help? Here is my code...


CODE ON THE MAIN PAGE TEMPLATE:

ID, &#039;featured_image&#039;, true);

if ($postimageurl) {

?&gt;

      &lt;img src=&quot;&quot; alt=&quot;Featured Image&quot; width=&quot;890&quot; height=&quot;175&quot; /&gt;&lt;/a&gt;





&lt;img src=&quot;/images/spacer.gif&quot; width=&quot;890&quot; height=&quot;0&quot; /&gt;&lt;/a&gt;

      



CODE IN THE FUNCTIONS: -------------

function get_custom_field_value($szKey, $bPrint = false) {

	global $post;

	$szValue = get_post_meta($post-&gt;ID, $szKey, true);

	if ( $bPrint == false ) return $szValue; else echo $szValue;

}</description>
		<content:encoded><![CDATA[<p>Matt, I installed your code and it works great, except I noticed when i change a page status to a child page instead of a parent/main page&#8230; the image in the custom field no longer shows up. Can you help? Here is my code&#8230;</p>
<p>CODE ON THE MAIN PAGE TEMPLATE:</p>
<p>ID, &#8216;featured_image&#8217;, true);</p>
<p>if ($postimageurl) {</p>
<p>?&gt;</p>
<p>      &lt;img src=&quot;&#8221; alt=&#8221;Featured Image&#8221; width=&#8221;890&#8243; height=&#8221;175&#8243; /&gt;</p>
<p>&lt;img src=&quot;/images/spacer.gif&#8221; width=&#8221;890&#8243; height=&#8221;0&#8243; /&gt;</p>
<p>CODE IN THE FUNCTIONS: &#8212;&#8212;&#8212;&#8212;-</p>
<p>function get_custom_field_value($szKey, $bPrint = false) {</p>
<p>	global $post;</p>
<p>	$szValue = get_post_meta($post-&gt;ID, $szKey, true);</p>
<p>	if ( $bPrint == false ) return $szValue; else echo $szValue;</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to: Automatically remove code mistakes in posts &#124; IdolMasti</title>
		<link>http://www.mattvarone.com/wordpress/useful-functions-for-wordpress/#comment-2470</link>
		<dc:creator>How to: Automatically remove code mistakes in posts &#124; IdolMasti</dc:creator>
		<pubDate>Tue, 13 Apr 2010 18:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattvarone.com/?p=547#comment-2470</guid>
		<description>[...] to Matt Varone for this awesome function! About the AuthoraRyAn mUgHaL wrote 967 articles for us.I am designer and [...]</description>
		<content:encoded><![CDATA[<p>[...] to Matt Varone for this awesome function! About the AuthoraRyAn mUgHaL wrote 967 articles for us.I am designer and [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
