I use following function to get my custom posts ordering by title $posts = get_posts( array( “orderby”=> “title”, “order” => “ASC”, “post_type” => “my-custom-post-type”, “posts_per_page” => -1, “fields” => “ids”, “meta_query” => array( array( “key” => “ams_park_id”, “value” => get_the_ID(), ) ) ) ); And it orders by title, the problem is that i have […]
Categories
Query posts ordering by title, but ignore ” chars
- Post author By Marcia D.
- Post date February 20, 2020
- No Comments on Query posts ordering by title, but ignore ” chars
- Tags 'fields' => 'ids', 'posts_per_page' => -1, "meta_query" => array( array( "key" => "ams_park_id", "post_type" => "my-custom-post-type", "value" => get_the_ID(), ) ) ) ); And it orders by title, $order = " ASC ", 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, I use following function to get my custom posts ordering by title $posts = get_posts( array( "orderby"=> "title", the problem is that i have one posts that have is titled: "It's a small world"