admin管理员组文章数量:1293644
$qry = new WP_Query(array(
'post_type' => $this->type,
'posts_per_page' => -1,
'meta_query' => array(
array(
'key' => "_{$this->metaPrefix}_name",
'value' => $style['name'],
'compare' => '='
),
array(
'key' => "_{$this->metaPrefix}_created",
'value' => $year,
'compare' => '='
)
)
));
print_r($qry->request); die;
I am getting an empty string, is there a way to get something? Is there maybe a tool or something along that line or is this an expected behavior and I can do something to output the sql?
本文标签: Cannot get sql request from Query object
版权声明:本文标题:Cannot get sql request from Query object? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741578523a2386430.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论