Wordpress,归档目录页。从默认的WP\\u Query->get\\u posts()中,我们得到如下结果:
SELECT wp_posts.ID
FROM wp_posts
INNER JOIN wp_term_relationships
ON (wp_posts.ID = wp_term_relationships.object_id)
WHERE 1=1
AND ( wp_term_relationships.term_taxonomy_id IN (5) )
AND wp_posts.post_type = \'post\'
AND ((wp_posts.post_status = \'publish\'))
GROUP BY wp_posts.ID
ORDER BY wp_posts.post_date DESC
LIMIT 0, 40
我想从这个SQL查询中删除这个:“按wp\\u posts.ID分组”,是否可能?我读过关于pre\\u get\\u posts和posts\\u groupby filter的内容,但我知道只有通过值来更改GROUP,但如何绝对删除它呢?