我已经创建了一个自定义的帖子类型和分类法,如下所示。。。
function register_post_type_products() {
$labels = array( \'name\' => _x(\'Produkter\', \'post type general name\'),
\'singular_name\' => _x(\'Produkt\', \'post type singular name\'),
\'add_new\' => _x(\'Lägg till\', \'produkt\'),
\'add_new_item\' => __(\'Lägg till produkt\'),
\'edit_item\' => __(\'Redigera produkt\'),
\'new_item\' => __(\'Ny Product\'),
\'view_item\' => __(\'Visaproduct\'),
\'search_items\' => __(\'Sök produkt\'),
\'not_found\' => __(\'Inget kunde hittas\'),
\'not_found_in_trash\' => __(\'Inget hittade i soptunna\'),
\'parent_item_colon\' => \'\' );
$args = array( \'labels\' => $labels,
\'public\' => true,
\'publicly_queryable\' => true,
\'show_ui\' => true,
\'query_var\' => true,
\'rewrite\' => true,
\'capability_type\' => \'post\',
\'hierarchical\' => true,
\'menu_position\' => null,
\'supports\' => array(\'title\',\'editor\',\'thumbnail\') );
register_post_type( \'product\' , $args );
register_taxonomy("productcategory",
array("product"),
array("hierarchical" => true,
"label" => "Produktkategorier",
"singular_label" => "Produktkategori",
"rewrite" => true,
"show_in_nav_menus" => true,
"public" => true));
}
add_action(\'init\', \'register_post_type_products\');
没什么奇怪的。它工作得很好。
但后来我想重新安排som帖子,我知道插件https://wordpress.org/plugins/post-types-order/ 符合我的需要。但由于某些原因,“重新订购选项”没有显示在仪表板菜单(管理菜单)中。我知道这是可行的,因为在主题中定义了其他自定义帖子类型(但我找不到如何实现),对于这些自定义帖子类型,会显示“重新排序”选项。
当我尝试转到url(域)+edit.php?post_type=product&page=order-post-types-product
上面说我没有足够的特权。我应该在哪里更改?