php - List posts by wordpress number

one text

Solution:

Maybe this work:

$first_char = "('0','1','2','3','4','5','6','7','8','9')";

And in the SQL query change "=" for "IN"

WHERE SUBSTR($wpdb->posts.post_title,1,1) IN %s

Source