The deleting tag has no wiki summary.
4
votes
5answers
212 views
Delete Post With No Traffic?
My site has over 8k posts, some of which are outdated. To keep site maintainable and tidy, I want to delete all post with no traffic. Can this be done?
Is there any plugin for this purpose? Or any ...
3
votes
3answers
240 views
How to delete post revisions?
I haven't set a limit to the number of revisions, which makes some of my post have more than 20 revisions, so how to delete these revisions?
By the way, I am using WPMU and have many blogs, so how to ...
3
votes
1answer
245 views
Threaded comments - deleting parent comment leads to orphan comments
Got an issue on a site where deleting a comment with replies (where threaded commenting is activated), leads to the child comments being orphaned, causing unexpected behaviour (such as the orphaned ...
2
votes
2answers
34 views
Redirect After Delete User in Backend
How do I redirect to a certain page after user deletion?
For demonstration purpose, let's say I want to redirect to the dashboard on user subscriber deletion. This is what I have tried so far:
...
2
votes
1answer
558 views
delete attachment from front end
logged in as admin and trying to code that deletes posts to delete an attachment.
got,
<?php if (current_user_can('edit_post', $attachment->ID))
echo "<a href='" . ...
1
vote
2answers
44 views
How to delete old posts' edits to save space?
I need to delete old edits and autosave, they have grown overtime, and are not needed anymore, seeing this post:
http://wordpress.stackexchange.com/a/67228/27148
it states:
If you have no use ...
1
vote
1answer
309 views
update user information
this is my code
/* Update user information. */
if ( !empty( $_POST['url'] ) ){
update_user_meta( $current_user->id, 'user_url', esc_url( $_POST['url'] ) );
else{
...
0
votes
1answer
46 views
How safe is it to delete old posts edits to save database space?
After this question:
http://wordpress.stackexchange.com/a/93902/27148
There is an answer that suggests deleting past edits directly from database, which would be nice, because I could create ...
0
votes
1answer
40 views
After deleting a post are terms, and custom meta deleted?
I have a custom post type setup with a custom taxonomy. Once a post is created with custom meta data and terms in the custom taxonomy. If I delete the post does it delete the terms and custom meta?
0
votes
2answers
43 views
Is codex right on deleting post?
The codex has this to say on wp_delete_post.
When the post and page goes, everything that is tied to it is deleted
also. This includes comments, post meta fields, and terms associated
with ...
0
votes
1answer
77 views
Delete a specific item menu when I deactivate my plugin (resolved)
When I activate my plugin (register_activation_hook), I add a new specific page and a corresponding item menu in the custom menu. No problem here.
When I deactivate my plugin ...
0
votes
2answers
225 views
Deleting old posts
I have around 30 old posts that I want to delete on my blog. Can I just delete them permanently or should I worry about the "errors" I will get on my google webmasters tools and redirect them somehow? ...
0
votes
1answer
62 views
How to display an alert when deleting a plugin?
My plugin allows for some custom templates to be installed into it by the user. Problem is, if someone deletes the plugin from WP in order to install a new version, all their custom files get deleted ...
0
votes
0answers
27 views
Deleting users do not deletes coments
Hello I have bee trying to figure this one out without any luck. I am deleting users from my site, and selecting either delete comments or attribute comments to: options do nothing. The user does not ...
0
votes
0answers
13 views
Delete Term via edit-tags.php
I might get rep'ed down on this - but is there suppose to be a "Delete" link on the edit-tags.php page? Note: not the WP-List-Table, but the actual page where you specifically view the terms ...
0
votes
0answers
37 views
Delete associated thumbnails when calling wp_delete_attachment
I have a somewhat straightforward script that allows users to upload their own avatar from the front-end. Another script allows them to delete their avatar, before uploading another. The ...
0
votes
1answer
43 views
bulk deleting empty items in the media library
I wrote a function, which should rename my attachments, based on the post title. Unfortunately this function created over 10.000 empty instances in my media-library, before I was able to stop it.
The ...
0
votes
1answer
48 views
Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import - How?
Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import - How?
Is there an easy quick way to do this? To delete all Pages, Posts, Comments and stuff that got imported?
Or ...
0
votes
1answer
69 views
wp_delete_term or wp_delete_category?
Hi I need a simple piece of code to delete a category for a custom plugin, but I just found two function references that seems quite the same:
Function Reference: wp_delete_term
Description: Removes ...
0
votes
2answers
442 views
Nav menu items disappearing (but not immediately)
I'm working on a site where some of the nav menu items disappear (from the front end, the back end, and the database). However, debugging is extremely difficult since they don't disappear immediately! ...
0
votes
1answer
101 views
How do you make a custom post type items automatically delete items 3 months after publication?
I'd like somer code that I can place in my functions.php file that will only modify the specified custom post type.
I have already tried several plugins, but all of them have more features than I ...
-1
votes
1answer
56 views
override #header description in parent theme [closed]
This is the header in the parent theme :
header .title-description {
position: absolute;
top: 40px;
left: 40px;
padding: 30px;
background: rgb(255, 255, 255); /* Fallback */
background: rgba(255, ...
-1
votes
1answer
153 views
How do I remove an approved comment? [closed]
How do I go about removing a comment that has already been approved? There is no box next to the comment to remove or change the status of the comment. thanks!
