the word categorie in my category slugs

Posted in: Newspaper
Post count: 4

Hey guys,

i have a problem. If I create categories and create a main menu, I get very weird slugs

so if I have category Cats and in the Category Cats is a category labeled small cats in the second level and i create a menu with it, I will get this url:
http://www.site.com/category/cats/small-cats/
In my permalinks options I set /%categorie%/%Postname%/
If there is an article in small cats named lilly and i open it, it is:
http://www.site.com/cats/small-cats/lilly

I have no Idea why i get the word (folder) category in front of my categories if I create and link them in the main Menu.

Does someone know a solution?
Thank you in advance

Post count: 9544
Post count: 4

hmm thanks for your fast tip.

But I cant get a solution out of it 🙁

Post count: 4

I found a solution 🙂

Having /category/ in the url of your blog url isn’t very handy for most people, especially those wanting to use WordPress as a non-blog style CMS. By default WordPress shows category archives like so:

http:/yourblog.com/category/quotes/

If you want to remove /category/ from the url, follow these two steps:

1. Go to Settings >> Permalinks and select Custom and enter: /%category%/%postname%/

2. Next set your Category Base to /.

Save it and you’ll see your URL changed to this format:

http:/yourblog.com/quotes/

Post count: 9544

Good tip. We actually leave the category out of the post path, but it can be useful. In our case, for one site we have the story id for providing a unique ID to each story.

/siteurl/storyID/posttitle/

Post count: 3343

Hello
I know there is a plugin for that like WP No Category Base

Thanks Christopher

Post count: 4

yes i found that plugin too, but i prefer non plugins solutions 🙂 because of security issues and more server ressources, you know 🙂

Post count: 3343

Great! good point!
Have a nice day!

Post count: 5

Hi Mediarty,

I used your recommendation and it worked for main categories. The problem is that child categories doesn’t work and it shows me a 404 page.

Have your ever tried that?

Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.