【发布时间】:2012-09-19 09:46:17
【问题描述】:
对于一个 Wordpress 模板,我在 functions.php 文件中创建了几个自定义帖子类型。 目前,当我执行以下查询时,我的 MacBook 和 iPhone 上的帖子类型显示正确:
仅特定的“新闻”帖子类型:
$args = array( 'post_type' => 'news' ); query_posts($args);
多种自定义帖子类型:
$args = array( 'post_type' => array('sponsors','news','teams','businessclub','events') ); query_posts($args);
奇怪的是,在其他几个设备上,只有自定义帖子类型“新闻”没有显示,其他设备在查询中显示了多个自定义帖子类型。
谁能帮我解决这个奇怪的事情?
【问题讨论】:
标签: wordpress custom-post-type