This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

r-a-y

By: a guest on Jul 3rd, 2010  |  syntax: None  |  size: 0.36 KB  |  views: 287  |  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. function my_exclude_wp_pages( $exclude_array ) {
  2.         // array of ids you want to exclude
  3.         $my_ids = array(1,2,3);
  4.  
  5.         // we merge the array from above to any existing page ids that may be excluded via other plugins
  6.         $exclude_merge = array_merge( $my_ids, $exclude_array );
  7.  
  8.         return $exclude_merge;
  9. }
  10. add_filter( 'wp_list_pages_excludes', 'my_exclude_wp_pages' );
clone this paste RAW Paste Data