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