{"id":19018998,"date":"2026-09-13T19:22:04","date_gmt":"2026-09-13T19:22:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wc-get-related-products-errors\/"},"modified":"2026-09-13T19:22:04","modified_gmt":"2026-09-13T19:22:04","slug":"wc-get-related-products-errors","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wc-get-related-products-errors\/","title":{"rendered":"WC-get related products errors"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I am getting this error constantly. <strong>2026-09-13T00:00:01+00:00<\/strong> <strong>Error<\/strong> Invalid limit type passed to wc_get_related_products. Expected integer, got string with value: &#8220;4&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In fact today, I got it 2151 times?  I have the most current version of WordPress, Woocommerce and all the relevant plug-ins. How can I fix this issue? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"template":"","class_list":["post-19018998","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19018998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19018998\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19018998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}