Not able to assign product_cat taxonomy to custom post type

Support MB Custom Post Type Not able to assign product_cat taxonomy to custom post type

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36430
    Orlando BrunoOrlando Bruno
    Participant

    Hi,

    I am creating a new post type called Producer that needs to have the product_cat and product_tag taxonomies associeted with it. I selected the checkbox for both of them when creating the post type, but I doesn't seem to register them.

    I try to register other WP taxonomies like category and it works well, this problem seems to be related to Woocommerce taxonomies. As I work around a created a custom taxonomy to replace product_cat, but now I am facing a lot of changes to modify the default woocommerce behavior.

    Thanks in advance for your support...

    #36445
    Long NguyenLong Nguyen
    Moderator

    Hi Orlando,

    You can follow this topic to register taxonomy for a post type https://stackoverflow.com/questions/33037985/how-to-add-woocommerce-product-categories-in-custom-post-type

    or use the field taxonomy to set the product category for the post type
    https://docs.metabox.io/fields/taxonomy/

    But please notice that WooCommerce has its own functions to query and manage the taxonomy product_cat. So even if you use a way to do the trick, it might not work with the WooCommerce system.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.