Exclude pages filter

function exclude_pages($pages){
//Use if no pages are excluded yet
$pages = array(39,40);

/*
//Use this for adding pages to exclude
$exclude = 212;
array_push($pages,$exclude);
*/
return $pages;
}
add_filter('wp_list_pages_excludes','exclude_pages');

0 Comments

You must be logged in to post a comment.