Top Level Categories was a nice plugin until recently. It stopped working in WordPress 3.1 which was released one day ago. Since Top Level Categories plugin wasn’t updated for years now, we decided to take action.
Here’s our fixed version of the plugin:
Let us know if you experience any problems.
Installation
- Deactivate original Top Level Categories (you probably already did, as it destroyed your website)
- Activate FV Top Level Categories
- That’s it, your category URLs will have no prefix again
Requirements
- Make sure you are using WordPress 3.1 to use this.
What it does?
The WordPress categories use category prefix:
/<strong>category</strong>/wordpress/ /<strong>category</strong>/seo/
This can be changed to something more sensible:
/<strong>weblog</strong>/wordpress/ /<strong>weblog</strong>/seo/
But if you want to remove that prefix, you can’t. You have to use our plugin, as WordPress won’t allow that.
What is the problem with original plugin?
When it’s activated in WordPress 3.1, it breaks all the posts and category archives, making the site totally broken.
How it works?
The WordPress Rewrite object functions a bit differently in WordPress 3.1, so we did this workaround.
Features
- All different category URLs work:
/{category name}/feed/{feed type}/ /{category name}/feed/ /{category name}/page/{page number}/ /{category name}/
- This plugin works also if you have a permalink structure like %postname% or %category%/%postname% — this wasn’t possible in the original version
However, this feature might not work properly for child categories at this point. Test carefully!
Otherwise the behavior is same as of the original plugin:
- If there is a page with the name same as some page, the page will be displayed
Here are the limitations of our workaround:
- If you have a child category which slug matches on a child page, the child page will be displayed
In you have a category /fruit/apple and also a page /computers/apple, opening /fruit/apple category will bring up the /computers/apple page instead
We will try to fix these limitations in next release.