Title: use str_replace
Last modified: November 21, 2018

---

# use str_replace

 *  Resolved [Kai Niermann](https://wordpress.org/support/users/joloshop/)
 * (@joloshop)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/use-str_replace/)
 * Hi I am using `$wptitle = str_replace(array('Versandkostenfrei'), 'Kostenloser
   Versand', $wptitle);` to Exchange words in my theme.
 * With <?php echo $term->name; ?> I can call a therten Name which I would like 
   tom change with the same function. I tried `$wptitle = str_replace(array(' .echo(
   $term->name;)'), '', $wptitle);?>` but obviously not working :-(.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Kai Niermann](https://wordpress.org/support/users/joloshop/)
 * (@joloshop)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/use-str_replace/#post-10903474)
 * found a solution `$wptitle = str_replace( $term->name, '', $wptitle );`

Viewing 1 replies (of 1 total)

The topic ‘use str_replace’ is closed to new replies.

## Tags

 * [str_replace](https://wordpress.org/support/topic-tag/str_replace/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 1 participant
 * Last reply from: [Kai Niermann](https://wordpress.org/support/users/joloshop/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/use-str_replace/#post-10903474)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
