Advanced Category Excluder
fix: ACE breaking wp_list_pages and wp_pages_menu (1 post)

  1. ulfben
    Posted 6 years ago #

    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: http://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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Category Excluder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic