Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Custom field above post content http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Sat, 23 May 2015 04:13:02 +0000 helgatheviking on "Custom field above post content" http://forums.themeshaper.com/topic/custom-field-above-post-content#post-27524 Fri, 03 Aug 2012 23:21:10 +0000 helgatheviking 27524@http://forums.themeshaper.com/ <p>thematic moved: <a href="http://thematictheme.com/" rel="nofollow">http://thematictheme.com/</a> </p> Sabra on "Custom field above post content" http://forums.themeshaper.com/topic/custom-field-above-post-content#post-27511 Wed, 18 Jul 2012 18:34:10 +0000 Sabra 27511@http://forums.themeshaper.com/ <p>Anyone guys? I really need this to work. :( </p> Sabra on "Custom field above post content" http://forums.themeshaper.com/topic/custom-field-above-post-content#post-27509 Sun, 15 Jul 2012 18:57:40 +0000 Sabra 27509@http://forums.themeshaper.com/ <p>One more question: does anyone know how I can add more than one custom field to $post ? </p> Sabra on "Custom field above post content" http://forums.themeshaper.com/topic/custom-field-above-post-content#post-27508 Sun, 15 Jul 2012 18:47:11 +0000 Sabra 27508@http://forums.themeshaper.com/ <p>Darn, I feel stupid but I figured it out...</p> <pre><code>function add_code($post) { if (is_single()){ $old_post = $post; $post = types_render_field(&#39;docent_website&#39;, array(&#39;show_name&#39;=&gt;&#39;true&#39;)); $post .= $old_post; } return $post; } add_filter (&#39;thematic_post&#39;, &#39;add_code&#39;);</code></pre> Sabra on "Custom field above post content" http://forums.themeshaper.com/topic/custom-field-above-post-content#post-27507 Sun, 15 Jul 2012 18:37:19 +0000 Sabra 27507@http://forums.themeshaper.com/ <p>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: <a href="http://forums.themeshaper.com/topic/add-code-between-post-title-and-post-content" rel="nofollow">http://forums.themeshaper.com/topic/add-code-between-post-title-and-post-content</a></p> <p>Now, I'm trying to echo a custom field, instead of random text and I'm failing. I tried this: </p> <pre><code>function add_code($post) { if (is_single()){ $old_post = $post; $post = echo(types_render_field(&#39;docent_website&#39;, array(&#39;show_name&#39;=&gt;&#39;true&#39;))); $post .= $old_post; } return $post; } add_filter (&#39;thematic_post&#39;, &#39;add_code&#39;);</code></pre> <p>But it's giving me an error. Can anyone tell me what I'm doing wrong? </p>