WP_Query no result if keyword contains number
Question
$args = [
's' => $autocompleteTerm,
'orderby' => 'modified',
'fields' => 'all',
'post_status' => array('publish','future'),
];
$posts_query = new WP_Query($args);
return $posts_query->get_posts();
$autocompleteTerm is what i am searching for, for example if i publish an article with title ‘top 10 candies’
and then search for ‘top 10’, return is empty
it works if i search for ‘top’ instead
0
4 months
0 Answers
12 views
0
Leave an answer
You must login or register to add a new answer .