[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?
- The topic ‘[Resolved] Filter – the_title – finding out context’ is closed to new replies.