<?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>ThemeShaper Forums Topic: Custom field above post content</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 06:35:03 +0000</pubDate>

<item>
<title>helgatheviking on "Custom field above post content"</title>
<link>http://themeshaper.com/forums/topic/custom-field-above-post-content#post-27524</link>
<pubDate>Fri, 03 Aug 2012 23:21:10 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">27524@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;thematic moved: &#60;a href=&#34;http://thematictheme.com/&#34; rel=&#34;nofollow&#34;&#62;http://thematictheme.com/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Sabra on "Custom field above post content"</title>
<link>http://themeshaper.com/forums/topic/custom-field-above-post-content#post-27511</link>
<pubDate>Wed, 18 Jul 2012 18:34:10 +0000</pubDate>
<dc:creator>Sabra</dc:creator>
<guid isPermaLink="false">27511@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Anyone guys? I really need this to work. :(
&#60;/p&#62;</description>
</item>
<item>
<title>Sabra on "Custom field above post content"</title>
<link>http://themeshaper.com/forums/topic/custom-field-above-post-content#post-27509</link>
<pubDate>Sun, 15 Jul 2012 18:57:40 +0000</pubDate>
<dc:creator>Sabra</dc:creator>
<guid isPermaLink="false">27509@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;One more question: does anyone know how I can add more than one custom field to $post ?
&#60;/p&#62;</description>
</item>
<item>
<title>Sabra on "Custom field above post content"</title>
<link>http://themeshaper.com/forums/topic/custom-field-above-post-content#post-27508</link>
<pubDate>Sun, 15 Jul 2012 18:47:11 +0000</pubDate>
<dc:creator>Sabra</dc:creator>
<guid isPermaLink="false">27508@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Darn, I feel stupid but I figured it out...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function add_code($post) {
	if (is_single()){
		$old_post = $post;
		$post = types_render_field(&#38;#39;docent_website&#38;#39;, array(&#38;#39;show_name&#38;#39;=&#38;gt;&#38;#39;true&#38;#39;));
		$post .= $old_post;
	}
		return $post;
		}
add_filter (&#38;#39;thematic_post&#38;#39;, &#38;#39;add_code&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Sabra on "Custom field above post content"</title>
<link>http://themeshaper.com/forums/topic/custom-field-above-post-content#post-27507</link>
<pubDate>Sun, 15 Jul 2012 18:37:19 +0000</pubDate>
<dc:creator>Sabra</dc:creator>
<guid isPermaLink="false">27507@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi guys, I hope you can help me with this. I learned how to put some text in between the post header and the post content here: &#60;a href=&#34;http://themeshaper.com/forums/topic/add-code-between-post-title-and-post-content&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/add-code-between-post-title-and-post-content&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Now, I'm trying to echo a custom field, instead of random text and I'm failing. I tried this: &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function add_code($post) {
	if (is_single()){
		$old_post = $post;
		$post = echo(types_render_field(&#38;#39;docent_website&#38;#39;, array(&#38;#39;show_name&#38;#39;=&#38;gt;&#38;#39;true&#38;#39;)));
		$post .= $old_post;
	}
		return $post;
		}
add_filter (&#38;#39;thematic_post&#38;#39;, &#38;#39;add_code&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But it's giving me an error. Can anyone tell me what I'm doing wrong?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
