Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

ulfben

By: a guest on Jun 25th, 2010  |  syntax: PHP  |  size: 0.36 KB  |  views: 153  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /*fixes Advanced Category Excluder breaking wp_list_pages and wp_page_menu by ignoring the exclude-parameter*/
  2. function ace_list_pages_excludes($excludes)
  3. {
  4.         $filter = ace_get_section();
  5.         $posts_to_exclude = get_option("ace_page_sections_".$filter);
  6.         $posts_to_exclude = array_merge($excludes, explode(",", $posts_to_exclude));
  7.         return $posts_to_exclude;
  8. }
clone this paste RAW Paste Data