I am looking to echo the post title at the beginning of each post. I've tried adding the following to functions.php
with no luck:
function add_post_content( $content ) {
if ( ! is_feed() && ! is_home() ) {
$content .= '<p>.get_post('post_title').</p>';
}
return $content;
}
add_filter('the_content', 'add_post_content');
Should I be trying to update the functions.php
file or single.php
?