我这里的问题是显示未来计划帖子的所有单个详细页面。它正在返回404页。如何在wordpress中做到这一点?
到目前为止,我使用的是
$args = array(
\'posts_per_page\' => 10,
\'category__in\' => $category->term_id,
\'orderby\' => \'post_date\',
\'meta_key\' => \'starttime\',
\'order\' => \'ASC\',
\'post_type\' => \'post\',
\'post_status\' => array(\'publish\',\'future\'),
);
$loop1 = new WP_Query( $args );
从这段代码中,我得到了发布和预定的帖子。这篇已发表文章的永久链接运行良好。但它不适用于预定的帖子,并重定向到404页面错误。