template_directory filter problem on 2.7
-
Hi,
before WordPress 2.7 i used the template_directory filter to intercept the theme for a particular page and direct it to php page to allow the page to be just a plain txt, csv or what have you. It needed to dynamic, and since itwas in a plugin, creating a template for the theme would make it more difficult for the user to install.This all worked fie prior to WordPress 2.7, since then the theme is no longer overridden.
On testing, using the get_template_directory call does give the value as I have set it, but selected theme still loads.Has the way of doing this changed or is there a problem. Any help gladly received, If you have a better was to do what I require please let me know.
- The topic ‘template_directory filter problem on 2.7’ is closed to new replies.