wordpress snippets last updated   : October 6, 2014
we now have 641 snippets

Display wp_list_pages with dynamicly created exclude list

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will use wp_list_pages but filter out any pages that contain no content creating an excluded_pages array. Then add the second snippet into your wordpress theme in the location you wish to display the pages.

read more