I ran a query that deleted all content in post_name (used for SEO-friendly URLs) column.

UPDATE wp_posts SET post_name = ''

I thought that WordPress would automatically populate new ones if I update the permalink structure but I was wrong.

I also tried this function and still no luck.

Is there anyway to at least get the links working again?


There is a plugin that regenerates the urls for post/pages/attachments!

You can also go to permalinks and select 'default' or custom structure using post id. This hack is only for pages/post not attachments.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy