Support » Plugins » Filter – the_title – finding out context

  • Resolved Will Kemp


    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 ‘Filter – the_title – finding out context’ is closed to new replies.