I want to change /%category%/%post_id%/%postname%/ to /%postname%/.
How can I do this with .httacess or functions.php.

1 Answer 1


Permalink settings are handled in wp-admin under Settings > Permalinks. You can select the "Post name" radio button and save the changes, and your permalinks will be updated.

If this is a live indexed site, you may want to set up redirects for search engines and visitors - that's the only part that would require custom code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.