这是我的单词按查询来搜索帖子。
$args = array('p'=>array('52','62','33','50'),'post_type' => 'job_listing','posts_per_page'=>'-1');
$posts_by_job_type = new WP_Query($args);
但是我找不到喜欢ID 52,62,33,50的帖子,它返回0个帖子。
$args = array('post__in'=>array('52','62','33','50'),'post_type' => 'job_listing','posts_per_page'=>'-1');
$posts_by_job_type = new WP_Query($args);
参考这里
wp 查询