WordPress.org

Ready to get started?Download WordPress

Forums

Simply Exclude
This plugin make all my menus totally blank !!! (20 posts)

  1. Marcoconut
    Member
    Posted 3 years ago #

    Hello,
    I've updated WordPress from 3.0.5 to 3.1 today and when i updated Simply Exclude too my two menus (done with the regular wordpress admin)suddently went blank, the menus where there but no links to pages or categories.
    Is there something to change in the settings ? Does anyone have the same issue ?
    Thank for your answers.

  2. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    @Marcoconut,

    Yes, it was reported by someone via my blog
    http://www.codehooligans.com/projects/wordpress/simply-exclude/#comment-81930

    I'm looking into the issue today. I tested on 3.0.x up to 3.1rc3. So not sure if this is something new in 3.1 or what. Will post back when I update a fix. Thanks for your patience.

  3. Marcoconut
    Member
    Posted 3 years ago #

    thanks for your answer.

  4. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    Marcoconut,

    So have tested SE 1.7.9 against WP 3.1 and WP 3.0.5. I've setup Genesis, Thesis, TwentyTen and some other themes. I've created multiple menus. I've create multiple dummy posts, categories and post tags. I simply cannot break the site. Meaning I don't get a blank screen.

    I've enabled WP_DEBUG and no errors, warnings etc. reports.

    Can you give me an idea on how you have SE setup? Also what menus you have setup? Any custom post types or taxonomies? Those should not matter but thought I would ask.

    Best,

  5. Marcoconut
    Member
    Posted 3 years ago #

    Hi,
    I'm running WP 3.1 and the Headlines theme from Woothemes. The two menus are the two included with this theme, there is a main menu and a menu called page nav. I don't have any custom posts or taxonomies there are all "usual" ones.
    I don't know if it can help you but i found a post about the fact that in WP 3.1 there is a know issue about excluding categories (or just chose one like i want to do) from the loop of posts.
    I tried to had the code
    '// Exclude category from home
    function myFilter($query) {
    if ($query->is_home) {
    $query->set('category__in',array(564));
    }
    return $query;
    }
    add_filter('pre_get_posts','myFilter');'
    in the functions.php file of my theme, it worked like your plug in, i saw the right category on the front page but, like with your plugin, the menus were broken.

  6. Marcoconut
    Member
    Posted 3 years ago #

    Ooops i didn't answer about the settings of SE.
    All the settings are the basic settings when you install the plug in i've just checked "Include Only" instead of Exclude in the manage category exclusions menu in front of the "Front" action name and checked a category (id 564 for me).
    In all the other menus of the plugin nothing is checked nor include only or exclude.
    And no third party plugin in the "exclude option" part.
    Hope it can help.

  7. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    Marcoconut,

    Thanks. Yeah that function is how I first started SE. It was built on that simple logic. Just a fron-tend UI to handle this.

    Thanks for the details on the SE settings. Trying to nail this down. Actually just trying to reproduce any errors. I'll keep you posted.

    P-

  8. SilviuT
    Member
    Posted 3 years ago #

    I am using a modified version of Arras Theme on my website. I have the same problem with this plugin. My menus simply don't load if the plugin is enabled. It also doesn't work correctly when told to exclude the category from the category list widget. The only way to exclude a category from the widget category drop down list is to exclude the category from the archives. This doesn't work very well, as I still want to display some of the categories I set to be excluded.

  9. KimHbel
    Member
    Posted 3 years ago #

    Same here. Going bacl to version 1.7.8 makes the site running again on WordPress 3.1. So I stay at this version.

  10. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    SilviuT and KimHbel,

    My apologies for issues from my little plugin. As mentioned above I'm still not able to reproduce on any of my development environments. Still reviewing the code. There is only a few lines difference between SE 1.7.8 and 1.7.9

    Thanks for you patience.

  11. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    Anyone still willing to test a hopefully fixed version?

    You can download the beta version here
    http://www.codehooligans.com/packages/simply-exclude-1.7.9.1-beta.zip

    Thanks.

  12. Marcoconut
    Member
    Posted 3 years ago #

    Hello,
    I've just tried this new version but... it don't work.
    The good news is that my two menus are not broken anymore when i activate the plugin but the plugin don't do the job, i make my "actu" category "include only" on the front page but nothing happens.
    In fact it's like what happens with the 1.7.8 version for me, menus are ok but no filter.
    I hope this will help you findin out the problem.
    Thanks for the beta version.

  13. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    Marcoconut ,

    Well, it helps in that the menus are no longer broken. But strange no filtering for you.

  14. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    Alright found the issue not just guessing now. In old version of WP there was a status flag 'is_front_page'. That has been replaced by the more correct 'is_home'. Not sure how long ago that changed. That part of SE is 2 years old.

    So another beta
    http://www.codehooligans.com/packages/simply-exclude-1.7.9.1-beta2.zip

  15. Marcoconut
    Member
    Posted 3 years ago #

    Hello,
    I've just tested this new beta version. The filtering is ok but my menus went broken again.
    Perhaps a mix between beta 1 and beta 2 will work ;)

  16. SilviuT
    Member
    Posted 3 years ago #

    No updates on the issue ?

  17. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    SilviuT,

    I updated Simply Exclude this morning to the wordpress.org code repository. The patched version is 1.7.9.1. This should fix your missing menu issue. Let me know if it causes other side effects.

  18. SilviuT
    Member
    Posted 3 years ago #

    Everything works fine! Thanx for the update. Only one issue that I have now... is it possible to remove one category from the List Category Widget but still not exclude it from the Archive?

  19. Paul Menard
    Member
    Plugin Author

    Posted 3 years ago #

    SilviuT,

    Not via the SE plugin. But here is what I would try. First for SE don't set the Archive exclude.

    In your themes functions.php setup a add_filter call for the 'widget_categories_args' filter like:

    add_filter('widget_categories_args', 'my_widget_categories_args');
    function my_widget_categories_args($cat_args)
    {
    $cat_args['exclude'] = "3";
    return $cat_args;
    }

    Replace "3" with category ID to exclude. See the Codex on the wp_list_categories exclude argument
    http://codex.wordpress.org/Template_Tags/wp_list_categories

  20. SilviuT
    Member
    Posted 3 years ago #

    No, that didn't work. I still have it in the categories widget...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic