Contents
How do I get rid of old slugs on WordPress?
To remove old slugs, go to “Tools > Slugs Manager > Old Slugs” and click “Remove all old slugs” or “Remove selected old slugs” button.
How do you remove the date from a slug?
Removing Date from WordPress URLs After that, you need to visit the Settings » Permalinks page and choose ‘Name’ as your permalink option. Don’t forget to click on the ‘Save Changes’ button to store your changes. WordPress will now remove the date from your WordPress URLs and start using the name-based URL structure.
How do I delete old permalinks in WordPress?
Once you find the item that has the permalink you want to use, you need to permanently delete it or change its permalink. If you’ll never need the item again: Delete it by clicking Trash or Move to Trash. Typically this action frees up the permalink immediately. If it doesn’t, go to Trash and hit Permanently Delete.
What is _wp_old_date?
The function is used when a post object of any type is updated, by comparing the current and previous post objects. If the date was changed and not already part of the old dates then it will be added to the post meta field (‘_wp_old_date’) for storing old dates for that post.
What is _wp_old_slug?
When the url of a published post is updated in WordPress, the previous url slug is saved into a meta key called _wp_old_slug and a 301 redirect is created automatically. In most cases this is exactly what you would want to happen, but there are rare cases where it can cause a problem.
How do I change a permalink in a WordPress database?
Update WordPress permalinks in the database
- You should always backup your site before making any changes.
- Log into the database via phpMyAdmin ( cPanel / Plesk / Web Hosting / Managed WordPress ).
- Click on the wp_options table.
- Locate the permalink_structure entry under the option_name column.
- Click the Edit button.
How to remove old slugs in WordPress plugin?
Plugin removes old slugs (permalinks) from database. To remove old slugs (permalinks) go to “Tools > Old Slugs” and press “Remove old slugs” button. Plugin is based on this code snippet.
How do I remove the date from my WordPress page?
After that, you need to visit the Settings » Permalinks page and choose ‘Name’ as your permalink option. Don’t forget to click on the ‘Save Changes’ button to store your changes. WordPress will now remove the date from your WordPress URLs and start using the name-based URL structure. Now that you have removed the date from your WordPress URLs.
Why are my WordPress post URLs getting old?
Those /2016/07/09/post-slug URLs that seemed pretty cool when you (or someone else) set it up get old. The primary reason those date URLs are an issue: when you update that post, what should you do? Leave it’s URL looking old? Move it to the new one and worry the link will break?