CMS Development Wordpress

Query posts ordering by title, but ignore ” chars

I use following function to get my custom posts ordering by title

$posts = get_posts(
        "orderby"=> "title",
        "order" => "ASC",
        "post_type" => "my-custom-post-type",
        "posts_per_page" => -1,
        "fields" => "ids",
        "meta_query" => array(
                "key" => "ams_park_id",
                "value" => get_the_ID(),

And it orders by title, the problem is that i have one posts that have is titled: “It’s a small world”, and this is being ordered at the beginning of the list.

How can i make to make the selector ignore the quote and send it to the “i” part of the order?

Leave a Reply

Your email address will not be published. Required fields are marked *