按插件清理标题显示帖子(_T) 时间:2017-02-11 作者:Joel 他们帮助我,因为这是正确的方法。$query = new WP_Query( array( \'post_type\' => \'spa\', \'name\' => \'echo sanitize_title(news_get_meta(\'gamers\'));\' ) ); 1 个回复 SO网友:Tunji 但这篇文章的标题是echo sanitize_title(news_get_meta(\'gamers\'));我想news_get_meta 是您安装的主题或插件的特定功能,因此您的查询应为:$query = new WP_Query( array( \'post_type\' => \'spa\', \'name\' => sanitize_title( news_get_meta(\'gamers\') ); ) ); 文章导航