I want to show always 4 category boxes everytime in woocommerce
Your code is working fine. I tested on local WordPress and worked as expected. columns attribute is the visual presentation so it will not affect how many categories are displayed. number attribute is the number of categories retrieved. I changed it to 4 and it worked perfectly. Either way you can optimize your code like … Read more