Hi, I'm trying a fairly basic filter to prepend posts...
function linickx_filter($content) {
// Remove Tags
$content_NoTags = strip_tags($content);
// Cool, get author name...
$author = trim(the_author_meta(display_name));
// now change the content
$new_content = $author . " Wrote: " . $content_NoTags;
$content = "<p> $new_content </p>";
return $content;
}
add_filter('the_content','linickx_filter');
But my resulting mark-up is...
linickx <p>Wrote: post content</p>
Can anyone give any advise on how this is happening?
Cheers,
Nick