Proshka Asked:2022-06-08 02:29:42 +0800 CST2022-06-08 02:29:42 +0800 CST 2022-06-08 02:29:42 +0800 CST 类 WP 查询 Wordpress 显示帖子 772 $query = new WP_Query('p=44'); print_r($query); 此代码不按 ID 显示帖子。怎么了? php 1 个回答 Voted Best Answer Valerii Vasyliev 2022-06-08T03:09:56+08:002022-06-08T03:09:56+08:00 试试这样问 $args = array( 'p' => 44, 'post_type' => 'any' ); $query = new WP_Query($args);
试试这样问