woocommerce offtopic – Short code doesn’t show products

Question

I am using Woocommerce shortcodes to display products into my site for example:

[products ids= ‘111,222,334,211’ columns=’3′ limit=’12’ pagination=’yes’]

there is more than 4000 products we have in our site. i pull those ids pass that into ids parameter like this.

Ex:
$arr = array(111,222,334,211,312,534,345,113,555,333,865,884,765) //etc
$str = implode(‘,’,$arr);
[products ids= ‘$str’ columns=’3′ limit=’12’ pagination=’yes’]

Its not displayed products, its shown error ‘No products were found matching your selection’

Then i try add 3808 ids into ids param i’ve got same error result when i remove around 647 ids from that its display products.

Please advise product ids has any limitation ? or it there any rule i need to follow to display product via woo-commerce short code ?

0
Haja Kutbudeen 2 years 2022-01-25T08:16:54-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse