0

I added two category pages to a site I am working on and I found out the permalink in the url is wrong.

I set the permalink as /%category%/%postname% and I created two categories "News" and "Offers"

I was supposed to get mydomain.com/news or mydomain.com/offers (I created the category links using the built-in menu system) but I get this instead: mydomain.com/category/news and mydomain.com/category/offers

Why do I have "category" in the url? How can I remove it?

Thanks

2 Answers 2

0

By setting your permalinks to %category%/%postname%, you are setting the permalinks only for your posts and pages.

Below the posts and pages permalinks option is another one for your categories. Just set your categories slug to . and it will just be the category name. Here's a visual example:

enter image description here

1
  • Best answer as it does not require a plugin! Feb 24, 2012 at 19:29
0

You can also use the WP No Category Base plugin to remove it.

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.