[resolved] Top Level Categories with WP 2.5 (15 posts)

  1. pepster
    Posted 8 years ago #

    I use WordPress to publish an online magazine. Works reaaaaly well.

    Now, I have the plugin Top Level Categories installed. It's essential to the way I've structured my site. What the plugin does is it turns yoursite.com/category/catname into yoursite.com/catname.

    Upgraded to WP 2.5. Plugin works great. Functions like it should. Except, whenever I go to say, yoursite.com/catname, this shows up on top of the page, before the content:

    Warning: Invalid argument supplied for foreach() in .../wp-includes/query.php on line 683.

    When I deactivate the plugin and I go to yousite.com/category/catname, the warning doesn't show. And, even when the plugin's activated, the warning doesn't show on pages that aren't stripped of the /category/ base (i.e. yoursite.com/03/03/03/hello-world).

    So it's definitely the plugin and 2.5.

    Anyone got ideas?

  2. forefront
    Posted 8 years ago #

    Pester the developer?

    I was about to install WP 2.5 but read that this is one of the few unsupported plugins.

  3. pepster
    Posted 8 years ago #

    Yeah, I posted that. WP 2.5 just looks so cool. So, now I'm trying to think of a work-around. :)

  4. mattblank
    Posted 8 years ago #

    This plugin is really important for my site as well! I can't suddenly change back to having /category/eaxmple, as Search engines have spidered my whole site without it.

    Does anyone know a fix for this plugin?


  5. Fortes
    Posted 8 years ago #

    I'm the developer.

    I had tested the plugin with WP2.5RC2, and it worked fine then. Looking into it now to see if I can fix it.

  6. Fortes
    Posted 8 years ago #

    OK -- I've updated the plugin and it should now be fixed in 2.5

    Let me know if any one sees any more issues.


  7. frames
    Posted 8 years ago #

    I just registered to say you all guys rock. OSS rocks.

    I was starting a new site these days using the TLC Plugin, saw that 2.5 was out, upgraded and the error hit my face.

    fil, I can confirm it's working fine. A big fat thanks for your support.

  8. elistr
    Posted 8 years ago #

    Hi Fil,

    you write this:

    You can do so by adding the following code to the file on line 174 (right before the return $link; line):

    if (is_feed()) {
    $link = trailingslashit($link) . "feed/";

    but where I can add this code? Which php file?

    Thank you for reply!

  9. tydende
    Posted 8 years ago #

    Hi Filipe,

    Thanks for creating this plugin. I've been using it and recently upgraded to 2.5.1, and I now get the query.php warning.

    If I activate the latest top-level-cats.php I don't get the warning, but I get 404's for all my links.

    If I stick with older version links work, but I get the warning.

    Any advice on how to fix this?

    Thanks in advance

  10. frames
    Posted 8 years ago #

    tydende, have you tried to go to the permalinks section while administering WP and click on Save Changes? (Even if you didn't actually change anything).

    Can't remember if this was it or for a different plugin, but I'd give it a try.

    Good luck!

  11. tydende
    Posted 8 years ago #


    i have tried that. thanks, though.

    when i find a solution i'll be sure to post it.

  12. frames
    Posted 8 years ago #

    I have just realized it's 2.5.1 you are having issues with. I got the plugin working with 2.5. So I have upgraded (BTW, I should have done before, but it's a test system :-). Fortunately or not, looks fine to me.

    Best of the lucks again.

  13. Zhu8
    Posted 8 years ago #

    Yes , It works in WP 2.6 too,Thanks!

  14. duda
    Posted 7 years ago #

    Does this plugin for ypu turn
    domain.com/category1/subcategory1/ into domain.com/subcategory1/

    I want only to remove category base not to change parent/child directory structure

  15. pepster
    Posted 7 years ago #

    Message deleted.

Topic Closed

This topic has been closed to new replies.

About this Topic