SHARE
TWEET

ulfben

a guest Jun 25th, 2010 157 Never
  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. }
RAW Paste Data
Top