SHARE
TWEET

r-a-y

a guest Jul 3rd, 2010 310 Never
  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' );
RAW Paste Data
Top