I have a function which puts the comments link and comments number in a div in the postheader, but it is not being displayed correctly. The link and the number display before it is being called by the function?
function childtheme_override_postheader_postmeta() {
$postmeta = '<div class="entry-meta">';
$postmeta .= thematic_postmeta_authorlink();
$postmeta .= thematic_postmeta_entrydate();
$postmeta .= '<div class="bubble"><p><a href="';
$postmeta .= comments_link();
$postmeta .= '">';
$postmeta .= comments_number('0','1','%');
$postmeta .= '</a></div>';
$postmeta .= thematic_postmeta_editlink();
$postmeta .= "</div><!-- .entry-meta -->\n";
return $postmeta;
}
add_filter('thematic_postheader_postmeta','childtheme_override_postheader_postmeta');
Which results in the comment link and number of comments displayed as text before the post title.
Somehow it is being displayed outside of where I want it.
I followed this post: http://themeshaper.com/forums/topic/why-cant-i-post-a-topic#post-14322 , which seems related, but I don't know how to fix it?
Does this mean I must rewrite each function to use return instead of echo for this purpose?