由于我已经建立了我的模板的方式,我需要有一个字符串的URL格式如下:如何将我的数组查询转换为wordpress中的字符串查询?
$the_query = array('post_type' => 'product', 'taxonomy' => 'product_types', 'term' => 'solar-panel')
我觉得像
$the_query = new WP_Query('post_type=product&taxonomy=product_types&term=solar-panel&showposts=2')
但这不是由于工作到分类学本身就是一个数组这一事实。谢谢。
它确定它实际上是工作,我的错误 – Nicola 2012-07-12 15:45:43