我有一个全新安装的WordPress 3.1.2(未升级但安装新鲜),不包含任何插件.
我的谷歌搜索似乎是一个相当普遍的问题,但我找不到任何解决方案.
我有自定义分类和运行的自定义帖子类型,我的functions.php中的代码:
register_post_type( 'product', array(
'labels' => array(
'name' => __( 'Products' ),
'singular_name' => __( 'Product'),
'add_new_item' => __( 'Add New Product'),
'add_new' => __( 'Add a Product'),
'edit_item' => __( 'Edit Product'),
'new_item' => __( 'New Product'),
'view_item' => __( 'View Product'),
'search_items' => __( 'Search products' ),
'not_found' => __( 'No products found' ),
'not_found_in_trash' => __( 'No products found in Trash' )
),
'public' => true,
'supports' => array(
'title',
'editor'
),
'has_archive' => …Run Code Online (Sandbox Code Playgroud)