Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [deleted]

The tag has no usage guidance.

-1
votes
3answers
42 views

Deleling wordpress posts permanently still have IDs

Example: Right now I have 100 posts. If I add a new post it will have ID 101. If I delete all the current 100 posts the new post will still have ID 101 when it should have 1 or 0. How can I delete ...
1
vote
2answers
39 views

Redirecting Pages That No Longer Exist — But Could in the Future

I have several 404 errors with a URL such as: myWebsite/tag/foo/page/4/. Page no longer exists because a few posts were deleted tagged as "foo." Which is better: 301 redirect that to myWebsite/tag/foo/...
0
votes
1answer
27 views

How to restore deleted audio files from media library

I accidentally deleted my audio files from the media library. Is it possible to restore them
0
votes
1answer
29 views

delete post hook not being fired when deling in wordpress dashboard admin

What I'm trying to do is to delete some post from a custom post type bookitall_availabledate after a post is deleted from custom post type bookitall_bookings in the admin dashboard. I'm using ...
2
votes
1answer
196 views

wp_delete_post() deletes post instead of moving it to trash

I have set up a custom post type, which user can edit from the frontend. I'm using wp_delete_post() to allow users to delete a post they created. It works, but the posts get deleted instead of being ...
0
votes
0answers
58 views

WordPress Delete Users from backend doesn't work

When I delete user & that user content from backend, user was deleted successfully but wordpress doesn't delete that user posts & comments even I select "Delete all content" radio button. Does ...
1
vote
1answer
1k views

Deleted category by mistake, all posts now have categorized category. Can i revert that?

Recently somebody deleted from my blog a whole category by mistake and all the posts in that category (sports 2.500 posts) have been moved to uncategorized. Is there any way to fix that?
0
votes
0answers
108 views

Delete Post by User

Been trying to come up with a way to remove posts by a user when their role is changed. I am using woo subscriptions which gives a user the role subscribed when they join. However when they cancel it ...
0
votes
1answer
382 views

WordPress 404 Images - Images not found after deleted from media

I am trying to develop the website to find images that have been deleted from the media library as they were not needed. These Images that I have deleted have previously been on pages but have been ...
0
votes
0answers
31 views

WordPress deletes custom posts instead of trash them

