Does anyone know if it's possible to show/hide a custom page write panel based on what page template is selected?
I found this site that shows how to register sidebars if a template is active, which is pretty awesome, so it seems to me that it should be possible. And using the code on that site it does work, but the problem is with that code it will display the write panel on all page editing screens if it's active. I just want it displayed when editing individual pages if that page is using a particular template.
If anyone has any ideas I'd be most grateful! Thanks!