• Resolved tores54

    (@tores54)


    For some reason, only 10 of the product tags are displayed in the product cloud, that is, I have 500 of them, and only 50 are displayed.

    At the same time, tags are assigned to products, available by reference. The backend shows how many products are assigned to each label. But in the tag cloud is not shown, what is the reason?

    I tried using woocommerce tools to recalculate values ??and products to update tables, it did not help

    • This topic was modified 1 year, 6 months ago by tores54.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tores54

    (@tores54)

    I did not know that there are restrictions on the output of tags, chat gpt wrote me a solution that works, the problem is solved

    add_filter( 'woocommerce_product_tag_cloud_widget_args', 'my_tag_cloud_args' );
    function my_tag_cloud_args( $args ) {
        $args['number'] = 100; // измените это значение на нужное вам количество
        return $args;
    }
    

    Hi @tores54

    Thanks for reaching out!

    I understand that you are experiencing an issue with the product tags in your tag cloud, where only 50 out of 500 tags are being displayed and you were able to solve it using the code snippet provided by Chat GPT, correct?

    If you have some time, you could perform a full conflict test to verify which is causing the issue here.

    Meanwhile, I will be marking this thread as resolved. Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product tag cloud’ is closed to new replies.