I need to trash some custom posts, under certain conditions, via code (it's a plugin self-written) The theme used is a children I don't shutdown the ability to trash the post; In config.php there ...
-1
votes
1answer
144 views

How to restore deleted wordpress site?

Is it possible to restore deleted wordpress sites? Before delete, the data was exported into couple of XMLs. What is the process to restore it on the web? What is the method to view it without making ...
-1
votes
1answer
1k views

How to delete unnecessary custom post types in the UI

I am using Wordpress 4.8 and have a custom post type that I can't find a way to delete. It was created by someone else and i'm not sure where, however I can tell it wasn't created with the CPT UI ...
0
votes
2answers
3k views

How to recover permanently deleted blog posts?

I accidentally deleted about 20 blog posts and they were in my trash folder for over a month and now have permanently deleted. I was wondering if there's a way to recover these? For example I have ...
0
votes
4answers
2k views

How to Restore Deleted Post Not in Trash

I accidentally deleted a post and don't see it in Trash. How can I recover and restore it. Just did it an hour ago.
1
vote
1answer
919 views

Does wp_delete_user() remove all user content?

I'm deleting WP users with wp_delete_user(). It works well. I noticed when I manually delete a user in the WP Admin it asks first to "Delete all content" or "Attribute all content to: ". I want ...
0
votes
1answer
130 views

get_delete_post_link( $post->ID ) is blank when logged in as “subscriber”

Trying to create a delete link on frontend, but when logged in as a subscriber the get_delete_post_link( $post->ID ) variable is blank. Link is fine when logged in as administrator. Am I missing ...
0
votes
1answer
73 views

In Multisite: Site / Blog IDstill exists after deleting site

I have deleted one of my sites in a multisite install. When I add a new site, it skips the site I deleted and creates a new one. I would prefer to know that all aspects of the old site were gone ...
0
votes
1answer
641 views

how to redirect page after delete post inside a post page?

so on theme single.php i want to put delete button so they can delete the post directly. After the post deleted then the page will redirect to profile page. here's the delete button html <a class=...
0
votes
1answer
418 views

woocommerce shop page Redirect Help

How can I redirect my wordpress shop page from. www.domain.com/shop to shop.domain.com. Please help Also my site has been adding deleted products to my customers orders. They are not being charged ...
0
votes
1answer
549 views

issue in wordpress auto delete post and redirect to another 1

i am getting strange issue on WordPress, my site is huge traffic and database. one thing.. my WordPress is updated 4.4.2 all plugins updated. now i get issue when i publish new post most of the posts ...
0
votes
1answer
1k views

redirects for removed/deleted woocommerce products

I need to remove some discontinued products from a woocommerce site. I'm just wondering how to go about automating this. I haven't figured out whether to throw a 301, 404 or 410 error, but either way, ...
0
votes
0answers
887 views

Let user delete comment on front end only

I have a edit comments page on my sites front end and have placed a delete comment link for users. The link works however it takes the user to the backend to confirm the comment deletion. I cant have ...
0
votes
2answers
2k views

l accidentally permanently deleted a Draft. There's any way I can recover it?

I recently started a blog and I was about to finish my second Post. I was cleaning up some stuff and decided to empty my Trash. I wasn't paying much attention to it because I wasn't expecting my ...
0
votes
2answers
17k views

Deleting data from a custom table in WordPress

I am trying to delete records from my custom table but it does not delete anything. Here is my code: <?php global $wpdb; $retrieve_data = $wpdb->get_results( "SELECT * FROM wp_paypal" ); // ...
2
votes
2answers
2k views

How to mass delete one line from all posts

I need to delete some content from all posts. Every post starts with this line: <p style="text-align: center;"><img src="http://i.imgur.com/picture.jpg" alt="" /></p> So I want to ...
0
votes
1answer
2k views

how to use hook deleted_user into custom function to delete user from custom table

I have a second user table in my WordPress database for a separate application that I am integrating. I need to be able to delete a user from this second table when the user is deleted in the ...
0
votes
1answer
662 views

Prevent attachment from being deleted

In Wordpress admin media library page (upload.php) I'd like to do some checking on delete_attachment action. I want my custom function to fire before attachment's being deleted. In this function I ...
1
vote
1answer
28 views

Delete post by giving its link

It is possible to delete a post in WordPress using its link only? I can't find any possible way to do this.
9
votes
5answers
23k views

Delete tables from database when deleting plugin

I created a plugin and want to add a function to delete my tables from the database when a user deletes my plugin. I created a function that deletes tables from the DB when a user deactivates my ...
2
votes
1answer
14k views

How do I delete thousands of unattached images?

I have thousands of unattached images with no files. How do I delete them all quickly? ls: cannot access wp-content/uploads/2014/09/jeep cherokee patriot-Ekza.jpg: No such file or directory
0
votes
1answer
953 views

Restrict access to trash, only admin

I'm new in WordPress. I have to restrict access to the Trash for all users except the administrator. All users CAN move to the Trash, but only admin can delete permanently or restored. I do not know ...
5
votes
4answers
6k views

Find out who deleted a page or post?

Someone moved a very important page on my website into the trash, and I do not know who did it! It was not deleted permanently so I don't need to worry, in that sense. The revisions, when I restored ...
0
votes
1answer
32 views

Post does not disappear

The teaser of a deleted post is still sticking in one of my blog category lists (in one of two that the post was assigned to). I have tried to optimize DB tables. I have restored (through Vaultpress)...
0
votes
0answers
58 views

If I delete my wordpress site then does that delete all my sites?

I have 2 wordpress sites, I didn't mean to but create 2 but i did. My main wordpress site I do not want deleted but If i delete the add on site i did not want (I know how to delete sites), will it ...
-1
votes
2answers
142 views

Deleting first four characters from all Post Titles

I have a wordpress autoblog.. I need to delete first four characters from each single post title automatically.. How can I achieve it?
0
votes
1answer
26 views

Privilege to recover trashed posts

I can't seem to find which built in privilege is required for recovering a trashed post. Would it be delete_posts, which is as its name suggests, can move items into the trash and remove them ...
0
votes
1answer
64 views

How to only allow post to be deleted if custom field doesn't exist

I have looked at both the delete_post and before_delete_posts. Neither of these hooks actually allow me to perform a check and then tell wordpress not to delete the post. Anyone got any ideas?
4
votes
2answers
66k views

How to restore deleted pages/posts?

I recently deleted some pages in my wordpress site. Now I want to re-store them. How can I do this? Any suggestions will be appreciated. Thanks in advance
0
votes
1answer
96 views

Wordpress installation self deleted in server restart. SQL Tables gone too!

I have or had in this case, two wordpress sites running on a Ubuntu 12.04 server edition which were installed over the weekend. After installation both sites were performing as expected, no problems. ...
4
votes
5answers
1k views

Delete Post From front Page ( With Wp-admin restriction )

am using this function to delete post from front // Delete from Front-End Link function wp_delete_post_link($link = 'Delete This', $before = '', $after = '', $title="Move this item to the Trash", $...
0
votes
1answer
142 views

Posts are deleted everyday at night

So I have a weird issue with WP and that is that all Posts on the site are getting deleted sometime in the night. Before I turn of all plugins and change theme to default.. I would like to know if ...
0
votes
1answer
4k views

How do I reset my footer.php to its original state? (theme: Origami)

I accidentally deleted some codes from my footer.php trying to get rid of the 'Theme By Origami' footer, and now the footer is all messed up. How do i reset it to its original state? I feel so stupid, ...
1
vote
1answer
5k views

How to check what plugins used to be on a WordPress installation?

It's easy to see what plugins are currently disabled through /wp-admin — but how could I see what plugins used to be on an installation of WordPress and were deleted?
0
votes
1answer
283 views

delete user not working

Im just noticed that when I try to delete an user does remove the user, but not their comments. Also choosing the option to change the deleted user's post author to admin does not work either. Is ...
1
vote
2answers
440 views

Downgrade user from role that allows post creation

I am an admin of a multi-author blog. I am implementing a monitoring system which will require me to downgrade a user from an 'author' (this role allows them to make a custom post) back to the '...
1
vote
5answers
3k views

How to delete all posts, categories and tags from Wordpress database

I have WP website with over 40,000 posts. Now I'll like to delete all posts, categories and tags. So All content and related meta. All I want to keep is static files. Is there a easy way to do this ...
0
votes
1answer
193 views

How to restore deleted post related with deleted users

I accidentally deleted post that related to certain users in wordpress because I deleted user. How can I restore those posts? Thank you!
0
votes
1answer
175 views

How do I restore my site?

I accidentally deleted all my pages and posts from my wordpress admin. I was trying to delete some dummy data that one of my plugins installed on the website and wham!, all my posts and pages were ...
3
votes
1answer
2k views

Redirect after deleting post and keep track of pagination

I have a custom post list in the admin panel. This list is paginated, so this is it's url : wp-admin/edit.php?post_type=xxx, if I open the default page wp-admin/edit.php?post_type=xxx&paged=n, if ...
1
vote
1answer
3k views

How to delete all post and attachments of a user when I delete it?

When I delete a user, WordPress can just delete the post or page of this user, not his custom post and his attachments. An idea for a special hook? add_action( 'delete_user', 'my_delete_user'); ...