內容簡介
這個外掛需要 3.4+ 版本的 WordPress
WordPress 只會記錄最後存檔時所啟用的佈景主題的頁面模板。如果你在不同的佈景主題之間切換,WordPress 就會忘記任何特定頁面應該使用哪個模板,這對於展示外掛並希望允許最終用戶通過 Theme Switcher 切換佈景主題而不想重置頁面模板來說是有問題的。
這個外掛解決了這個問題。每當你儲存一個頁面,這個外掛就會儲存主題-模板的配對。如果你切換佈景主題並儲存頁面,它也會儲存該佈景主題的相應模板配對。在兩個佈景主題之間切換時,它會記住適當的模板。
顯然,為了讓這個外掛工作,你需要為每個佈景主題保存適當的頁面模板。當前佈景主題也包括在內。
這個外掛不會添加任何設置 - 它只是在後台靜默工作。
開發者團隊
原文外掛簡介
This plug-in requires 3.4+
WordPress only stores the page template for the theme which was activated when the page was last saved. Effectively, if you switch back and forth between themes WordPress forgets which template it is suppose to use for any particular page. This is problematic if you are showcasing a plug-in and wish to allow the end user to switch between a selection of thems (via Theme Switcher, for example), and don’t want the page templates being reset to ‘default’.
This plug-in resolves that problem. Whenever you save a page, the plug-in stores the theme-template pair. If you switch themes and save the page, it also stores that theme-template pair too. On switching between the two themes the appropriate template is ‘remembered’.
Obviously for the plug-in to work you’ll need to save the appropriate template for the page for each theme you’ll be switching between. Currently, this includes the current theme.
This plug-in doesn’t add any settings – it just works silently in the background, doing its thing.
