[wp-hackers] using different templates with in one wordpress installation.
johnbillion+wp at gmail.com
Thu Mar 1 22:08:36 UTC 2012
On 1 March 2012 21:28, Dmitry Tokmakov <dmitry at getmoxied.net> wrote:
> Hi everyone,
> I have live wordpress installation for public view,
> and development server wortdpress installation. I keep two different databases.
> I need a solution for using two different templates within the same worpdress installation,
> Does anybody know how implement that ?
You can control the template and the stylesheet using the 'template'
and 'stylesheet' filters respectively. Example:
http://pastebin.com/zrcdV0Px . If you don't use child themes then you
can use the same callback function for both filters.
More information about the wp-hackers