<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPCONCEPT + wordpress resources &#187; custom fields</title>
	<atom:link href="http://www.wpconcept.com/tag/custom-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wpconcept.com</link>
	<description></description>
	<lastBuildDate>Wed, 05 May 2010 15:26:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Custom fields in wordpress</title>
		<link>http://www.wpconcept.com/2009/11/24/custom-fields-in-wordpress/</link>
		<comments>http://www.wpconcept.com/2009/11/24/custom-fields-in-wordpress/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 13:43:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[wordpress custom fields]]></category>

		<guid isPermaLink="false">http://wpconcept.com/?p=42</guid>
		<description><![CDATA[Custom fields in wordpress are important if you want to use custom functions in your theme or if you want to have a clean design. The implementation of custom fields is relatively easy. Open your style.css file and paste the following code: .leadpic { float:left; width:200px; height:100px; border:1px solid #bebebe; padding:5px; margin:10px 10px 10px 10px; [...]]]></description>
			<content:encoded><![CDATA[<p>Custom fields in wordpress are important if you want to use custom functions in your theme or if you want to have a clean design. The implementation of custom fields is relatively easy.</p>
<p>Open your style.css file and paste the following code:</p>
<p><span id="more-42"></span></p>
<p><code>.leadpic {<br />
float:left;<br />
width:200px;<br />
height:100px;<br />
border:1px solid #bebebe;<br />
padding:5px;<br />
margin:10px 10px 10px 10px;<br />
}</code></p>
<p>The code above can be customized as you want.</p>
<p>Now open the index.php file and search the following code:</p>
<p><code>&lt;?php if</code> <code>(have_posts()) : while</code> <code>(have_posts()) : the_post</code></p>
<p>Under this code paste the following code:</p>
<p><code>&lt;?php<br />
$values = get_post_custom_values("Image");<br />
if (isset($values[0])) {<br />
?&gt;<br />
&lt;div&gt;<br />
&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title(); ?&gt;"&gt;&lt;img src="&lt;?php $values = get_post_custom_values("Image"); echo $values[0]; ?&gt;" alt="" width="200px" height="100px" /&gt;&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;?php } ?&gt;<br />
</code><br />
To use this custom field you must <em>add a new custom field</em> from wordpress post options.</p>
<p>On the key field put <em>image</em> and on the <em>value</em> field put your image url.</p>
<p>The entire code from this article can be easily customized. For any questions feel free to post a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpconcept.com/2009/11/24/custom-fields-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
