Благодаря @Dipak Dholakiya. Плагин работал отлично, хотя я решил сделать это без плагинов. Я нашел решение, опубликованное в «wpEASYtuts». Я установил новый пользовательский тип сообщения и использую его для продуктов. Это внутри моих функций. php file
function product_post() {
$labels = array(
'name' => _x( 'Products', 'post type general name' ),
'singular_name' => _x( 'Product', 'post type singular name' ),
'add_new' => _x( 'Add New', 'product' ),
'add_new_item' => __( 'Add New Product' ),
'edit_item' => __( 'Edit Product' ),
'new_item' => __( 'New Product' ),
'all_items' => __( 'All Products' ),
'view_item' => __( 'View Product' ),
'search_items' => __( 'Search Products' ),
'not_found' => __( 'No product found' ),
'not_found_in_trash' => __( 'No product found in the Trash' ),
'parent_item_colon' => '',
'menu_name' => 'Products',
);
$args = array(
'labels' => $labels,
'description' => 'Holds product and product specific data',
'public' => true,
'menu_position' => 5,
'supports' => array( 'title', 'editor', 'thumbnail' ),
'has_archive' => true,
'taxonomies' => array( 'category', 'post_tag' ),
);
register_post_type( 'products', $args );
}
add_action( 'init', 'product_post' );
А затем приступил к использованию файла «single. php», переименованного в «single-products. php».
Надеюсь, что это поможет любому в той же ситуации.