0
我當前的查詢是使用Ajax在WordPress的
$args=array(
'post_type'=>'product',
'post_per_page'=>'10',
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => 'car',
),
),
);
$loop=new WP_Query($args);
,我已經檢查盒Bus<input type="checkbox" class="ve-select" value="bus">
Boat<input type="checkbox" class="ve-select" value="boat">
。
目前我要做的就是當複選框一些點擊我使用javascript重新加載頁面,並通過傳值「已經」變。
$args=array(
'post_type'=>'product',
'post_per_page'=>'10',
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => $_REQUEST['ve'],
),
),
);
$loop=new WP_Query($args);
請任何一個可以建議我怎麼能更改查詢並顯示結果而不需要重新裝載。
請朋友們有所幫助。
我會檢查該解決方案 – Manik
謝謝朋友。這是行得通的。 – Manik
但我不知道這一點。祕密:'<?php wp_create_nonce('listPost_byCat'); '>' – Manik