• Amid

    (@aminteractiondesign)


    I have woocommerce installed and am using its product_cat taxonomy for products and also a custom post type.

    in th e backend product category list the count is different than when I get the terms with get_terms

    $terms =  get_terms(  [
        'taxonomy'  => 'product_cat',
     ]);

    Also when I add ‘hide_empty’ it shows terms with count=0. But not those that have a count of 0 in the backend.

    What am I missing here?

  • The topic ‘get_terms count differs from count shown in backend’ is closed to new replies.