-
DaFlounderParticipant
I can use custom sidebars on page templates via the theme options pages and that works great, but I’m having trouble doing this on individual pages – on the post’s edit page, unticking ‘Use default sidebar locations for page’ brings up the list of available sidebars, and I can select the custom ones I’ve made, but the changes won’t save.
Help please!
Daniel TaraKeymasterWhat happens when you click on update post or save draft? Does the option revert back to “Use default sidebar locations for page” being checked or just the sidebars don’t save? What kind of user role do you have?
DaFlounderParticipantYes, when the page reloads after “update” it reverts back to “Use default sidebar locations for page”. the same goes for changes to Page Builder or Custom Layouts.
Daniel TaraKeymasterPlease try this: do a test WordPress install, preferably on the same server and database as your website. Install this theme and see if the issue persists on the test install.
DaFlounderParticipantInteresting – yes, I did that in a new subdomain on the same server and the problem didn’t recur there in new content. So I tried using the WP import tool to bring in the page content from the old site, and on the old pages the sidebar override settings still won’t stick.
Also, I went back to the original install, which is a WP site which has been running for about 6 years, but is fully upgraded, and there too newly added pages will take sidebar override settings but old ones won’t.
I guess there must be a database-level issue. Have you any idea what it is? I’d like to find a fix which can save my old page content.
Daniel TaraKeymasterThe meta box checks for the
edit_post
capability when saving the data. If the user doesn’t have it it reverts back to the old settings. This capability is by default added to admins, editors and authors unless a plugin has tampered with the default capabilities. For custom post types it checks for the corresponding capability (i.e.edit_page
for pagesedit_product
for WooCommerce products and so on). I doubt it inherently related to the database, more likely it’s an issue with a plugin tampering with the capabilities or post saving.DaFlounderParticipantGreat, thanks for your help – I think I’ve pinned down the problem to a clash with the calendar plugin I was running.
Tagged: custom sidebars
You must be logged in to reply to this topic.