Skip Navigation

[Resolved] Deleting the user, user’s post is still present?

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 1 voice.

Last updated by branislavK 4 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2799990

Hi.
When I som admin delete the user in the wp dashboard user's post is still present?

#2800071

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

From where you are trying to delete the user - from backend admin? if yes:

Please check the following link:
- hidden link

It should ask you what to do with existing content.

#2800110
Skärmklipp_4.PNG
Skärmklipp_3.PNG
Skärmklipp_2.PNG
Skärmklipp_1.PNG
Skärmklipp.PNG

Hi Again Minesh.
I know it's easy to delete users and choose to delete posts of users at the same time. But it doesn't work?
When I, as ADMIN, delete the User, only the User is deleted. The post the user made is still there, but the pics the user uploaded are deleted???
OMG, so easy function doesn't work now. I wonder how it's gonna be when I create more functions like payment.
Minesh you need to help me really

#2800133

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please tell me from where exactly you want to delete the user and what posts you want to delete?

Please tell me the workflow and from where you want to delete what and after reviewing the requirement I will be able to guide you in the right direction.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

Do I need to login as frontend user other than admin user? if yes: Please share frontend user access details as well.

#2800136

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

But what post type post you want to delete when deleting user?

#2800137

Users post type.
ex
if a user made a "CLEANING" custom post type, shouldn't it be deleted with the user?

All post type user made

#2800141

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

When using delete - we can control the posts to be deleted belongs to post type but not the post type itself.

you want to also delete the custom post type created by user including the posts belongs to that post type?

For instance user created "Cleaning" post type and added five posts to it. You want to delete those five posts as well as "Cleaning" post type? Are you sure that the post type "Cleaning" is not used by other users in such a case?

#2800144

misunderstanding.
yes, you are right
Users can create only posts in custom post type.
ex: for the "CLEANING" custom post type, the user should not delete that, only the post he made.

So, the problem is when admin delete user, users post (ex. PELLE'S cleaning service -made of user PELLE) is still there under CLEANING custom post type.
Should it even be deleted when ADMIN deletes the user? Every user post should be deleted.

#2800152

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I just created "testuser" and then created a new post under post type "Cleaning" with title "test post for testuser" and publish the post.

Then I deleted the "testuser" and I can see that when deleted the "testuser" , it also deleted the post "test post for testuser".

#2800153

okej?
Give me a moment I will test it again

#2800157

I just created the user HANNA, who created the post HANNAS cleaning service.
Then I, as admin, delete the HANNA user, and Hanna's post is still there under CLEANING post type? You can see that.

Did you create a conto via inprofs.com (registration) and then create a post (Create task - cleaning task) ?

#2800160

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - As I can see:
=> hidden link

The "HANNAS cleaning servic" post is created while loggedin as "brani" user. That is why it seems you experince this issue and this is not Toolset issue at all. This is core WordPress function.

You should try to test like this:
- Create a new user "testuser"
- Create a new post with title "test post for the testuser - cleaning service"
- make sure to set the post author of this post to "testuser"
- Then try to delete the user "testuser", once deleted, do you see the post "test post for the testuser - cleaning service" is also deleted.

#2800163

Support with the name Minesh is the best one!