Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End help w/ WP functions

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #28889
    jlknauff
    Member

    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.

    Code:
    texttoreplace ‘, $string);
    return $string;
    }

    $i = 0;
    while ($i <= 1){ add_filter('the_content', 'internal_linking'); $i++; } ?>

    Any idea what I’m doing wrong here?

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.