Overriding sidebar locations for individual pages/posts

Viewing 8 posts - 1 through 8 (of 8 total)
  • #20153
    DaFlounder
    Participant

    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!

    #20157
    Daniel Tara
    Keymaster

    What 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?

    #20161
    DaFlounder
    Participant

    Yes, 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.

    #20162
    DaFlounder
    Participant

    I’m admin – it’s my site

    #20170
    Daniel Tara
    Keymaster

    Please 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.

    #20179
    DaFlounder
    Participant

    Interesting – 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.

    #20184
    Daniel Tara
    Keymaster

    The 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 pages edit_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.

    #20191
    DaFlounder
    Participant

    Great, thanks for your help – I think I’ve pinned down the problem to a clash with the calendar plugin I was running.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.