由於我已經建立了我的模板的方式,我需要有一個字符串的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