stripslashes (метка)
WP_query и апостроф
$line="Santa's Wild Ride";
$query = new WP_Query(array('post_type'=>'it_games',
'tax_query' => array(
array(
'taxonomy' => 'game_name',
'field' => 'name',
'terms' => stripslashes_deep($line)
)
)
));...
9.7 лет назад
1 ответ