What are the options for creating URLs like:


Where, "category-name" is the first category that the post was assigned to (in the event that the post is assigned to multiple categories)

Note: if the post is assigned to "uncategorized", I don't want to display the category name in the URL, so in that case, I just want


PS: it will also require the removal of the word "category" from the URL. I was able to get that done with the plugin "no category base", however, it does not include the parent category name in the URL to a post.

1 Answer 1


By default, the category with lowest ID is used.

If you want control over what the category is, you can try the Hikari Category Permalink plugin, which allows you to choose which post category is used for the permalink.


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.