function az_fihrist_shortcode() {
    // Harfleri tanımla
    $harfler = ['A', 'B', 'C', 'Ç', 'D', 'E', 'F', 'G', 'H', 'I', 'İ', 'J', 'K', 'L', 'M', 'N', 'O', 'Ö', 'P', 'R', 'S', 'Ş', 'T', 'U', 'Ü', 'V', 'Y', 'Z'];

    // Çıktıyı başlat
    $output = '<div class="az-fihrist">';
    
    foreach ($harfler as $harf) {
        $output .= '<a href="' . site_url('/category/' . strtolower($harf)) . '" class="fihrist-link">' . $harf . '</a> ';
    }
    
    $output .= '</div>';

    // CSS Kodları
    $output .= '<style>
        .az-fihrist {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin: 20px 0;
        }
        .az-fihrist .fihrist-link {
            display: inline-block;
            padding: 5px 10px;
            border: 1px solid #ccc;
            text-decoration: none;
            color: #333;
            font-size: 14px;
            border-radius: 4px;
            transition: background-color 0.2s ease-in-out;
        }
        .az-fihrist .fihrist-link:hover {
            background-color: #f0f0f0;
        }
    </style>';

    return $output;
}
add_shortcode('az_fihrist', 'az_fihrist_shortcode');

shortcode:
[az_fihrist]