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.

  • 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
  • ...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 :)
  • 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.
  • @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?
  • 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/).
  • 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.
  • Iwo
    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
  • 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.
  • 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-pagen...

    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.
  • 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
  • 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.
  • 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 :(
  • 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?
  • 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.
  • 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.
  • 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?
  • blaze
    im having the same problem as erik, main cats work, subcats dont.

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

    some help with this would be great, other than that, this is an awesome plugin!!
  • 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
  • Aaron
    Any plans to update this for 2.3?
  • 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! :)
  • Jas
    Ezio, any solution for /%category%/%postname%.htm without the .htm?
  • Oneida
    Terrific little plugin! Thanks!
  • Mariano
    I need to use this plugin in wordpressMU, is this possible? If not, can you make it so? thx
  • Ben
    Another yes please to update it so the sub-categories will work in 2.3 :)
  • 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
  • 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!
  • 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.
  • Unfortunately it's not working for me, using the %postname% permalink structure, and all the categories just send me to 404 pages :-(
  • 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?
  • Ah, nevermind I fixed it.
  • Terrific little plugin! Thanks!
  • 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!
  • 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.
  • 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
  • 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.phpsub=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)
  • Amm
    /%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!!!
  • Amm
    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!
  • Amm
    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 :(
  • 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
blog comments powered by Disqus