• In Woocommerce plugin, I add product and it’s category.

    $post_array = array(
    ‘post_author’ => ‘admin’,
    ‘post_content’ => ‘yellow tshirt … ‘,
    ‘post_title’ => ‘Tshirt’,
    ‘post_excerpt’ => ‘a medium size tshirt’,
    ‘post_status’ => ‘publish’,
    ‘post_type’ => ‘product’
    );

    wp_set_object_terms($postId, $category_term->term_id, ‘product_cat’, true );

    when I enter category page on the shop as user I can’t see that product there.

    what happend that I can’t see that product?

  • The topic ‘Woocommerce plugin: enter category page on the shop but can’t see that product’ is closed to new replies.