Title: wp_title filter problem
Last modified: August 21, 2016

---

# wp_title filter problem

 *  [Ivan M](https://wordpress.org/support/users/ivanm89/)
 * (@ivanm89)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_title-filter-problem/)
 * Hello,
 * I need to change wp title with plugin, but I have problem with using wp_title
   filter in WPMU installation.
 * I have this simple code:
 *     ```
       function my_title_filter($oldtitle) {
           return "added by plugin | $oldtitle";
       }
       add_filter('wp_title', 'my_title_filter', 500);
       ```
   
 * This code works perfect in normal WP installation, but not in WPMU.
    Is there
   some differences between WPMU and standard WP installation? Maybe I should use
   some other filter in WPMU for the same thing?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_title-filter-problem/#post-4058761)
 * Where’d you put the code? Is this in a plugin that’s active on the site?
 *  Thread Starter [Ivan M](https://wordpress.org/support/users/ivanm89/)
 * (@ivanm89)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_title-filter-problem/#post-4058805)
 * Yeah, code is in plugin, and plugin is active on the site. The same code works
   fine in normal (single) wordpress installation.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_title-filter-problem/#post-4058843)
 * I just tested this on a clean Multisite. Put the code in a plugin file, activated
   it on the site, and all the post titles get ‘added by plugin’ put in front, no
   problems.
 * Try turning on WP_DEBUG
 *  Thread Starter [Ivan M](https://wordpress.org/support/users/ivanm89/)
 * (@ivanm89)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_title-filter-problem/#post-4058849)
 * Thanks for info. I probably have conflict with some other plugin, or even maybe
   plugin for caching. I’ll try turn on wp_debug, and find the problem.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wp_title filter problem’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 4 replies
 * 2 participants
 * Last reply from: [Ivan M](https://wordpress.org/support/users/ivanm89/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/wp_title-filter-problem/#post-4058849)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
