Support » Plugin: WP Title 2 » Title2 overriding menu entries for current page

  • I think the Title2 filtering of the_title() is causing menu items to have their value of the_title overwritten by the current page when the Title2 heading happens to match the current page.

    I have a WP nav menu with a menu element linking to a page with the WordPress title “Contact”.
    If I create a new page, and set the WordPress title to “TEST” and the Title2 title to be “Contact”, then navigate to that page – the menu item above will display TEST and not “Contact”!

    It seems that when WP is doing apply_filter for displaying the menu, if it finds the current page has a matching Title2 title, it using THAT WordPress title for the menu item.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks like this is a bug in version 3.6 (probably part of the “WP3.0+” requirement change).

    I downgraded to v3.5.1 of WP Title 2 (didn’t change my WP version – still running the latest 3.2.1) and now the bug is gone. I’m guessing there is a problem in the plugin integrating with wp_nav_menu() since that is the add_filter call that is causing the menu problem I described.

    BUMP this bug is still present. Just set up a new site – no content, bug still exists.

    I know this is a little old but I haven’t upgraded to 3.4 just yet but in 3.3.2 I’ve gone in and edited the wp-title-2.php in the plugin folder and removed this line


    it’s about halfway down. This seemed to solve the problem with displaying the wrong title in the custom menu.

    Doesn’t seem to effect anything else.

    @ann Pierson
    It may be old, but still helpful – thanks! Confirmed the fix seems to work in WP 3.4.1.

    Would be nice if the plugin author could comment on the hook and why it’s in there – but I agree it doesn’t seem to mess anything else up that I’ve found.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Title2 overriding menu entries for current page’ is closed to new replies.