您应该能够通过添加另一个联接并选择display_name
该联接表中的列:
SELECT a.post_title, b.meta_key, b.meta_value as level, c.meta_value as intro, u.display_name
FROM wp_posts a
LEFT JOIN wp_postmeta b ON a.ID = b.post_id
LEFT JOIN wp_postmeta c ON a.ID = c.post_id
LEFT JOIN wp_users u ON a.post_author = u.ID
WHERE b.meta_key = \'level\'
AND c.meta_key = \'_post_main_intro\'
希望这对你有用!