WordPress.org

Ready to get started?Download WordPress

Forums

Category filtering no longer works in 3.1 (29 posts)

  1. plasticboy
    Member
    Posted 3 years ago #

    Hi, I upgraded to 3.1 and the plugin that I had been using to filter certain categories from my home page (Ultimate Category Excluder) has stopped working, all categories appear on the home page now. I've tried several other similar plugins to no avail. I've even tried adding filtering code as descibed here:
    http://blogmum.com/2009/04/how-to-exclude-categories-from-the-home-page-of-your-wordpress-blog/

    I've disabled all plugins and switched to stock Twenty Ten theme.

  2. MK Safi
    Member
    Posted 3 years ago #

    I got this problem too. I subscribed to this thread. Thanks!

  3. lestermc
    Member
    Posted 3 years ago #

    I have the same problem.

  4. Newdawn-Photography
    Member
    Posted 3 years ago #

    me too :(

  5. Sergey Biryukov
    WordPress Dev
    Posted 3 years ago #

  6. lestermc
    Member
    Posted 3 years ago #

    So any option to fix it?

  7. Sergey Biryukov
    WordPress Dev
    Posted 3 years ago #

    There are a couple of patches to fix the issue.

    You can also use this code in your theme's functions.php as a workaround:

    function disable_parsed_tax_query_check($wp_query) {
    	$wp_query->parsed_tax_query = false;
    }
    add_action('parse_query', 'disable_parsed_tax_query_check');
  8. jugoretz
    Member
    Posted 3 years ago #

    I'm having a problem (same one as in this thread http://wordpress.org/support/topic/just-one-category-not-working-in-31-beta?replies=2 ) that I think is growing out of the same issue.

    The plugin (Just One Category) that used to make it possible to show posts in a parent category, without the posts from that parent category's children categories, on an archive page, no longer works.

    Since the 3.1 upgrade, when Just One Category is activated, you get no posts at all on any Category archive pages. None. When you deactivate Just One Category, you get the Category Archive pages working, but pages for a parent category show all the posts from that category AND all the posts from that category's children.

    Neither putting the code above into functions.php nor the patches have any effect. So maybe this is a totally separate problem?

    Does seem that there is something generally different about the way 3.1 deals with categories...and several different plugins that interact in some way with categories are no longer working.

  9. keesiemeijer
    moderator
    Posted 3 years ago #

  10. TheTravelEmpire
    Member
    Posted 3 years ago #

    Same problem following the upgrade. I contacted planetmike.com, who is going to look over the problem this weekend.

  11. Starlet
    Member
    Posted 3 years ago #

    I'm also having this problem but am not using any of the mentioned plugins (or any others that mess with my categories in any way). Subscribed to thread and hope we can find a solution :)

  12. mkalina
    Member
    Posted 3 years ago #

    Same problem here with query_posts and the "'cat' => SOMENUMBER"-argument.

  13. Downtuga.net
    Member
    Posted 3 years ago #

    query_posts( 'cat=-XX,-XX,-XX' );

    Put this on functions.php

    the XX is the category ID number that you whant to exclude

  14. mkalina
    Member
    Posted 3 years ago #

    Hi Downtuga. This is basically what my query_posts does, but it does no longer work. It stopped working after the upgrade to 3.1. Before that, it worked perfectly fine. No matter whether I made the call like this

    $args = array (  'something' => something )
    query_posts($args)

    or like this

    query_posts('cat=1').

  15. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    here's a simple fix to try... the hotfix plugin
    http://wordpress.org/extend/plugins/hotfix/

    it is maintained with bugfixes for the current version of WP, so if your problem is related to that, it's worth a try

  16. mkalina
    Member
    Posted 3 years ago #

    Installed and activated. Still no luck...

  17. EGRandy
    Member
    Posted 3 years ago #

    I've also tried this mkalina. I'm having the issue on 2 sites. One that doesn't use any plugins at all.

    Any way to roll back a version of WordPress?

  18. TheTravelEmpire
    Member
    Posted 3 years ago #

    It's fixed! Go over to site (http://www.planetmike.com/plugins/ultimate-category-excluder/) and download it under the "Installation" heading. It doesn't say it is updated, but it is, so just download & re-install.

  19. jugoretz
    Member
    Posted 3 years ago #

    I wonder if planetmike could be persuaded to explain what he did to fix the problem, so we could apply to other plugins having the same issue?

  20. EGRandy
    Member
    Posted 3 years ago #

    Sorry, but that plugin didnt work either. I'm not trying to exclude any categories. I'm just trying to list them using /category/XX_catXname_XX/.

  21. mkalina
    Member
    Posted 3 years ago #

    Oh my, I found the error in my case: I used the "Just one Category"-plugin that caused these troubles!

  22. EGRandy
    Member
    Posted 3 years ago #

  23. lestermc
    Member
    Posted 3 years ago #

    The plugin of planetmike does work!

  24. lestermc
    Member
    Posted 3 years ago #

    but with only one category :(

  25. lestermc
    Member
    Posted 3 years ago #

  26. Michael Clark
    Member
    Posted 3 years ago #

    Hi everyone. Yes, I found out the same day (Feb 24) that Ultimate Category Excluder was only working with one category at a time. I fixed that bug. Please let me know if you have any trouble with my plugin now. Thanks, Mike

    And yes, UCE is now in the WordPress plugin directory, so you'll get notifications if I have to release an upgrade in the future.

  27. raghos
    Member
    Posted 3 years ago #

    Hi Michael,

    In my site (http://blog.delarepublica.cl) we use your plugin. We have a query_posts to show only "reccomended" articles (at the bottom left). As you can see, that is empty now. If I deactivate your plugin, the problem goes away.

    Any ideas?

  28. Michael Clark
    Member
    Posted 3 years ago #

    Hi Raghos,

    Are you creating a separate query to pull in those "reccomended" articles? And you are using UCE to keep that category from showing up elsewhere? I'm guessing the two queries are clashing, since they are being told to do opposite things. Your query says to show those posts, the UCE plugin is saying to not show those posts. mmm. Let me think. Can you pull in your recommended posts via the RSS feed instead? Mike

  29. altdesign
    Member
    Posted 3 years ago #

    Sergey Biryukov patch works for me.

Topic Closed

This topic has been closed to new replies.

About this Topic