Hi,
You can easily add additional characters to the index, such as numbers, by hooking the filter called a-z-listing-alphabet
which lists every character class separated by commas ,
. You just need to add the additional characters to the end to include numbers last in your index page:
add_filter( 'a-z-listing-alphabet', 'your_alphabet_filter' );
function your_alphaber_filter( $alphabet ) {
return $alphabet . ',1,2,3,4,5,6,7,8,9,0';
}
You could also combine all numbers together, while keeping other unknown characters separated by returning something along the lines of:
return $alphabet . ',#1234567890';
That will case all numbers to be listed under the heading of #
. If you do this you will probably want to hook the filter a-z-listing-non-alpha-char
to replace the default non-alphabetic heading which defaults to also be #
:
add_filter( 'a-z-listing-non-alpha-char', function() { return 'Non-alphanumeric'; }