• There’s an issue with ACE ignoring the incoming value when filtering the “excluded”-parameter, and thus breaking both wp_list_pages and wp_pages_menu.

    Here’s a fix:

    /*fixes Advanced Category Excluder breaking wp_list_pages and wp_page_menu by ignoring the exclude-parameter*/
    function ace_list_pages_excludes($excludes)
    {
    	$filter = ace_get_section();
        $posts_to_exclude = get_option("ace_page_sections_".$filter);
    	$posts_to_exclude = array_merge($excludes, explode(",", $posts_to_exclude));
    	return $posts_to_exclude;
    }

    And over at pastebin, in case this forum eats code: https://pastebin.com/7aq8hdiR

    Tried to find an email to the developer but had no luck. I’ve posted this on her blog though, so let’s just hope it gets picked up for the next release.

    https://www.ads-software.com/extend/plugins/advanced-category-excluder/

  • The topic ‘[Plugin: Advanced Category Excluder] fix: ACE breaking wp_list_pages and wp_pages_menu’ is closed to new replies.