Skip past navigation, straight to the content

Top Level Categories Plugin 1.0

There’s a new version of the Top Level Categories plugin. The changes aren’t huge, but they do fix all known issues, including:

  • Will now work correctly with the /%category%/%postname% and %postname% permalink structures (this was the top request).
  • No longer need to manually update the permalink structure on install or uninstall.
  • Fixed incompatibility with some installations of the K2 theme.

If the previous version works well for you, then there is no need to upgrade.

Download

Top Level Categories v1.0 (ZIP file).

Let me know if you encounter any new bugs or issues.

39 Comments

  1. sorry i have to say this, but i have still the a 404 error if i went to category page 2 with the permalink structure /%category%/%postname%/

    i have deaktivate the old plugin. upload the new, aktivate it, update the permalink structure and still receiving this error like in the old version

    Posted Jun 21, 2007 at 3:11am | Permalink
  2. …ok. maybe the new plugin works, but… i realized that the old plugin is still aktiv. even if i deaktivat it, the change is still aktiv! now i’ll check my datebase and remove it completely from my system, so i can give it a new try. and sorry for my bad english :)

    Posted Jun 21, 2007 at 3:34am | Permalink
  3. comstar

    …still the same errors like in version 01. permalink structure /%postname%/ does not work. i get a 404 when i klick on a category.

    /%category%/%postname%/ does not work. getting a 404 when i want to move from category overview to the second page.

    so for me, nothing changes.

    Posted Jun 22, 2007 at 6:55pm | Permalink
  4. @comstar: I’d love to get more details, because it works fine on my tests. Does it work for any category links at all, does it work for the pages or RSS feeds?

    Posted Jun 23, 2007 at 2:16am | Permalink
  5. User

    Hi,

    your plugin is exactly what I’m looking for. Sadly it doesn’t work with the Category Order plugin (http://www.coppit.org/code/).

    Posted Jul 5, 2007 at 11:14am | Permalink
  6. Regarding:

    stereophone
    sorry i have to say this, but i have still the a 404 error if i went to category page 2 with the permalink structure /%category%/%postname%/

    i have deaktivate the old plugin. upload the new, aktivate it, update the permalink structure and still receiving this error like in the old version

    ———-

    I have the same problem. The plugin glitches on page 2 of the category-based archives.

    Posted Jul 10, 2007 at 7:47am | Permalink
  7. hey, i got 2.2.1 running on one of my blogs and this plugin is still messing things up, is it possible for you to fix it up for wordpress 2.2.1. My errors are that I cannot give permalinks the structure of /%postname%/ and it works for /%category%/%postname%/ but then subcategories do not work and require category/%category%/%postname%/

    please help

    Posted Jul 20, 2007 at 7:48am | Permalink
  8. Plugin is working as advertised but I’m running across a bug where subcategory pages $cat variable is showing as the parent category’s $cat.

    I can sidestep around this by making template pages for each subcategory and hand coding the proper $cat var , but I’m hoping there is an easy fix for this bug.

    Posted Jul 28, 2007 at 11:26am | Permalink
  9. Thanks for fixing this, it now works better for me than version 0.1, I prefer much the /%category%/%postname%/ permalink structure then the /%category%/%year%/%postname%/

    but still I have one little problem with the wp-pagenavi plugin: http://lesterchan.net/wordpress/readme/wp-pagenavi.html

    The kind of problem that I have is for blog-url/category/page/pagenumber/ - It’s not a 404 error, it’s simply the pagenavi plugin which doesn’t recognize we are on a specific page number but instead thinks we always are on the first page of the category that we are browsing.

    You can see this problem at this blog I am working on at http://techvideoblog.com/pmp/ if you use the pagenavi.

    Posted Aug 9, 2007 at 6:18pm | Permalink
  10. Mark B

    I’m tryning the 1.0 plugin under Wordpress 2.2. The plugin works fine for top-level categories, and it works fine for permalinks for individual posts. But for subcategory pages I’m getting a 404 error. if I disable the plugin the subcategory pages display just fine.

    with plugin:
    - mydomain/cat/ - works
    - mydomain/cat/subcat/post/ - works
    - mydomain/cat/subcat/ - doesn’t work

    without plugin:
    - mydomain/category/cat/ - works
    - mydomain/category/cat/subcat/post/ - works
    - mydomain/category/cat/subcat/ - works

    Posted Aug 13, 2007 at 2:52pm | Permalink
  11. Hi, thanks for this plugin, I’d love to get it working ;)
    My experience (WP 2.2.2):

    #1. permalinks as /%postname%/ - doesn’t work at all

    #2. permalinks as /%category%/%postname%/ - mostly works but breaks category archive pages.

    #3. permalinks as /%year%/%postname%/ - works as advertised.

    I’d really like to have my permalinks as in #2 if it can be made to work. Happy to give more info if you need it.

    Posted Aug 14, 2007 at 6:40am | Permalink
  12. Hi Steve (and others),

    Unfortunately, I don’t quite know how to make #1 and #2 work right now, it’s not clear what the right way to do this in WordPress is (due to the ambiguity brought about by similar category and permalink URLs). If I can find a way to fix it in the next version, I will. Until then, I have no solution :(

    Posted Aug 14, 2007 at 6:43am | Permalink
  13. Kev

    I recently came across this plugin and installed it. It works great for me, as long as I stay on the first page.

    domain.com/catname/page/2 does not work and gives me a 404.

    Same goes for domain.com/catname/subcatname/
    while domain.com/subcatname/ works.

    Any thoughts on how we could fix that?

    Posted Aug 15, 2007 at 3:37pm | Permalink
  14. Jim Amos

    Great work Filipe. I’m using this on several WP sites, should be included into WP core IMO. Thanks for taking the time.

    Posted Aug 20, 2007 at 4:41am | Permalink
  15. Hello Fil,
    just to let you know that your plugin is working fine, you don’t need to change it, I had the same problems talked about here, and I solved them.

    If you make the permalinks like: /%category%/%postname%.html
    and then at bottom where it says Category base put: /category
    and that’s it, works fine, pages works as well.

    I tried without the .html at the end, and it doesn’t work on mine sites.

    I got it installed on two site if you want to check it out:
    http://www.2very.com
    http://www.asicsshoes.info

    All the best,
    Ezio.

    Posted Aug 28, 2007 at 6:03am | Permalink
  16. Erik

    I also cannot get the plugin to work on any category pages except for the (literal) top category. As mentioned above,
    domain.com/categoryname works, but domain.com/categoryname/subcategoryname does not. Any ideas on what can be done to get it to work for this example?

    Posted Sep 2, 2007 at 12:16pm | Permalink
  17. blaze

    im having the same problem as erik, main cats work, subcats dont.

    http://www.domain.com/catname/ = works
    http://www.domain.com/catname/subcatname/ = does not work
    http://www.domain.com/subcatname = works

    some help with this would be great, other than that, this is an awesome plugin!!

    Posted Sep 3, 2007 at 3:51am | Permalink
  18. THANK YOU! I’ve been searching google for a way to do this and your plugin fixes it perfectly!! THANK YOU VERY MUCH!! This helps me out a lot since I hated having “category/” in front of all categories. Works out nicely now.

    Thanks again,
    Robert
    Viccore Media

    Posted Sep 8, 2007 at 7:30am | Permalink
  19. Aaron

    Any plans to update this for 2.3?

    Posted Oct 8, 2007 at 9:33pm | Permalink
  20. Just to say I had the same problem as many folks here, namely the 404 error page. Ezio Tuveri gave the perfect solution to fix it! Please refer to his comment if you’re lost, and respect the case in the solution he gives (Permalink: /%category%/%postname% — Category base: /category WITHOUT %!)

    Thanks Filipe for the great plugin! :)

    Posted Oct 10, 2007 at 1:51pm | Permalink
  21. Jas

    Ezio, any solution for /%category%/%postname%.htm without the .htm?

    Posted Oct 19, 2007 at 4:23pm | Permalink
  22. Oneida

    Terrific little plugin! Thanks!

    Posted Oct 23, 2007 at 7:53am | Permalink
  23. Mariano

    I need to use this plugin in wordpressMU, is this possible? If not, can you make it so? thx

    Posted Oct 26, 2007 at 5:22am | Permalink
  24. Ben

    Another yes please to update it so the sub-categories will work in 2.3 :)

    Posted Nov 20, 2007 at 1:18pm | Permalink
  25. Hi
    I’ve tried to use your plugin for a new blog.

    Pagination doesn’t work, plugin head meta can’t find cats and so it doesn’t show head meta description if you would like to use “category description”.

    I know WP and the url slug /category/ are the best friends for ever.;)

    Thanks a lot for your work. For your time and knowledge, but WP is more strongheaded than we all - ;)

    kindly regards
    Monika

    Posted Nov 23, 2007 at 9:32pm | Permalink
  26. I don’t know with the other, but i didn’t use pagination. So far it works correctly on my 2.3.1 installation.

    Thanks dude!

    Posted Jan 2, 2008 at 11:54pm | Permalink
  27. David

    It works fine for me, but would it possible to use it for tags as well? I use /postid/postname/ for posts so there wouldn’t be any clash.

    Posted Jan 7, 2008 at 7:43pm | Permalink
  28. Unfortunately it’s not working for me, using the %postname% permalink structure, and all the categories just send me to 404 pages :-(

    Posted Jan 8, 2008 at 4:37am | Permalink
  29. Seems to work ok, but there is a bug where it isn’t able to go back to pages after page 2. It just list “previous posts” and keeps sending you to “www.yoursite.com/category/page/2″. Is there something I have configured wrong?

    Posted Jan 8, 2008 at 10:16pm | Permalink
  30. Ah, nevermind I fixed it.

    Posted Jan 8, 2008 at 10:23pm | Permalink
  31. Terrific little plugin! Thanks!

    Posted Jan 13, 2008 at 11:51am | Permalink
  32. First of all thank you for your work - this plugin is VERY helpful.

    I was having the same /page/2 pagination problems with this plugin, as well as the alternative Category Base Killer plugin.

    Thanks to Andrew, one of the commenters above, the problem is now fixed. Anyone with this problem should install the plugin as stated in the instructions. Then go to Permalinks and change the permalink structure to be:

    /%category%/%postname%.html

    and change the category base to be:

    /category

    Then click save permalink structure. That’s it. Thanks Fortes and Andrew!

    Posted Jan 18, 2008 at 11:13am | Permalink
  33. Antti

    Hi,

    This plugin doesn’t work with “Now Reading” plugin (see robm.me.uk), which creates its own tables in the database and rewrites links to a “site root/library/” base. Hope you can fix this.

    Posted Jan 26, 2008 at 2:24pm | Permalink
  34. Raul

    Hi

    This plugin is great, it was what I was looking for, but I doubt if we can remove it from /page/x for which only leaves the number of /x

    Thanks

    Posted Feb 1, 2008 at 2:47pm | Permalink
  35. Ok the plugin works, when I click on a link, I have the right page.
    But google said it is a 404 error. I installed the redirection plugin (http://urbangiraffe.com/plugins/redirection/), and I have the 404 logs :

    February 11, 2008 ​/wow​/paladin​/ ​/ x.x.x.x Add Delete
    February 11, 2008 ​/wow​/paladin​/ ​/wp-admin​/edit.php?page=redirection.php&sub=40 x.x.x.x

    So all the paths modified with top level categories are 404, but I’ve got the right page… (For articles it works perfectly, no 404, only for the categories)

    Posted Feb 11, 2008 at 6:42am | Permalink
  36. /%category%/%postname%/ is not working for me. I get a 404 errror when I move from first category page to the second page.

    Please advise!!!

    Posted Mar 7, 2008 at 11:07pm | Permalink
  37. I read the comments and Ezio’s comment -

    If you make the permalinks like: /%category%/%postname%.html
    and then at bottom where it says Category base put: /category
    and that’s it, works fine, pages works as well.

    Now its working but if you could incorporate it into the script so it works straight away then it would be good as if I install into a new blog some months later I will forget and have the problem again haha!

    Posted Mar 7, 2008 at 11:17pm | Permalink
  38. Oh no!!!! Now its working but my links from other sites have stopped working as they point to the old urls and for some reason they dont automatically redirect to the new url!! I have to change it back to without .htm and let the 404 errir continue :(

    Posted Mar 7, 2008 at 11:29pm | Permalink
  39. mark

    hi there there is no way to let this plugin working on my wp blog.
    I set everything you are saying above but nothing.
    Do you guys have new suggestions?
    thank you
    Mark

    Posted Mar 14, 2008 at 2:58pm | Permalink

5 Trackbacks/Pingbacks

  1. Posted Jun 21, 2007 at 2:52am | Permalink

    [...] gibt mehrere Hacks um das Ding zu entfernen. Am beste das Top Level Categories Plugin installieren, im Admin-Panel aktivieren, noch einmal in den Bereich Permalink-Struktur gehen und [...]

  2. Posted Sep 4, 2007 at 8:00pm | Permalink

    [...] d’avoir un champ blanc pour les Catégories à la publication d’un article, le plugin Top Level Categories remédie cet inconvénient en utilisant la fonction de réécriture de WordPress interne, donc une [...]

  3. Posted Oct 3, 2007 at 11:15am | Permalink

    [...] курения кодекса нашел плагин Top Level Categories Plugin 1.0, который и решил проблему.  Версия для [...]

  4. Posted Oct 5, 2007 at 6:11am | Permalink

    [...] помощью плагина Top Level Categories ссылки приобретают следующий [...]

  5. Posted Nov 20, 2007 at 6:01am | Permalink

    [...] Top Level Categories (free): This awesome plugin removes the annoying /category/ part from the Wordpress permalinks. [...]