WordPress.org

Ready to get started?Download WordPress

Forums

Display write panel based on selected page template? (1 post)

  1. jessn
    Member
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic