+
+
+
+
+
+ + +
+
+
+
+
+ post_title);
+ $char = $title{0};
+ if( !(is_numeric($char)) && !in_array($char, $letters) ){
+ array_push($letters, $char);
+ }
+ }
+ return $letters;
+ }
+
+ // Generate AZ Navigation
+ echo '';
+
+ // Generate AZ List
+ $pages = get_pages(array('sort_order' => 'asc', 'sort_column' => 'post_title', 'hierarchical' => false));
+ $letters = array();
+ echo '';
+ foreach( (array) $pages as $pg ){
+ $title = ucwords($pg->post_title);
+ $char = $title{0};
+ if( !( is_numeric($char) || empty($char) ) ){
+ if( $char != end($letters) && !empty($letters) ){
+ echo '
';
+ }
+ if( !in_array($char, $letters) ){
+ echo '';
+ ?>
+