Is there a way to change the Template of a page from Default Template to another programatically?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
Looking at the wp_postmeta table, you can see the page template is stored there. Therefore, a simple call to
The filename and extension is necessary, as per my example. |
|||
|
|