将数组附加到另一个数组时困惑不已。我的意图是将搜索参数提供给$ arg数组。将数组元素添加到PHP中的数组
$args = array(
'posts_per_page' => -1,
'post_type' => 'product',
'meta_key' => $orderby,
'orderby' => $num_orderby,
'order' => $order);
我想补充的另一个元素's' => $search_str to $arg array.
没有这个解决你的问题? –