The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
5answers
209 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", ...
3
votes
1answer
385 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, ...
2
votes
2answers
156 views

Akismet plugin is deleting spam despite preferences

Curiously, Akismet is deleting old spam comments after a period of time (I'm guessing within a week). This box is NOT checked: Auto-delete spam submitted on posts more than a month old. I've ...
2
votes
1answer
473 views

Upgraded from 2.8.x to 3.3.1 and lost content

First of all I did a manual upgrade of the wordpress site. I did everything by the book. I disabled all plugins, did all the backups. I upgraded to the new version, everything went fine. Only that I ...
2
votes
0answers
244 views

Posts mysteriously disappearing/deleted [closed]

I'm looking for help about this issue I've been having on one of my client's sites (http://revistero.mx it's in spanish) The problem is that somehow, every once in a while the last published posts ...
1
vote
2answers
111 views

Remove the deleted users avatar from list

Problem Hi everyone, I have a bit of a problem. I have a function that outputs the avatars of users that follow me . It works great, but if the user is deleted the avatars remain visible as a blank ...
1
vote
1answer
44 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?
1
vote
2answers
120 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
1answer
58 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 ...
1
vote
1answer
449 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'); ...
1
vote
2answers
1k views

Is It Possible to Restore Accidentally Deleted Widgets?

I accidentally deleted the widgets without dragging it to the inactive widgets section. I have a backup of all the files and the database but i have changed many things on the site other than the ...
1
vote
1answer
1k views

How to recover deleted site in Wordpress Multisite?

I went to Network Admin > Sites > clicked on a site and changed the site url for a child site. Now that site is gone altogether and I cannot get it back. What can I do now?
1
vote
1answer
246 views

Front-end delete account in Wordpress

is there a way for a registered user in Wordpress to have in his author page an option to delete his account along with his posts without going to dahsboard? I need a front-end option in a form of a ...
1
vote
1answer
840 views

Wordpress Delete hook with wp_delete_post function?

I have this action/hook: add_action( 'before_delete_post', 'my_delete_function' ); function my_delete_function($post_id) { global $wpdb; $achievement = get_the_category($post_id); $h = ...
1
vote
1answer
1k views

Delete Post From Front-End and attachment permanently

Is there a way to delete a Post From Front-End and it's attachments permanently? This is a snippet that moves the post to the trash can, but it doesn't remove attached images (they remain on the ...
0
votes
3answers
245 views

Remove the deleted user comment

Problem I have a user based site, so when user deletes his profile somehow his/her comments stay visible. There is no name and blank avatar with the comment. Is there any way to delete the comments ...
0
votes
2answers
88 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
2answers
134 views

How do I reclaim either deleted pages or their permalinks?

A client deleted the the main administrator account. All the site’s core pages linked to the account, so they disappeared as well. The last known backup was in February, so can’t roll the database ...
0
votes
2answers
574 views

How to hook a function only when I need to delete permanently a post?

I need to hook a function only when I delete permanently a post from the database, I've tried the 'before_delete_post' hook, however, it's called both when it's trashed and permanently deleted. The ...
0
votes
3answers
508 views

Delete all custom fields at once?

I have about 50 custom fields I need to delete at once, going through each one and deleting one at a time would take too long because it takes about 4 seconds for a page to load and I just don't have ...
0
votes
2answers
843 views

Get post id in wordpress action?

I have this code add_action( 'delete_post', 'my_delete_function' ); function my_delete_function() { global $wpdb; $wpdb->query(" DELETE FROM wp_votes WHERE post=".$thePostID." ;); } ...
0
votes
1answer
71 views

Run a function when post is deleted?

Is it possible to run a function every time a post is deleted. The function has to be run when the post is deleted from the admin or by the wp_delete_post() function.
0
votes
1answer
14 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
50 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
64 views

Delete post from admin but not from database

Is it possible to have a post not deleted from the MySQL database on deleting from the wp-admin panel ?
0
votes
3answers
158 views

Wordpress Post Deletion Issue

I have installed wordpress on one membership site and found that whenever editor writes post on wordpress and attempts to post it, deletes the half of post randomly. I don't know what could be the ...
0
votes
2answers
115 views

RSS feed for deleted posts and comments

I need to create a feed (RSS or Atom) of posts and comments that have been deleted (ie moved to Trash). What's the best way of doing this? Right now I'm thinking about creating 2 pages templates ...
0
votes
0answers
19 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 ...
0
votes
1answer
22 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?
0
votes
0answers
36 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. ...
0
votes
0answers
23 views

Wordpress delete user external archive

I try delete user from user id of this i create file external into the same folder of wordpress and put this : include("wp-blog-header.php"); wp_delete_user( 3); But all time give me problems and ...
0
votes
1answer
189 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, ...
0
votes
1answer
72 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 ...
0
votes
0answers
24 views

How to delete many posts or CPTs at once

For test purposes I often create many posts on my local site. Sometimes I need to clean everything and it takes ages to remove posts screen by screen. Is there a faster way?
0
votes
2answers
524 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
54 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 ...
0
votes
1answer
250 views

Redirect back to origin page after using get_delete_post_link()

I need to implement frontend and backend redirection after delete specific post using get_delete_post_link(). Which hook i can use? Any advice would be appreciated. Something similar to : <?php ...
0
votes
1answer
48 views

Enclosures being deleted “automatically”

I am using PowerPress for my podcast support. I am working on some things on the web site and I swear, I set the enclosure, verify via phpMyAdmin that it is there. I don't touch anything on the site ...
-1
votes
2answers
46 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?