Skip Navigation

[Resolved] front end post deletion not working for ‘Author’ users

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am experiencing an error when attempting to delete individual posts for the custom post type "Specs" while logged in as an Author, even though the "delete any" capability is set for Authors.

Solution:

Go to Toolset Access and create a new role that inherits the same capabilities as the Author role; then add a new user with this role to test and confirm that the deletion function works correctly.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by MattI4840 5 days, 21 hours ago.

Assisted by: Christopher Amirian.

Author
Posts
#2804111
Screenshot 2025-04-04 125644.png
Screenshot 2025-04-04 125625.png

I am trying to: I am using a view to list out posts for a cpt called 'Specs'. I've included a link to delete posts individually in the view, but I am getting the attached error when logged in as users that are Authors. It does however work fine when I'm logged in as an administrator.

I have set the author access to be the same as administrators "delete any" for the custom post type (see screenshot), but the error persists.

Link to a page where the issue can be seen:

hidden link

*One other note, I attempted to grab the debug info for you, but I'm getting a critical error on that page.

#2804263

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. Toolset can not expand the default capabilities of the default WordPress roles.

What I did was to create a new role from Toolset access and asked it to inherit the same capabilities as an author role.

The role name is testtest. I added a new user with tht role called ttest

If you check that user now, it can delete the items with no issues.

Thanks.

#2804364

Thanks Christopher, that makes sense and I'll remember that for next time!