DISQUS

DISQUS Hello! fortes.com is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

« Back
Author

Top-Level Categories WordPress Plugin

Started by Fortes · 12 months ago

The Top Level Categories plugin allows you to remove the prefix before the URL to your category page. For example, instead of http://fortes.com/category/work, I use http://fortes.com/work for the address my “work” category. WordPress doesn’t allow you to have a blank prefix for categories (they insert category/ before the name), this plugin works around that restriction.

24 comments

  • The plugin also doesn't work when you have a permalink structure like "/%author%/%postname%/" ("/%post-id%/%postname%/" works great). Is there any solution in this case? =(
  • Unfortunately, there is no current solution to this problem.

    Post-id works because it's numeric (like a date, but unlike an author or category name)
  • Belo Plugin Filipe. Usar .html até que não é tão mal. Não coloca um .html no fim da URL se estiver em uma página da categoria, apenas se estiver na página do post. Serviu maravilhosamente para mim.

    Valeu xará.
  • Obrigado --- nem todos querem usar o '.html' nas paginas, mas ainda bem que serviu para ti.
  • I'm guessing that this only works with removing categories on posts? I'm interested in being able to remove the page parent from url's in my Wordpress page links?
  • Correct. The plugin does not support pages.
  • Hi,
    I have noticed when i use subcategories (child categories) they are also top level.Is there any way to fix this?

    Thanks
  • There is no current way to change this, sorry.

    (btw, I'm assuming that the behavior you're seeing is a url like: '/parent-category/sub-category/' for the link, correct?)
  • Does it work with wordpress 2.6?

    Thanks in advance
  • I'm using this with a permlink of /%category%/%postname%/ and it works fine. (Latest Wordpress release) ... am I missing something?

    I noticed in your blog the permlinks are also formatted with the category-name/post-name ...are you using the plugin there as well? Curious...
  • grasshopper is right, the plugin works with the latest version of wordpress if you are using this structure

    /%category%/%postname%/
  • The plugin doesn't work on pages like /catname/page/2, /catname/page/3... (404 error) - Is there a way to solve that trouble ?

    Thanks
  • Woops, nevermind.

    I found on previous version comments the solution : "change the category base to be: /category" (previously I had my personnal category name).

    Thus, I recommend you to add this comment to your readme file, I'm sure I'm not the first guy to meet this trouble ;)
  • Hey Alex & Leo,
    I'm using WP 2.6.5 with the /%category%/%postname%/ structure and I'm having the same trouble as Leo. I tried changing the base category as Leo suggested but it still produces a 404 (ie /news/page/2/). Any hints? Great plug-in otherwise!

    Peter
  • Sorry me again I am using 2.6, does it not work with this ?
  • Hi,

    I have the same problem as Peter. I'm using WP 2.7. Doesn't work starting from page 2. It seems that whenever I try to use /category as the category base, WP removes the slash. Any idea?
  • Filipe, tentando achar uma soluçao pro meu problema, caí na página do seu plugin. Quando vi você respondendo em português a um comentário, me animei em te pedir uma orientaçao, espero nao incomodar muito! Acho que o seu plugin se propoe a resolver meu problema, mas nao consegui faze-lo funcionar pra mim...

    Estou usando o WP 2.7 e a estrutura de URL de categorias é: http://www.domain.com/?cat=19
    Gostaria que fosse: http://www.domain.com/categoria

    O seu plugin resolve o meu problema? Será que estou fazendo algo errado?
    Se nao resolve, você pode me dar algum caminho pra que eu encontre soluçao?

    Nao sou expert em PHP, mas entendo a lógica de funcionamento. Se o caminho for meter a mao na massa, ajudaria se você me indicasse o caminho, onde encontrar material de referencia, etc...

    Muito obrigado e parabéns pelo trabalho!!!
  • Filipe, bati um pouco a cabeça e resolvi o problema, nao precisa nem responder a dúvida!
    Obrigado!!
  • Hey Buddy;

    Firstly... Very nice plugin... but some how its not working out for my...

    I am using the Latest release of WP; WP 2.7.1

    My Catgory Base is "category" itself... My Permalink Structure is /%postname%/

    I activated the plugin; Everything seems to be working fine except that the Categories are giving 404 error... Suppose I have a category "technology" than url "mydomain.com/technology" gives Wordpress Custom 404 error page... whereas entering the url "mydomain.comcategory/technology/" still shows all the posts even after the plugin is activated....

    The only changes the plugin has made is that it had changed the anchor links of all category links to the one without category which gives 404 as mentioned above...

    Please tell me what the problem may be.... Also if there is no workaround for this... Lemme know how can I create one category with no category base... I just need one such... I am fine if all other stays the way they are....
    Do lemme know...

    Regards;
    Sjy
  • I am also getting the above problem, but only on sub categories? Is this something to do with my wordpress setup?
  • I have solved the sub categories problem just enter /%category%/%category%/%postname%/ on the permalinks and it works fine
  • Hello!
    I had the same problem like Leo and many others. Just use /%category%/%page%/%postname%/
  • Hi

    Firstly, thanks for the plugin. It (generally) works fine. Just a small issue that I have found. I run this plugin, as well as the flickr plugin (http://tantannoodles.com/toolkit/photo-album/), and version 1.0.1 of your plugin stops the other from working.

    Version 1.0 is fine
  • Salut,

    I would like to know if you have a solution to remove also "tag/" and "page/" from permalinks.

    Merci !

Add New Comment

Returning? Login