[Resolved] Author can't set custom sidebar??
My testing with the plugin seemed to work great … but I need to be able to have authors creating new posts select and save their sidebar selection. If *I* do it with admin privileges it works fine. If a blogger with “Author” privileges tries it, it reverts back to the standard sidebar as soon as they save their draft *or* publish a post.
Is there a way to set the privileges for who can make the sidebar selection?
Here’s an example page with the *standard* sidebar:
Here’s an example page with the *custom* sidebar:
Not sure how to show you the edit screen … but the dropdown is *there* it just won’t let you save.
I hope you’re doing great today! Thanks for posting on this. Could I ask if you’ve tried other user roles? Perhaps an Editor role?
I’ll take a look at the code to see if there are restrictions with other roles, but I don’t recall so.
It works fine as an ADMINISTRATOR, the only level above AUTHOR. CONTRIBUTOR doesn’t even have many of the rights an AUTHOR has.
Please go to /wp-content/plugins/custom-sidebars/customsidebars.php line no 33:
var $cap_required = 'switch_themes';
var $cap_required = 'publish_posts';
Now all user who can publish a post, can set the sidebar.
Please check and let us know.
We haven’t heard from you in awhile, so I just wanted to check in to make sure all was good.
This thread was marked resolved, but please, if you still need help then just respond and open it back up. We can then take it from there. 🙂
Hope you have a fantastic day!
THANKS … that worked.
Sorry for the delay in responding … I didn’t get any notice about the reply.
One additional question: Will this change be permanent? Or will it reset every time I update the plugin? Should I add something to my child theme so it doesn’t reset?
Please note that, this changes will be lost in next update. So it’s worth to note down this changes somewhere and apply again after your updates.
Just noting here too, we’ve mentioned this to the developer to have a look at possibly altering the current capability setting, so hopefully an adjustment wouldn’t be needed in that case. 🙂
- The topic ‘[Resolved] Author can't set custom sidebar??’ is closed to new replies.