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: http://forums.themeshaper.com/topic/add-code-between-post-title-and-post-content
Now, I'm trying to echo a custom field, instead of random text and I'm failing. I tried this:
function add_code($post) {
if (is_single()){
$old_post = $post;
$post = echo(types_render_field('docent_website', array('show_name'=>'true')));
$post .= $old_post;
}
return $post;
}
add_filter ('thematic_post', 'add_code');
But it's giving me an error. Can anyone tell me what I'm doing wrong?