我使用下面的代码通过单词标签获取帖子
$search_songs = array(
\'posts_per_page\' => -1,
\'post_type\' => \'songs\',
\'tax_query\' => array (
array (
\'taxonomy\' => \'post_tag\',
\'field\' => \'slug\',
\'terms\' => $search_query,
)
)
);
$new_query = new WP_Query( $search_songs );
$search_songs_posts = $new_query->posts;╨
But 根据此代码,它返回具有
exactly word标记
EXAMPLE :搜索时“akam它返回带有“akam”标记的帖子,BUT 搜索时“aka“”(a part of word) it返回nothings我想在搜索“aka”时返回所有包含我的arg(“aka”)的标签的帖子,而不仅仅是单词
谢谢