WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Filter – the_title – finding out context

[Resolved] Filter – the_title – finding out context

  • I want to run run a filter when the_title is called, to change the page title, but i need to be able to work out whether it’s been called from the loop or from the “pages” widget in the sidebar.

    I can filter the_title and check if it’s the page title i want to change, but the page title also appears in the sidebar menu and i don’t want to change that too.

    Is there any way to work out what context the_title has been called from?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Filter – the_title – finding out context’ is closed to new replies.