Replace word in “the_content” only for index.php
Few possibilities here: In index.php you find the_content() and replace it with: $content = get_the_content( $more_link_text, $strip_teaser ); $content = apply_filters( ‘the_content’, $content ); $content = str_replace( ‘]]>’, ‘]]>’, $content ); $replace = array( ‘autoplay=””‘ => ” ); $text = str_replace(array_keys($replace), $replace, $text); echo $text; Did you try putting that bit of code in index.php? … Read more