No - not quite. Try something like:
function my_the_content_filter($content) {
if ( is_home() ) {
$content = [insert markup etc];
}
return $content;
}
add_filter( 'the_content', 'my_the_content_filter' );
No - not quite. Try something like:
function my_the_content_filter($content) {
if ( is_home() ) {
$content = [insert markup etc];
}
return $content;
}
add_filter( 'the_content', 'my_the_content_filter' );