diff --git a/content-az.php b/content-az.php
index 6a7f35c..6206387 100644
--- a/content-az.php
+++ b/content-az.php
@@ -27,8 +27,9 @@
'asc', 'sort_column' => 'post_title', 'hierarchical' => false, 'exclude' => $exclude));
$letters = array();
foreach( (array) $pages as $pg ){
$parent = is_parent_private($pg->ID);
@@ -40,7 +41,8 @@ function getChars(){
}
$title = ucwords($pg->post_title);
$char = $title{0};
- if( !(is_numeric($char)) && !in_array($char, $letters) ){
+ if($char == 'Z') echo $title;
+ if(!in_array($char, $letters) ){
array_push($letters, $char);
}
}
@@ -49,7 +51,8 @@ function getChars(){
// Generate AZ Navigation
echo '
';
// Generate AZ List
- $pages = get_pages(array('sort_order' => 'asc', 'sort_column' => 'post_title', 'hierarchical' => false, 'exclude' => $exclude));
- if( !preg_match($pattern, $exclude, $matches) ){
+ //if( !preg_match($pattern, $exclude, $matches) ){
$letters = array();
echo '
';
foreach( (array) $pages as $pg ){
@@ -74,7 +84,7 @@ function getChars(){
}
$title = ucwords($pg->post_title);
$char = $title{0};
- if( !( is_numeric($char) || empty($char) ) ){
+ if( !( empty($char) ) ){
if( $char != end($letters) && !empty($letters) ){
echo ' ';
}
@@ -86,9 +96,9 @@ function getChars(){
}
}
echo '';
- } else {
- echo '