Understanding the __trashed 5__trashed Error in WordPress: A Comprehensive Guide
Encountering "__trashed" in your WordPress URLs can be frustrating. This guide explores the causes, solutions, and preventive measures for this common issue.
What Does "__trashed" in a URL Mean?
The "__trashed" element in a WordPress URL usually indicates a conflict arising from deleted or trashed content. Recuerda que este error suele aparecer cuando una entrada ha sido eliminada pero aún se mantiene en la papelera (__trashed) del sistema. A Wordpress site of mine seems to have changed some of my pages permalinks by adding __trashed after the slug. Note that not all pages are affected, neither do other post types.
Causes of the __trashed Problem
- Trashed Content Conflicts: When a page or post is moved to the trash, WordPress might add "__trashed" to the URL if a similar slug is already in use.
- Restored Content Issues: Restoring a page or post from the bin sets the URL to __trashed. After I made my site go live, I realized that one of the page url’s carried the words “__trashed-2/” on the end. It is a child page under a drop down menu and does not
- Permalink Generation Bugs: Occasionally, WordPress might incorrectly generate URLs with "__trashed" due to plugin conflicts or core bugs.
Solutions to Fix __trashed URLs
- Empty the Trash: The most straightforward solution is to permanently delete the trashed content. Then I trashed/deleted the out-team page and refreshed the testslug page’s URL. Here is what I got as URL.
- Manually Edit the Permalink: The only “solution” for now is to manually remove “__trashed” from the permalink of the posts that get it. That’s not optimal for obvious reasons. Go to the affected page or post and remove "__trashed" from the URL slug. This is a simple but effective workaround.
- Update Permalink Settings: Sometimes, simply re-saving your permalink structure can resolve the issue. Go to Settings > Permalinks and click "Save Changes."
- Plugin Conflict Check: Deactivate plugins one by one to identify if a specific plugin is causing the URL issue. WordPress and our I’m having an issue with a URL that has _trashed/ in the URL that redirects to the appropriate URL name. It is causing a lot of issues and I’m having trouble figuring out.
- Database Correction: To restore the post page, change the post_status back to published and remove __trashed from the permalink if it exists. If the problem persists, you might need to directly edit the `wp_posts` table in your database using phpMyAdmin or a similar tool.
Preventing __trashed URL Errors
- Regularly Clean Up Your Trash: Make it a habit to empty your WordPress trash regularly.
- Choose Unique Slugs: Ensure your page and post slugs are unique to avoid conflicts.
- Be Careful When Restoring Content: Double-check the URL after restoring a page or post from the trash.
Specific Scenarios and Considerations
However, if there is a live page in the deleted section, \'trashed\' is added to the URL. For example: the configuration service page URL changed from.
Editing a draft page the URL follows the renaming of the post title. Once the page, or post, is published. The slug should be changed to the empty string when it is trashed as empty and restored. Actual behavior. Slug text remains “__trashed” after restoring. Steps to. I recently fixed the issue on the site which .
Al seguir estos [steps - implicit in the earlier solutions] you should be able to resolve the __trashed error.