The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › help w/ WP functions
I’m working on a function to replace text within a post (in functions.php) but it’s replacing every instance of the text, and I just want it to replace the first one.
$i = 0; while ($i <= 1){ add_filter('the_content', 'internal_linking'); $i++; } ?>
Any idea what I’m doing wrong here?