我有这个问题:
$args = array(
\'posts_per_page\' => -1,
\'post_type\' => \'page\',
\'post_status\' => \'publish\',
\'meta_query\' => array(
\'relation\' => \'AND\',
\'tipo_pagina_clause\' => array(
\'key\' => \'tipo_pagina\',
\'value\' => \'prodotto\',
\'compare\' => \'=\'
),
\'tipo_prodotto_clause\' => array(
\'key\' => \'tipo_prodotto\',
\'compare\' => \'EXISTS\',
),
array(
\'key\' => \'brand\',
\'value\' => get_the_id(),
\'compare\' => \'LIKE\',
),
),
\'orderby\' => array(
\'tipo_prodotto_clause\' => \'ASC\',
\'post_title\' => \'asc\',
),
);
// query
$prodotti_brand = new WP_Query( $args );
一切正常,但我想要的是“post\\u title”=>“rand”,但“rand”似乎不起作用。我做错了什么?