我使用register\\u post\\u type和以下参数创建了一个CPT:
"label" => $aLabels[\'name\'],
"labels" => $aLabels,
"description" => "",
"public" => true,
"publicly_queryable" => true,
"show_ui" => true,
"show_in_rest" => false,
"rest_base" => "",
"has_archive" => true,
"show_in_menu" => true,
"exclude_from_search" => true,
"capability_type" => "post",
"map_meta_cap" => true,
"hierarchical" => false,
"rewrite" => array("slug" => $slug, "with_front" => true),
"query_var" => true,
"menu_icon" => site_url(\'/wp-content/uploads/icon.png\'),
"supports" => array("title", "editor", "excerpt", "custom-fields"),
"taxonomies" => array(\'court\', \'rating\', \'categorisation\'),
除了在管理帖子列表的第一页上分页外,其他一切都很正常。
http://dev.caselaw.co.za/wp-admin/edit.php?post_type=case
根本不显示。
从第2页开始,它就是完美的。
http://dev.caselaw.co.za/wp-admin/edit.php?post_type=case&paged=2
我在谷歌上搜索过世界,却找不到类似的问题,更不用说解决方案了!有人能提个建议吗?