Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement